Search code examples
c#asp-classicionic-zip

How to use ionic zip or dot net zip in asp classic


How can I use ionic zip or dotnet zip library in Classic ASP to extract zip file? I am very new in classic asp. So could you please elaborate step wise step. How could it will working in server as well.


Solution

  • Step 1: Install into the GAC: gacutil -i Ionic.Zip.dll

    Step 2: Register for COM use: regasm Ionic.Zip.dll

    step 3: make instance of com object in your classic asp code dim zip set zip = CreateObject("Ionic.Zip.ZipFile")

    step 4: now use this zip object to complete your task