Quote:
Originally Posted by kovidgoyal
Ah yes on windows for some reason the calibre command line utilities dont play well with the cmd.exe interpreter. Better to use powershell.
|
It confused me for a while. First I thought my batch file logic was faulty, then I thought the program after the calbredb command was causing the trouble, then I tried a couple of tricks to work around it. I even thought about doing this on one of my *nix boxes, or under Cygwin, but I wasn't sure if the db would need to be converted, so I gave up and just ran the calibredb stuff separately. Interestingly, multiple invocations of the calibredb command in a single FOR loop worked fine. I just couldn't get any subsequent lines or calls to batch subroutines or external batch files to work.
Anyway, thanks again. If I do this again, I'll try powershell.