Forum Discussion

poffin's avatar
poffin
Occasional Contributor
9 years ago

Unzipping .zip files

I need to be able to either inspect the contents of a zip file or unzip the file & then read contents for testing a desktop application. I'm using javascript in my project. Can anyone point me in the...
  • Marsha_R's avatar
    Marsha_R
    9 years ago

    If you have any more specific details on what you are trying to do and what you have already tried, then perhaps there will be more specific suggestions to offer!

  • HKosova's avatar
    HKosova
    9 years ago

    poffin wrote:

     

    I get an error: "ReferenceError ActiveXObject is not defined".


    If you use JavaScript (not JScript), replace

    var fso = new ActiveXObject("Scripting.FileSystemObject");
    ...
    var objShell = new ActiveXObject("Shell.Application");

    with

    var fso = Sys.OleObject("Scripting.FileSystemObject");
    ...
    var objShell = Sys.OleObject("Shell.Application");