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”

Related posts:

  1. How to specify a file as input for grep or awk ? Now that is a very basic thing! But it is...
  2. FTP Files from Shell Script Here is a sample bash or shell script that will...
  3. Clear Network Cache in Windows Well its not really ‘Network Cache’, it is ARP cache...
  4. Creating Tar.gz files in Windows You can open and extract the content from gzipped in...
  5. Windows reboots during booting Once again Windows Troubles, last week I turned off the...
  6. Using Gmail SMTP from Perl Script Gmail does not allow unsecured connections to its SMTP server,...

Trackback

no comment untill now

Add your comment now