Quote:
Originally Posted by Starson17
I did a lot of testing when looking for a workaround, and it's the Calibre programs (calibredb is what I tested) that have bat file problems, and there are problems only when another command follows them in the bat file.
|
One source of the confusion could be that web2disk is in fact a calibre program. The source is in "src\calibre\web\fetch\simple.py"
Quote:
IOW, I'd expect
web2disk ....
ebook-convert ....
to work in a bat file, but not:
ebook-convert ....
web2disk ....
The problem is that the bat file dies after the Calibre executable is done.
Does W7 run bat files to the end when the Calibre executable is followed by another executable or only when it is preceded by a non-Calibre executable? The latter always works for me regardless of the use of "start."
|
For me running W7, both permutations work. I also tried both permutations at once, as in:
Code:
del index.xhtml
web2disk http://uncle-rods.blogspot.com -r 0
ebook-convert index.xhtml unclerod1.epub --authors "Rod Mollise" --author-sort "Mollise, Rod" --cover "http://skywatch.brainiac.com/astroland/rodnow.jpg"
del index.xhtml
web2disk http://uncle-rods.blogspot.com -r 0
ebook-convert index.xhtml unclerod2.epub --authors "Rod Mollise" --author-sort "Mollise, Rod" --cover "http://skywatch.brainiac.com/astroland/rodnow.jpg"
and it worked. The output in the cmd box is correct, and I get both unclerod1.epub and unclerod2.epub. It seems that W7 cmd processing is in fact different from both XP and Vista.