|
|
#1 |
|
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2010
Device: none
|
Command Line Batch Adding of Epubs
I created a batch file as follows, however only the first line gets accomplished, but nothing after that -- the batch file simply quits after the first line: calibredb add -d 101.epub calibredb add -d 102.epub calibredb add -d 103.epub calibredb add -d 104.epub calibredb add -d 105.epub Would someone please suggest a way of using the command line to bring in many hundreds of ebooks?? Thank you, Nicholas Kormanik |
|
|
|
|
|
#2 | ||
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,420
Karma: 11289119
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
Quote:
Quote:
start calibredb add -d 101.epub start calibredb add -d 102.epub start calibredb add -d 103.epub start calibredb add -d 104.epub start calibredb add -d 105.epub
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. Last edited by DoctorOhh; 10-18-2010 at 02:36 AM. |
||
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,630
Karma: 561147
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (stanza/iBooks/QuickReader)
|
I believe that there can be some strange interactions between the Windows command line processor and Calibre. The effect is that the batch file tends (as you found) to get abandoned after executing a calibre command. Using the Start option to run the commands should get around this although you might want to also use the /wait option as well on each line after the Start keyword to make sure each one runs to completion before the next one is started.
Alternative Windows command processors seem to not suffer from this issue so it is not clear why the default Windows one does. |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,542
Karma: 1240400
Join Date: Jun 2009
Location: Madrid, Spain
Device: Pink Sony Prs-350, Kobo Mini, iPhone, iPad
|
You can put "CALL " in front of each calibre instance. It works for me.
__________________
Ciao Terisa de Morgan
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,879
Karma: 285970
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
You probably want start /wait calibredb add -d 101.epub
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#6 |
|
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2010
Device: none
|
Thanks all for your help.
I decided to convert first, through the command line. The ONLY batch approach I tried that worked is as follows: start /wait ebook-convert.exe 00001.epub 00001c.epub start /wait ebook-convert.exe 00002.epub 00002c.epub start /wait ebook-convert.exe 00003.epub 00003c.epub start /wait ebook-convert.exe 00004.epub 00004c.epub start /wait ebook-convert.exe 00005.epub 00005c.epub |
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,994
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
|
|
|
![]() |
| Tags |
| bulk import, command line |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| adding books via command line in msdos batch | FlaKate | Calibre | 1 | 12-25-2009 01:12 AM |
| 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 |
| Crash while batch converting epubs under windows | AprilHare | Calibre | 3 | 04-26-2009 03:46 AM |
| Errors on Command Line | drnkusv | Calibre | 11 | 11-07-2008 02:59 PM |