how can i open a ZHTML file in windows please?

digisel used Ask the Experts™
I have a number of Zhtml files  on my hard drive.  I need to open them.  How can I please?
I am running Windows 7
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and Programming
Top Expert 2015

this is a zipped HTML file saved by Secure IE


yes, i know.   problem is file extensions wont download because it is blocked by malaware!!
Your question stated "how can I open them from my hard drive?".  crystal answered your question as asked, but now you are saying that the files are being blocked when you try to download them.  

Could you please start again and describe exactly what you are trying to do; at what point the process is failing; details of error messages; and what software versions and/or websites are involved.  Feel free to use more than one sentence.

An example of a similar sounding issue is where you try to open an *.XLSX or *.DOCX file from within an email using Outlook Web Access (Exchange Server) in certain browsers.  For some reason the extension is changed to *.ZIP when it downloads the file to the temporary cache, but then OWA decides that it can't open ZIP files.  A DOCX and XLSX is just a ZIP file with another extension, but it isn't handled properly in tis example.

Perhaps you are having similar issues, but without access to a crystal ball we can't know.
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).


Hi   Thanks.  Fair point.     The file is is 987kb.  When I double click on it the following messages MD Word message comes up:  "The file cannot be opened because  there are problems with the document"   when I click on details the folowing additional message comes up: Microsoft Office cannot open the file because some parts are missing or invalid."   Not this is notdhown in the directory as a .doc file but a ZHTML file.

If I try to open it with Open With a Microsoft Word dialogue box comes up.       When I click to open it the Message "Word found unreadable continent" comes up.   It asks:  "do you want to recover the contents of this document?   When I click the Yes button, I end up with a dead end.

I then continue to pursue the IE SecureIt option whichagain resulted in a dead end for thereasons alreadystated.
Hope this helps.
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and Programming
Top Expert 2015
try renaming the extension to ZIP and see if you can see the individual files in the zip
I have never created nor opened a ZHTML file before, and I am not familiar with "Secure IE" which seems to have been a product that is owned by the same people that own McAfee software - Capital Intellect.

Let's assume that it is simply a standard *.ZIP file with an alternative file extension that is created by Secure IE as an alternative means to save out a "Web Page Complete" in a compressed package, perhaps also applying a password to the archive in so doing.  Whether or not Secure IE was ever intended to open such a file again and load the HTML file within it is another matter that I don't know the answer to.

Although MS Word can open a saved HTML web page file in edit mode, and display any images that are referenced in the html code or associated style sheets, it will not be able to natively open a ZIP file and then open an HTML file that is compressed into it.  It would have to first be unzipped and then the unpacked HTML file opened in Word, unless there is an MS Office add-on that allows you to do this.

A ZIP file is a compressed binary package that can only be opened (decompressed) using Windows own built-in resources, or any one of the dozens of "unzipping" programs and applications.  There are loads of different compression algorithms that most of the readily available "zip" programs can create or read, but occasionally you encounter an odd-ball proprietary algorithm that is only understood by the program that created the file.

Of interest, I discovered (from here: that there seems to be two entirely different types of ZHTML files:

zhtml (Secure IE Zipped HTML File)
Category: Web Files Web page saved by Secure IE, a Web browser that is similar to Internet Explorer, but includes additional security features; stores the HTML and images from the Web page in a single compressed file.

zhtml (RabbitWeb Webpage)
Category: Web Files Webpage parsed by RabbitWeb, a Web server that integrates .C program code with special HTML tags; contains "ZHTML" commands embedded within the webpage that are used to generate dynamic content for the webpage; can sometimes be seen as ".zhtml" in a Web browser's URL.

If you have the latter, then things are considerably more complicated.

I would imagine that if you renamed a *.ZHTML file to a *.ZIP file, it would probably unpack using Windows native resources or programs like WinZip, 7-zip, and so on.  It might be worth testing this out before we take this any further (EDIT after posting - as suggested above by crystal).

In the meantime it would appear that MS Word has become associated with the *.ZHTML file extension, and it probably should not have been.  Are you familiar with using REGEDIT to inspect your Registry?  I would be curious to see what you have in the following keys if they exist;



Thanks for your help.   This is far too complicated.   I will try to re-source the data.
Thank you digisel.

I'm sorry that this has ended up being unnecessarily complicated for your needs.  Perhaps my long-winded comment made the process seem more complicated than it actually is.  I was merely trying tounderstand the problem rather than fully exploring your options, which would be to simply rename your ZHTML files to ZIP, then unzip them all to their own folders using an unzipping program like WinZip or 7-Zip, and then opening the HTML file inside each new folder in a browser for viewing or in a web page editor for editing.

Renaming ALL of your ZHTML files to ZIP files in one pass is easily achieved in "batch mode" using a basic "DOS" command something like this (I suggest that if you are testing this that you use a COPY of the files first):

ZHTML Files All In One Folder:
RENAME "C:\Path_To_Your_Folder_Of_ZHTML_Files\*.zhtml" "*.zip"

ZHTML Files In One Folder And One Or More Sub-Folders Thereof:
FOR /R "C:\Path_To_Your_Folder_Of_ZHTML_Files" %A IN (*.zhtml) DO RENAME "%A" ""

The 2nd example just starts at "C:\Path_To_Your_Folder_Of_ZHTML_Files", walks through that folder and all sub-folders looking for *.ZHTML files, and for each one it finds it renames it by changing the *.ZHTML file extension to *.ZIP.

Similarly, you can unzip all of the ZIP files to separate folders in one pass by calling the unzipping program in batch mode.  The actual batch file command would vary between programs, so an example can't really be given, but here's the general idea:

FOR /R "C:\Path_To_ZIP_Files" %A IN (*.zip) DO CALL "C:\Path_To\UnzipProgram.exe" <extract parameter here> "%A"

Once done, you should be able to open any of the HTML files that have been extracted to their new folders for viewing or editing.

That's all fine and well if you have a static repository of these files, but if you are receiving one or more of these on a daily basis I can see how it could be more bother than it's worth to a busy person who doesn't have time to save out each file and rename it to ZIP to unpack the contents you need.  You might be able to bypass the renaming of zhtml files to zip IF you are downloading them from links on a web page.  You could RIGHT-Click the link and choose > "Save Target File" (different browsers have different wording), and instead of saving as "Filename1.zhtml" you could change the extension to "".  You would still have to locate the downloaded zip files in Windows Explorer and unzip them to get at the contents though.

I can see some situations were it it is preferable to present multiple files in one package as one compressed file rather than simply printing an entire web page as a PDF file and sharing that instead.  One benefit is that saving a web page as a PDF file does not always maintain the original layout as seen in a browser, and another is that the content isn't as readily viewable to casual visitors to a web page - especially if a ZHTML file can be protected by a password.

Those who need to see or work with the code in web pages and their ancilliary script files need all the files, and it would be a nuisance for them to have to download every file used for the web page separately and save them in the proper folder hierarchy, so it's easier in this case to package all the files in one "zipped" container.

I don't know what you need from the downloaded files, but it would appear from what you said that having them as zhtml files is more of a nuisance than benefit.  I hope you can find an alternative source for your data.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial