View Single Post
Old 08-17-2007, 01:59 AM   #71
Excalibur
Member
Excalibur began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2007
Device: Sony eReader 500
Quote:
Originally Posted by ZeBuddha View Post
At the risk of asking a stupid question again, is there any way to batch-convert files? I've tried using wildcards (eg. lit2lrf X:\SomeDir\*.lit or lit2lrf *.lit) but it doesn't work.
Put this line in a batch file named, say batch.bat:
Code:
for %%f in (*.lit) do lit2lrf --blank-after-para "%%f"
Then, run it in a directory where you want the contents converted. It is not recursive and will only work in one directory. I didn't need it to go to any directories below the main one, but if you want to figure out how to do that, go right ahead

Also, if you're finding that the stuff in your libprs500 directory isn't in your path when you open cmd, make sure you're not using Microsoft's "Command Line Here" power toy. I've noticed that for some reason, it doesn't use the path. Just go to start>run>cmd then hit enter. You'll have to navigate to the directory you want to convert lit files in, but if you make it a sub folder off your C:\ drive, there shouldn't be any problems.
Excalibur is offline   Reply With Quote