If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Upload file to server , check folder and files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-04, 09:10
Yutaka Yutaka is offline
Registered User
 
Join Date: Feb 2003
Posts: 20
Upload file to server , check folder and files

hello guys,

I got a problem doing uploading. Actually it works, but I want to do about checking. The scripts that I'm using is ASP

What I want to do is upload the file to: IP address\foldername

Actually I want to upload to IP address\DesignCtr\MQS\
In folder MQS, got month's folder like Aug, Jan,....etc
In each month's folder got 2 folders which are Best and DVD

When I want to upload a file, example the file name is AUG-report.doc
I got to grab the the file name "AUG" to check whether folder AUG is exist in folder MQS, if not then create a folder named AUG

if it exists, then I use the value <%=division%> which contains either value Best or DVD to check whether in AUG folder has Best or DVD folder(refering to division value), if not then create Best or DVD folder and store the file. Example if the <%=division%> value is Best, then store it in Best folder.

If folder Best or DVD already exist, then check AUG-report.doc is exist or not, if it exist then prompt out the message whether to overwrite it, if not then store it.

This is the upload file(http://www.geocities.com/cbkai/uploa...leuploader.zip), but upload to C drive, I want to upload to an IP adress followed by folder's name. And the checking part I got no idea how to do. Anyone can please help?
I will be very appreciate your help. Thank you.

Yutaka
Reply With Quote
  #2 (permalink)  
Old 10-10-04, 19:45
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
without looking at the tool at all what I would say is you want to upload it using the tool and them move it using the Scripting.FileSystemObject

You would need to make sure that the FileSystemObject had the correct permissions to do everything you need, it definately has the functionality.

Check here for more information

http://msdn.microsoft.com/library/de...stemObject.asp
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On