View Single Post
Old 12-19-2008, 10:22 AM   #116
koland
Grand Sorcerer
koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.
 
Posts: 8,560
Karma: 8033155
Join Date: Aug 2008
Location: TN, USA
Device: kindle(all), nook, nookcolor, Sony, Kobo, epic, iphone, iPad, pc
Quote:
Originally Posted by DaleDe View Post
Actually one batch should do it.

The command would appear like:

For %%i in (*.pdb) Do command parameters.

Where command is the python script and the parameters are the standard arguments for the script. Use %%i wherever you need the file name.
Yes, but this leaves the original behind (perhaps to be converted again), while using a second batch file lets you add commands to move it out of the way (rather than depending on the user to remember to do so). For mobidedrm, this is even more essential, at least if you want both the original and the new file to have the same name - my 2nd batch file does the conversion, moves the original, renames the new file and then moves it to a different directory. One directory always has the originals, the other those ready to read and if the conversion directory is clean, there is nothing new to convert.

But, I do have a question -- if I have an epub, what is the best way to convert it to mobi?
koland is offline   Reply With Quote