View Single Post
Old 12-01-2018, 02:36 AM   #83
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,424
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by konstantinus View Post
cmd when executing the command replaces the non-breaking space with the usual one. PowerShell works correctly, but when I make a .bat file with powershell launch, the launch is performed via cmd and the command is not sent correctly. In addition, kepubify with * .epub does not work in either cmd or powershell. A simple task, but now I don’t understand how to perfom it in windows.
I suspect it would be easiest to use a for loop if you want to do it file by file. Otherwise, you can just pass the directory the files are in (kepubify e:\working\epubtemp as an example).

Code:
@echo off
for %%f in (*.epub) do kepubify.exe "%%f"
pause
The above is for a batch file (the one I used is named kepubcmd). To run from a command line, change the %% to a single % and leave off the @echo off and pause lines. The "'s around the second %%f are to handle a filename with embedded spaces.

Last edited by DNSB; 12-01-2018 at 02:40 AM. Reason: Typos: a never ending resource...
DNSB is online now   Reply With Quote