View Single Post
Old 11-02-2009, 08:12 AM   #8
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
Quote:
Originally Posted by mbovenka View Post
Yes, the first invocation in the batch file runs OK. It doesn't show any errors and the resulting output file is fine as well. It just exits the entire batch file when it's done.

I don't know what the exit code is; I'll try to find out when I'm home this evening.
I'm doing some batch work too and noticed the same problem.

Running, it looks like, any calibre executable inside a batchfile wrecks havoc on all commands following it. For example the following demonstrates this.
- open a command prompt where you have test.bat download
- run test.bat from the command prompt, calibredb should be in your PATH
- notice that the 'pause' is never executed!
- even stranger, restart the test.bat without closing the command prompt
- notice what happens or the lack thereof


Regards,

Joop
Attached Files
File Type: bat test.bat (23 Bytes, 403 views)

Last edited by JvdW; 11-02-2009 at 08:15 AM. Reason: typos
JvdW is offline   Reply With Quote