How to use ASP & Zip Multiple file This is tutorial asp developers how to using ASP and Zip Multiple file
ShotDev Focus:
- ASP & Zip Multiple file
Example
asp_zip_file.asp
<%Option Explicit%> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Dim objZip,sResult,sFile Set objZip = Server.CreateObject("Pnvzip.ZipFunctions") sFile = Server.MapPath("MyXls/MyCustomer.xls")&";"&Server.MapPath("MyXls/MyCustomer2.xls") sResult = objZip.ZipFile(sFile,Server.MapPath("MyXls/MyCustomer.zip")) Response.Write "Result code :" & sResult & "<br>" '*** GZipFile(In,Out) for .gz ***' Response.Write "<a href=MyXls/MyCustomer.zip>Click here</a> Download Zip Files " Set objZip = Nothing %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_zip_multifile.asp
Screenshot