01-27-2011, 04:10 AM | #1 | |
Junior Member
Posts: 7
Karma: 180
Join Date: Jan 2011
Device: none
|
Multiple conversion of files in .bat with calibre?
Hallo,
I study Workflow Administration and I got an assignment with my group to automate pdf and/or other formats to epub/mobi fomats and automate it on our server. The thing is that we never learned to script so we dont even have a basic knowledge of the scripts that could help us. We looked for about 4 weeks now too find a good way to convert multiple files with a single script that we could run in a time interval of several minutes. Thanks to your forums we were able to find this script: Quote:
If so could you tell me what I should do or atleast help me to find a way to learn how to do it? with kind regards, Konrad T. |
|
01-27-2011, 04:16 AM | #2 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
Advert | |
|
01-27-2011, 04:21 AM | #3 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I've had some success with a construct like this:
Code:
for %%i in (*.pdf) do start /wait ebook-convert %i %i.pdf |
01-27-2011, 04:23 AM | #4 |
Junior Member
Posts: 7
Karma: 180
Join Date: Jan 2011
Device: none
|
@dwanthny: Yes, thank you. im looking into RexExes already
@Manichean: Thanks ill try it in a sec Last edited by kombinerka; 01-27-2011 at 04:30 AM. |
01-27-2011, 04:31 AM | #5 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Is this for output equal ePub?
Last edited by Manichean; 01-27-2011 at 04:48 AM. Reason: (Sorry, hit the wrong button) |
Advert | |
|
01-27-2011, 04:48 AM | #6 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
|
01-27-2011, 04:51 AM | #7 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
I was really referring more to the first paragraph.
Quote:
|
|
01-27-2011, 05:05 AM | #8 |
Junior Member
Posts: 7
Karma: 180
Join Date: Jan 2011
Device: none
|
hmmm which format would you recommend instead of pdf?
and when I run that script I get the help msg back from Kovid instead of converted files back. |
01-27-2011, 05:14 AM | #9 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
If you have control over the original files then saving those html or if using MS Word saving them as html filtered or web page filtered would be best. The filtered html will convert well to epubs.
What is the source of these files? If they start as doc files this thread explains how to do batch conversions from doc files to epubs with free tools. Specifically check out posts 23, 49 and 56. |
01-27-2011, 05:24 AM | #10 |
Junior Member
Posts: 7
Karma: 180
Join Date: Jan 2011
Device: none
|
unfortunately about a 1/3 of them (more than 1thousand files total) is in .pdf format the rest is in .doc/.docx
and thanks for the links helps a lot |
01-27-2011, 06:06 AM | #11 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
DOC/DOCX is not supported. If you get an error message, paste that in here. That makes it way easier for us to see what's wrong...
Is the batch file working at all (are the conversions starting?)? |
01-27-2011, 06:10 AM | #12 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
01-27-2011, 06:11 AM | #13 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
|
01-27-2011, 06:13 AM | #14 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
01-27-2011, 09:49 AM | #15 | |
Junior Member
Posts: 7
Karma: 180
Join Date: Jan 2011
Device: none
|
hallo again and sorry for the late answer ;p
so when I execute this command Quote:
didnt try the .doc/.docx yet because ive lent out my hd with server out for today |
|
Tags |
calibre pdf epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion | foxxywith2xs | Calibre | 7 | 12-16-2012 07:49 PM |
[Old Thread] Calibre Command line and .bat file | stratman | Calibre | 15 | 01-10-2012 05:38 PM |
Multiple Calibre Files? | Sydney's Mom | Calibre | 21 | 05-02-2010 10:42 AM |
Epub To RB Conversion Problem - Files From Both Calibre and Nuevomedia | Brandon202000 | Calibre | 2 | 03-25-2010 12:42 PM |
Epub To RB Conversion Problem - Files From Both Calibre and Nuevomedia | Brandon202000 | Calibre | 0 | 01-15-2010 02:39 PM |