View Single Post
Old 05-16-2022, 04:41 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,737
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by CyberPaul View Post
Thanks!
This is interesting: is that command going recursively within the subfolders? Am I going to have just .kepub.epub files in the folder(s)?
The batch file I use was posted a while back for kepubify 3 but still works with 4

Basically, I have a directory called kepubify in which the kepubify.exe and the kepubconvert.cmd batch file are found. I save to disk in a subdirectory called Epub in the kepubify directory. There is also a subdirectory called Kepub where the converted books end up. The directory structure in the kepub directory will match the structure of the epub directory after the conversion. I renamed the kepubify executable to kepubify.exe since I only keep the 64 bit version. The %~dp0 looks a bit odd but it gives the file path from which the batch file was launched.

kepubify
|--kepubconvert.cmd
|--kepubify.exe
|--Epub
|--Kepub

contents of kepubconvert.cmd:

Code:
@echo OFF
setlocal enableextensions

set source=%~dp0Epub
set target=%~dp0Kepub

set binpath=%~dp0kepubify.exe
set options=--update --inplace

echo EPUB Dir       %source%
echo KEPUB Dir      %target%
echo Program        %binpath%
echo Options        %options%

timeout 10

"%binpath%" %options% --output "%target%" "%source%"


endlocal
pause
DNSB is offline   Reply With Quote