Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ftp A whole directory through VB script

Status
Not open for further replies.

clauds

Programmer
Jul 30, 2001
10
0
0
US
I need to be able to FTP an entire directory along with its contents (subdirectories & files) through VB script (I'm writing the ftp script into a BAT file to run). Plus - can i FTP files that are not somewhere under the FTPRoot Directory?
 
hi
try changing to the directory to be copied before opening the ftp prompt, next connect to the server and create a directory with the same name as the one you are in.(mkdir) next "put *.*"

I have no idea if this will work but is worth a shot eh?? :)
 
Sorry - i guess I wasn't clear enough. I want to GET an entire directory, not PUT.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top