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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

map an ftp site to a local drive ?

Status
Not open for further replies.

zxmax

Technical User
Nov 24, 2003
179
CA
I need to have a small batch file to be schedualed to run at a certain time.
what i would need in that batch file is to have certain files to be copied to an FTP site (for backup purposes) no i don't know what to write in that batch file , unless i have the ftp folder is maped to a local drive (eg drive X) so i would have something like this :
copy C:/test.txt X:/backup/

any ideas or suggestions to go around this ? thanks in advance
 
Hi,

You can use ftp commands within a batch file so all you should need to do within the batch file is

Open the ftp connection
specifiy username and password
move to the required remote and local directories
change to Bin transfer type
'put' the required files across
close the connection

Hope this helps a little. If not let me know more specific details and I'll try and help some more.
 
Create a batch file similar to this

open servername
user anonymous anonymous
cd xxxxx
lcd yyyyy
bin
prompt
get zzzzz
bye

-------------------------------

If it doesn't leak oil it must be empty!!
 
Great, thanks alot. it works perfect
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top