12-25-2009, 01:26 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2009
Device: none
|
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. Thank you! |
12-25-2009, 02:12 AM | #2 |
creator of calibre
Posts: 44,569
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<Command Line> Add multiple books in multiple formats | himitsu | Calibre | 8 | 09-26-2010 12:07 AM |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 01:08 PM |
Adding books from the command line | edembowski | Calibre | 1 | 08-29-2009 12:18 PM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 01:17 PM |
impmake: automated creation of IMP books via the command line | ashkulz | IMP | 25 | 08-31-2008 04:15 PM |