sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Keith's Avatar

Zipping Files on Server


Question posted by: Keith (Guest) on July 22nd, 2005 02:26 AM
Is there any way of using ASP to zip up a set of files on the remote server
and either store the resulting zip on the server and/or present it to the
user for download?

The thing that is going to cause problems - I can't install components on
the web server so need a solution that is pure code!

Thanks


2 Answers Posted
Ray Costanzo [MVP]'s Avatar
Ray Costanzo [MVP] July 22nd, 2005 02:26 AM
Guest - n/a Posts
#2: Re: Zipping Files on Server

You will not be able to do this with pure ASP. Installing Winzip and
command line support is not an option either?

You can purchase the Winzip command line add-on
(http://www.winzip.com/downcl.htm) for Winzip (http://www.winzip.com/),
"shell out" and execute the commands for the command line add-on to zip
files.

<%
sCommand = "wzzip D:\Inetpub\wwwroot\test\htmlfiles.zip
D:\Inetpub\wwwroot\test\*.htm"
Set oShell = CreateObject("WScript.Shell")
oShell.Run sCommand, ,True
Set oShell = Nothing
Response.Write "<a href=""htmlfiles.zip"">Download zip file</a>"
%>

Ray at work

"Keith" <@.> wrote in message
news:%23ka6LdSDFHA.2220@TK2MSFTNGP09.phx.gbl...[color=blue]
> Is there any way of using ASP to zip up a set of files on the remote[/color]
server[color=blue]
> and either store the resulting zip on the server and/or present it to the
> user for download?
>
> The thing that is going to cause problems - I can't install components on
> the web server so need a solution that is pure code!
>
> Thanks
>
>[/color]


teknohippy's Avatar
Guest - n/a Posts
#3: Re: Zipping Files on Server

On Mon, 7 Feb 2005 15:11:31 -0000, "Keith" <@.> wrote:
[color=blue]
>Is there any way of using ASP to zip up a set of files on the remote server
>and either store the resulting zip on the server and/or present it to the
>user for download?
>
>The thing that is going to cause problems - I can't install components on
>the web server so need a solution that is pure code!
>
>Thanks
>[/color]
Plenty of zippy whotsits on aspin.

http://www.aspin.com/home/components/file/filecomp

All will need installing on the server though.

Or if your server supports .net then a .net solution will cause less
trouble on a server you don't have control of.

http://www.411asp.net/home/assembly/file/filecomp



--
Iain Norman | http://www.eliteforum.org
 
Not the answer you were looking for? Post your question . . .
197,002 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,002 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors