Quote:
Originally Posted by Blunaigel
how can I convert multiple epub files in a batch using kindlegen?
|
Create a text file with the following one liner in it and save it with the extension .CMD or .BAT:
Code:
FOR %%f IN ("*.epub") DO ( kindlegen "%%f" >> conversion.log )
Then copy the batch file and Kindlegen.exe to the folder with your epubs in it and double-click the batch file. If files fail to convert check the error messages in conversion.log.
Note that KindleGen will attach the source files to the .mobi files. If space is an issue, you'll need to use
KindleStrip to strip off the source files.
EDIT: You can also use the undocumented
-dont_append_source parameter to prevent kindlegen from attaching the source files to the .mobi file:
Code:
FOR %%f IN ("*.epub") DO ( kindlegen -dont_append_source "%%f" >> conversion.log )