View Single Post
Old 01-22-2010, 03:37 PM   #1
Cartaphilus
Junior Member
Cartaphilus began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2010
Device: Kindle
Problems Using Calibredb Commands in a Batch File

I'm running Vista Home Premium and I'm trying to (semi)automate generating listings from Calibre by using a batch file. However, every time I execute a calibredb command, instead of returning to the next command in the batch file, the job simply terminates. The batch file looks something like this:

echo Trying This Batch File...
pause
cd c:\users\fred
pause
calibredb list -f authors > c:\users\fred\calibrereport\authors.csv
pause
echo Author Report Run

I get the echo and the first pause. I get the directory change. I get the second pause (I added all the pauses just to "debug" the batch file). The calibredb command runs, but I never get to the 3rd pause or the last echo. When I go to the piped destination, the report is there, so I know the command ran.

Any ideas?
Cartaphilus is offline   Reply With Quote