Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 10: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, 20:45
rokslide rokslide is offline
Coffee Minion
 
Join Date: Nov 2003
Location: Sydney
Posts: 1,515
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

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