View Single Post
Old 10-14-2008, 11:38 AM   #1
mdibella
Groupie
mdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheese
 
Posts: 193
Karma: 1107
Join Date: Oct 2007
Device: Infinite Kindles, Occasional Sony's
Script to convert a directory full of files?

In the 'some people are never satisfied' category...and trying real hard not to violate forum rules...


Let's assume that I have a folder full of EBooks on my Windows desktop. They are in a format that will not work on my soon-to-arrive Sony reader.

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.

Is there a script (or could some genius write one) that would take this entire directory and run the magic Python script against each file, one at a time, and save the results into a different directory?

Note that I am being purely lazy here, since I can of course type in the 200 file names, one at a time, into the command window and run the Python script against them.

But if anyone can help with this, I would be most grateful!
mdibella is offline   Reply With Quote