|12-25-2009, 12:26 AM||#1|
Join Date: Dec 2009
adding books via command line in msdos batch
I am trying to write a dos batch file to add books to Calibre. I am using the calibredb add command. The command works fine when it is the only instruction in the batch file but when I add my other programming (for file management and checking) I get an error from the calibredb add command. The error is "The system cannot find the batch label specified - Sub". This appears after the "Notifying calibre of the change" message. My batch file is then ended without continuing to the next lines. Then when I try and call the batch file again nothing happens. I have to open a new command window to run any batch file. Does this have something to do with my OS being Vista? If so, any suggestions on how to fix this?
My second question is: I am trying to add several formats at the same time and I understand that I can use the calibredb list command to get the id of a book - how can I get the id of a particular book using the calibredb list command and then use the results in my dos batch? I would like to pass the resulting id to the calibredb add_format command.
I am soooo close to this working. Any help or examples you can provide will be greatly appreciated.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|<Command Line> Add multiple books in multiple formats||himitsu||Calibre||8||09-25-2010 11:07 PM|
|Where are the command line tools?||PaulChernoch||Calibre||17||10-23-2009 12:08 PM|
|Adding books from the command line||edembowski||Calibre||1||08-29-2009 11:18 AM|
|Why use the command line?||slantybard||Calibre||6||07-22-2009 12:17 PM|
|impmake: automated creation of IMP books via the command line||ashkulz||IMP||25||08-31-2008 03:15 PM|