View Single Post
Old 03-27-2014, 04:05 PM   #20
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,829
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Vortex View Post
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

Last edited by BetterRed; 03-27-2014 at 08:18 PM.
BetterRed is offline   Reply With Quote