batch file - copy 1 file to FTP site

Hi

I need a .bat file to copy 1 file to an FTP server

the details are as follows

Ftp: ftp.myserver.com
User: bob
Pass: bobPass
filename: mybackup.rar
LocalDir: C:\backups\
Remote: \htdocs\backups\

could someone please provide me with a script using the above details to do this

Thanks
paulCardiffAsked:
Who is Participating?
 
WerrockConnect With a Mentor Commented:
Create the file script.txt and enter:
open ftp.myserver.com
bob
bobPass
cd /htdocs/backups
put C:\backups\mybackup.rar
quit

and run with ftp -s:script.txt
0
 
drequinoxCommented:
you can use ftp script for this
http://support.microsoft.com/?kbid=96269
just use the command line options in a batch file
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.