View Single Post
Old 03-27-2014, 10:09 AM   #16
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,833
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Vortex - can you post

1. what you get when you double click the HTMLZ
2. what you get when you Send the HTMLZ To your batch file

Or are they the same ?

I would expect to see something like

Code:
echo copy "Title - Author.HTMLZ" "Title - Author.ZIP"
"C:\Program Files\Program Files Portable\ubook\uBook.exe" "Title - Author.ZIP"


Send To on "«library path»\Title - Author.HTMLZ" will invoke your batch file with this command

Code:
C:\htmlz2zip.bat "«library path»\Title - Author.HTMLZ"
I don't understand why you are iterating through a directory, why don't you

extract the string before the ".HTMLZ" from %1 into %N (name)
concatenate %N and ".ZIP" to create %F,
copy %1 to %F
run ubook with %F

BTW: You should delete the ZIP when ubook exits. Its bad practice to leave files in book files that calibre doesn't know about

BR

Last edited by BetterRed; 03-27-2014 at 10:51 AM. Reason: MB went to sleep
BetterRed is offline   Reply With Quote