An MHT file is not a compressed file like a ZIP file is. You can't open it and examine the contents.
What are you hoping to do by making such a conversion? Perhaps there's abetter way to meet your needs.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
I have a test which compress and send by mail a mht file.
Here are the few lines I use (delphi script) :
Log.SaveResultsAs(ReportFolder + 'Report.mht', 2); FileList:= slPacker.GetFileListFromFolder(ReportFolder); ArchivePath:= ReportFolder + 'ZippedReport'; if (slPacker.Pack(FileList, ReportFolder, ArchivePath)) then Log.Message('File ziped'); result:= ArchivePath;
Thank you m_essaid! This might be the anser kaiiii is looking for.
@kaiiii , does what m_essaid offer work for your case?
Community and Education Specialist