View Single Post
Old 03-15-2011, 03:34 PM   #7
reading
Junior Member
reading began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2011
Device: Kindle
Just found this and thought I would add a comment.

One of the issues you encounter with using "start" is redirecting output to a text file
start "" /WAIT calibredb.exe .... >out.txt

This does not work as the output redirection doesn't get passed.
The normal way to fix this is to escape the > with ^>

start "" /WAIT calibredb.exe .... ^>out.txt

But for some reason this does not work with calibre, the process works but calibre doesn't seem to understand the command line that was passed

This next solution works, but I have no idea why :-(, putting additional ^'s breaks it

start "" /WAIT cmd.exe /c ""calibredb.exe^" .... ^>tmp1.txt"

For a solution I can understand, this works ...

echo @%calibredb% ....>tmp.cmd
start "Calibre" /WAIT /MIN cmd.exe /c tmp.cmd ^>tmp.txt

Hope this helps someone :-)
reading is offline   Reply With Quote