View Single Post
Old 01-22-2010, 04:29 PM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Cartaphilus View Post
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?
This drove me batty. Calibredb won't play well with the Windows command interpreter. After much playing around, while waiting for the fix, I found a workaround. Try this:
Code:
echo Trying This Batch File...
cd c:\users\fred
start calibredb list -f authors > c:\users\fred\calibrereport\authors.csv
echo Author Report Run
Starson17 is offline   Reply With Quote