View Single Post
Old 10-14-2008, 12:37 PM   #2
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by mdibella View Post
Also assume that I have a Python script (call it 'MobiDeXXX') that will magically change them into something that I can load into Calibre and then do a batch-convert to the format Sony loves.

But if anyone can help with this, I would be most grateful!
You can create a batch file... debulk.bat with the following line in it:

for %%i in (*.prc) do MobiDeXXX.py %%i %%~ni_free.prc PID

Hypothetically of course. You could even get a bit more fancy and add an IF NOT EXISTS to it to only run the command if the _free file doesn't exist. I think adding an /R after the for and it will recurse directories also.

BOb
pilotbob is offline   Reply With Quote