Quote:
Originally Posted by konstantinus
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.