View previous topic :: View next topic |
Author |
Message |
WilSmith -
Joined: 19 Jan 2004 Posts: 3
|
Posted: Fri Sep 17, 2004 4:19 pm Post subject: need help combining 2 files |
|
|
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 |
|
|
mcwilliams132 -
Joined: 27 Jul 2003 Posts: 167 Location: Oshkosh, WI
|
Posted: Fri Sep 17, 2004 6:42 pm Post subject: |
|
|
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 |
|
|
|