View Single Post
Old 08-27-2008, 04:22 AM   #92
nohmi2
Pensively observing.
nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.
 
nohmi2's Avatar
 
Posts: 1,758
Karma: 12675456
Join Date: Jun 2008
Device: Varied.
Thumbs up Gratitude.

Quote:
Originally Posted by texasnightowl View Post
Ok, so first thing to do is lets move that file from the tools\scripts location to just the c:\Python25 folder. The reason we are doing this is that to eliminate any *path* errors we are trying to put everything into one location. So copy the mobidedrm2 file from c:\python25\tools\scripts to c:\python25.

As for determining what type of file it is: go back to a command prompt and do the cd c:\Python25. Once at c:\python25> we are going to do the following:

c:\python25>dir *.py

This will then list any py files that are in that folder. If mobidedrm2.py is not listed, then we know it is probably in txt format. To confirm, do this:

c:\python25>dir *.txt



This will show any txt files that are in the directory. If mobidedrm2 does show up this time then it is a txt file that we need to rename.

To rename the file, do this:

c:\python25>ren mobidedrm2.txt mobidedrm2.py

This should rename the file. You can do the dir *.py to confirm.

Now, make sure the book file you want to work with is in the c:\python25 directory also. Again, we want everything to be in the same place to rule out *path* issues.

Finally, run the command:
c:\python25>mobidedrm.py infile outfile PID

*************EDIT

Hey Nohmi! Leep let me know that he's been working with you via email and that your py file is good and your PID is good. So we can ignore most of this above as I was trying to determine if your py file was in good shape.

I still think there is some sort of path issue. To figure that out, I want to put both relevant files in the same folder. So, you can leave the py file where it is at, in the Tools\Scripts folder but I'd like you to copy your book to that folder with it. So then, once you've copied your book.prc into the c:\python25\tools\scripts folder we will run the command and see what information you get. So from a command prompt again:
>cd c:\python25\Tools\Scripts
c:\python25\Tools\Scripts>mobidedrm2.py infile outfile PID

Let me know what kind of error this gives.
Thanks for the help, it's working. Have a ton of books that I want to convert.
nohmi2 is offline