View Single Post
Old 10-02-2021, 12:44 PM   #1
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 471
Karma: 4113712
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
Calibre CLI act oddly in Windows Batch

I've had an odd experience running the Calibre CLI in a bat file on Windows 10.

The file has three lines:
1. shut down running instances of Calibre ("calibre.exe --shutdown-running-calibre"
2. create a new catalog
3. restart Calibre in the tray ("calibre.exe --start-in-tray" ).

The batch file works as expected but it doesn't terminate: the last command
"calibre.exe --start-in-tray" runs and the window batch window stays open--the batch file never gets to the final line ("pause" or "exit").

It does this whether or not the "--start-in-tray" flag is present.

As I said, this doesn't mess up what I'm trying to do, but it seems to be the wrong behavior for a bat file.

Am I missing something?
slm is offline   Reply With Quote