FTP with xcopy?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, can someone tell me if I can set up xcopy to ftp files from a local
directory to a remote directory? I use aceFTP, but I'm not sure how to get
the two together, or if that's even possible. Maybe there's some other,
easier way of automating a regular FTP backup?
Thanks!
 
dj_bell said:
Hi, can someone tell me if I can set up xcopy to ftp files from a local
directory to a remote directory? I use aceFTP, but I'm not sure how to get
the two together, or if that's even possible. Maybe there's some other,
easier way of automating a regular FTP backup?
Thanks!

The usual way is to set up a VPN (Virtual Private Network).
 
Just use FTP to do it.
You can schedule it using the task scheduler.
IF you want to do some other operation first then use a batch file to do
that and then call the ftp program.

Create a text file with the FTP commands in it and call it like this;
ftp -s:myfile.txt

The myfile.txt should contain something like this

lcd c:\directoryyouwanttocopyfrom
open ftp.yourserver.com
username
password
cd directoryonftpserver
prompt
binary
mput *.*
bye

If this is confusing let me know

Regards
Mark Dormer
 
I think I get it. First I create a myfile.txt as you've directed below.
Then, for the "calling" part, I create a ftp.bat file that reads:
ftp -s:myfile.txt

Then I set the scheduler to run the ftp.bat file?
 
Back
Top