Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2006, 12:31 PM
Authorized User
 
Join Date: Sep 2004
Posts: 62
Thanks: 0
Thanked 1 Time in 1 Post
Default Extracting Files from a ZIP archive via VBScript

I have a page that registered users use to upload zip files containing hundreds of PDF files. I have the zip file uploading correctly and saving under the appropriate name, etc - but how can I use ASP and vbscript to automatically extract all of the contents of the uploaded file into a specified directory? I have never attempted this before so any help would be greatly appreciated...

 
Old June 19th, 2006, 08:06 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmmm.

This sounds like you are going to have to create a component or, if you have access to the server, you could rigth a Windows Scripting Host file (WSH) that will unzip files in X directory. (WSH files can be written in VBScript)

http://www.codecomments.com/VBScript/message731969.html

That will point you in the right direction as far as WSH goes but doing this directly from a pure .NET page, I don't think you are going to be able to do that. (You can shell cmd.exe from an asp.net page and send commands to it, telling it to execute a .bat file for instance which could also be an option for you.)

I am going to post this in here just because its the Beginners forum: When you shell cmd.exe from a .NET page the user wont see the command window so you dont have to worry about them free forming something in like deltree. ;]

HtH

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Zip files within a folder Udi C# 2 January 25th, 2007 12:45 AM
decrypt files from zip files mmmobasher VS.NET 2002/2003 0 January 21st, 2004 03:19 AM
How to Zip a folder with text files. pcshan Classic ASP Basics 0 July 29th, 2003 01:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.