How to use ASP & UnzipFile/Extract Zip file This is tutorial asp developers how to using ASP and Extract Zip file
ShotDev Focus:
- ASP & Extract Zip file
Example
asp_extract_zip.asp
<%Option Explicit%>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim objZip,sResult,sFile
Set objZip = Server.CreateObject("Pnvzip.ZipFunctions")
sResult = objZip.UnzipFile(Server.MapPath("MyXls/MyCustomer.zip"),Server.MapPath("MyXls/MyCustomer/"))
Response.Write "Result code :" & sResult & "<br>"
'*** GUnzipFile(source,destination) for .gz ***'
Set objZip = Nothing
%>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_extract_zip.asp
Screenshot




