View Single Post
Old 06-28-2013, 02:42 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Blunaigel View Post
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 )

Last edited by Doitsu; 04-25-2014 at 06:20 PM. Reason: Added: -dont_append_source information
Doitsu is offline   Reply With Quote