web 2.0

How to use ASP & Zip Multiple file

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

ASP & Zip Multiple file

ASP & Zip Multiple file

ASP & Zip Multiple file

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.