Link to home
Start Free TrialLog in
Avatar of digisel
digiselFlag for United Kingdom of Great Britain and Northern Ireland

asked on

how can i open a ZHTML file in windows please?

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
Avatar of crystal (strive4peace) - Microsoft MVP, Access
crystal (strive4peace) - Microsoft MVP, Access

this is a zipped HTML file saved by Secure IE

http://www.file-extensions.org/zhtml-file-extension
Avatar of digisel

ASKER

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.
Avatar of digisel

ASKER

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.
SOLUTION
Avatar of crystal (strive4peace) - Microsoft MVP, Access
crystal (strive4peace) - Microsoft MVP, Access

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of digisel

ASKER

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" "%~nA.zip"

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 "Filename1.zip".  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.