View Single Post
Old 03-26-2014, 05:57 PM   #10
Vortex
Groupie
Vortex began at the beginning.
 
Vortex's Avatar
 
Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
BR, Thanks for taking the time to help

Quote:
The default handler within calibre itself for HTMLZ is the calibre ebook-viewer i.e. Preferences->Behaviour->Use internal viewer->HTMLZ is checked. Can you confirm that you have unchecked that setting ?
Yes settings unchecked.

Quote:
Assuming you've done that, then when you click on the HTMLZ link in the Book Details panel calibre will ask Windows to open the file with whatever it has in its File Association table for HTMLZ. By default Windows wont have anything for HTMLZ so it will report an error to calibre, and calibre will display an error - see first attachment.

What do you mean by does not work - does it report an error or just do nothing

This implies that you have set a Windows File Association for HTMLZ, presumably to your batch file - that's not something I've ever needed to do.
In Windows 7 "Control Panel\All Control Panel Items\Default Programs\Set Associations" I have .htmlz files set to open with my batch file (htmlz2zip.bat). It tries to execute the batch file but it fails with the error:

================================================
C:\Users\-\Desktop\books\Calibre Portable>for /F "tokens=* delims= " %a in ('dir
/b *.htmlz') do (
copy "%a" "%~Na.zip"
"C:\Program Files (x86)\ubook\uBook.exe" "%~Na.zip"
)
File Not Found

C:\Users\-\Desktop\books\Calibre Portable>Pause
Press any key to continue . . .
============================================

Screenshot from File Types Manager attached.
Attached Thumbnails
Click image for larger version

Name:	htmlzfileass.jpg
Views:	196
Size:	75.2 KB
ID:	120848  
Vortex is offline   Reply With Quote