January 12th, 2006

How to run a FTP script in Windows?

Not only Windows has a built-in command line FTP utility which can be used to connect to FTP sites it also supports FTP script files which come in handy if you have to perform some tasks with FTP regularly or on daily basis.

A FTP Script file is a simple text file which is of the format

Open ftp.mysite.com
FtpUsername
FtpPassword
Lcd desktop
Get anythig.htm
Bye

Save this file using any name and than run it from the command line. Suppose we save this file by giving name “script.txt” in the root of drive C: than it will be run by giving the command.

ftp –s:”C:\script.txt”

the imax | 7:06 pm | Uncategorized

This entry was posted on Thursday, January 12th, 2006 at 7:06 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply