summary
FTP (File Transfer Protocol) is a file transfer utility that is usually used with UNIX systems.
FTP can use scripts (list of commands from external files). The following example demonstrates a script that opens the connection to the IP address 11.11.11.11, log in to the host with the password "guest" with a guest, upload the file1 file, then exit:
Open 11.11.11.11UserguestGuestput file1quit
More information
You must use
-s option, FTP can read the file under Windows. If the previous script is in a file called Test.scr, you can start the script by typing the following:
FTP -S: Test.scr
You can specify the host name in the command line and then use the script to log in. For example, if you use the following command line:
FTP -S: Test.scr 11.11.11.11
The script file should be as follows:
UserGuestGuest
Put file1
quit
However, if the FTP host performs automatic login, this command will not run. To turn off automatic login, use it in the command line
-n switch as follows:
FTP -N -S: Test.scr 11.11.11.11
Article ID: 96269 Last Update Date: January 31, 2005 Version: 3.1