Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-25-2009, 12:26 AM   #1
FlaKate
Junior Member
FlaKate began at the beginning.
 
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!
FlaKate is offline   Reply With Quote
Old 12-25-2009, 01:12 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,840
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://bugs.calibre-ebook.com/ticket/3923
kovidgoyal is online now   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:40 PM.


MobileRead.com is a privately owned, operated and funded community.