Friday 4 July 2008

FTP Batch File

Windows has a built in FTP client that can be used to transfer files using a DOS batch file.
This can be used in DTS packages.

To run the FTP client you pass in a batch file containing the FTP access details, change directory command if need and the files to transfer.

Text file commands:

open servername
username
password

cd /data/ftp
put c:\filetotransfer.txt
put c:\otherfiletotransfer.txt
quit

Run the FTP client with the following commands:

cd windows
ftp -s:c:\textfilecommands.txt

For more info:
http://www.computerhope.com/software/ftp.htm

No comments:

Free Hit Counter