Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
5 years ago

Convert mht file to zip

How can I convert a mht file into zip ?  
  • m_essaid's avatar
    m_essaid
    5 years ago

    Hi kaiii,

    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;