@
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