Zipping Files on Server

Discussion in 'ASP General' started by Keith, Feb 7, 2005.

  1. Keith

    Keith Guest

    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!

    Keith, Feb 7, 2005
    1. Advertisements

  2. 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
    ( for Winzip (,
    "shell out" and execute the commands for the command line add-on to zip

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

    Ray at work
    Ray Costanzo [MVP], Feb 7, 2005
    1. Advertisements

  3. Keith

    teknohippy Guest

    Plenty of zippy whotsits on aspin.

    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.
    teknohippy, Feb 8, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.