How do I write batch file using FTP in it

December 22, 2010 at 00:20:57
Specs: Windows server 2003
I want to write a batch file that will run Monday thru Friday. I want it to FTP a local file to remote host. I am new to using batch file commands.

See More: How do I write batch file using FTP in it

Report •


#1
December 22, 2010 at 01:46:01
Use the "-s" switch with the "ftp" command to specify a file that contains the commands that you wish to send to the ftp server (i.e "ftp -s:<filename>"). You'll probably have to try a few times before you get the command file correct.

Report •

#2
December 22, 2010 at 05:41:14
Your ftp script will look much like this:

===================================
o domain.com
username
password
bin
cd mydir
put filespec.ext
bye


=====================================
Life is too important to be taken seriously.

M2


Report •

Related Solutions


Ask Question