Quote:
Originally Posted by Vortex
BR, I didn't write the batch file, I'm useless at coding, it's all double dutch to me.
|
@
Vortex - Aaah, OK
I'm using
«library path» as shorthand for the calibre library/author/book folder. So using the book you're using as your test that would be
Code:
C:\Program Files\Program Files Portable\Calibre Portable\Calibre Library\Caroline B. Cooney\Freeze Tag (6)
The command line 'template' as shown in the bottom panel of File Types Manager is
Code:
"C:\htmlz2zip.bat " "%1"
So when you Send (To) your test HTMLZ the %1 is replaced by the path to the HTMLZ file ie
Code:
"C:\htmlz2zip.bat "«library path»\Freeze Tag - Caroline B. Cooney.htmlz"
I suggest you ask whoever wrote the batch file you have, to rewrite it to do the following,
extract the string before the ".HTMLZ" from %1 into %N (name)
concatenate %N and ".ZIP" to create %F (file)
copy %1 to %F (.htmlz to .zip)
run ubook with %F
delete %F
Don't throw the old one away - rename it to htmlz2zip.batsave
Maybe one of the script kiddies here could do it for you
BR