Quote:
Originally Posted by Skydog
Well, that makes perfect sense - even to a non-programmer. Unfortunately, the code you provided is not working either. (Win10) I can drag/drop to kepubify.exe but the following error appears with the .bat file:
'kepubify.exe is not recognized as an internal or external command, operable program or batch file.'
C:\(my path)
Press any key to continue... (which = exit)
|
Are the batch file and kepubify.exe in the same directory? The %~dp0 translates to the drive letter and path of the batch file so kepubify.exe will need to in a directory listed in your system or personal path variables or in the same directory as the batch file.
Contents of the "mkkepub.cmd" file:
Code:
cd %~dp0
kepubify.exe --inplace --calibre --output . %1
pause
Output from dropping an epub file on it:
Code:
C:\Users\David\Desktop>cd C:\Users\David\Desktop\kepubify\
C:\Users\David\Desktop\kepubify>kepubify.exe --inplace --calibre --output . "C:\Users\David\Desktop\The Ten Immutable Laws of Security.epub"
Kepubify v3.1.3
Using extension .kepub for Calibre compatibility (this is meant for use with a Calibre library and will not work directly on a Kobo reader)
[ 1/ 1] Converting C:\Users\David\Desktop\The Ten Immutable Laws of Security.epub
1 total: 1 converted, 0 copied, 0 skipped, 0 errored
C:\Users\David\Desktop\kepubify>pause
Press any key to continue . . .
If you don't want to see most of the output, add @echo off as the first line in the batch file.