need help combining 2 files

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
WilSmith
-


Joined: 19 Jan 2004
Posts: 3

PostPosted: Fri Sep 17, 2004 4:19 pm    Post subject: need help combining 2 files Reply with quote

Hello, i want to combine 2 functions from 2 files into 1 file.
1. is a list.asp file wich lists the files in a directory
2. is a unzip.asp file that unzips 1 specific file to a specific place

You can find these 2 files on:
http://cc131582-a.ensch1.ov.home.nl/test/list.asp
and
http://cc131582-a.ensch1.ov.home.nl/test/unzip.asp

I am trying ( for weeks now) to combine the 2 filesin such a way that
1. the list only shows zip files and leaves the other out
2. the items on the list can be clicked
3. en when clicked the upzip starts to unzip that selected file from the list to a specific or unspecific place like c:/temp/

Can this be done?
Hope someone can fix this for me or just give me some directions where to begin.

Wil (Netherlands)
Back to top View user's profile Send private message
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Fri Sep 17, 2004 6:42 pm    Post subject: Reply with quote

hmmm...

My initial thougths are this...

Your list.asp file seems to be the main page and your unzip.asp file is more of a behind-the-scenes processing page.

using the FileSystemObject, you can display the contents of a folder and filter on any number of criteria such as file type (*.zip).

Then as you're writing the list to the page...just wrap everything in <a href> tag that points to your unzip.asp page, passing the file name as a prameter via the querystring. I'm not sure how you'd make the uzippigng work - either by launchign an external program on the local machine or you have some script that can open and extract the contents of a zip file - I don't know how to do that....

I'm not sure what you want to happen after that...I guess redirect you back to the list.asp.

But in a nutshell that's what I think needs to happen.

My suggestion...check out a few noob ASP sites such as :

http://www.w3schools.com/asp/default.asp

http://asp101.com/ ... (follow the SAMPLES link on the left)

http://www.aspfaqs.com/aspfaqs/

Best of luck!
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group