[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 475
  • Last Modified:

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
0
paulCardiff
Asked:
paulCardiff
1 Solution
 
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
 
WerrockCommented:
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now