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 > Retrieve folder contents from FTP server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-08, 07:46
plsh plsh is offline
Registered User
 
Join Date: Nov 2004
Posts: 253
Retrieve folder contents from FTP server

Good day,

I am trying to find a way to retrieve the contents of a folder, the names of the files in the folder, from an ftp server.

I have a username, password and ftp address boces on the screen and when the user enters in the valid information I would like to display all the files that are in this location to them.

I know one can do this manually and check for themselves but want to just display the file list to the user this way.

Can anyone help please?
Reply With Quote
  #2 (permalink)  
Old 11-25-08, 20:29
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Could I get some help working with files using FileSystemObject?
http://classicasp.aspfaq.com/files/d...temobject.html
And to display files in a folder such as all the .gif files go down to "Copying a set of files" and change this line:
fso.CopyFile Map(File.Name), dstFolder
To be something like this instead:
Response.Write File.Name & "<br>"
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
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