DOS - Windows FTP examples and FTP batch parameters.

Community Help: DOS Batch FTP Parameters - Windows FTP parameters and examples are shown below

Share your own experience     View front page

Syntax and possible parameters are as follows:
ftp [-v] [-d] [-i] [-n] [-g] [-s:FileName] [-a] [-w:WindowSize] [-A] [Host]

Most people will only ever use "-s". For example ftp -s:test.txt (This will simply run ftp and use test.txt as your commands for the batch FTP process.

Your test.txt file may look like this:

ftp -s:test.txt www.yourdomainlistedhere.com
id
pwd
put c:\test\filedata.dat
bye

This example above will ftp filedata.dat to your domain if you run this script with your id and password. This is a simple example but they all work similiar to this.