View Single Post
Old 02-14-2021, 10:31 AM   #8
billmandy
Member
billmandy began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2021
Device: Kindle
Quote:
Originally Posted by PeterT View Post
Wow... that was easy. Thank you.


For the bulk convert batch file:

for /r %%1 in (*.epub) do "C:\CalibrePortable\Calibre\ebook-convert.exe" "%%~dpn1.epub" "%%~dpn1.mobi"

All you need is to specify the extension of the file to be converted,

the path to ebook-convert.exe (in my case, C:\CalibrePortable\Calibre\ebook-convert.exe),

the extension of the file to be converted (again),

and the output extension, mobi in this case.

The batch file must be in the same folder as the files that you want to convert. The batch file can contain the same line multiple times, but for different output or input types of file.
Be careful.
If you have other ebooks or folders with ebooks in the folder that contains the script, the script will convert all of files that match the target input.
billmandy is offline   Reply With Quote