If you can be familiar with and flexible application of FTP internal commands, it is really more than half the effort.
The command line format for FTP is:
Ftp-v-d-i-n-g [host name], where
-V Displays all response information for the remote server;
-N Restricts automatic logon of FTP, that is, not using;. n etrc files;
-D use debugging mode;
-G cancels the global filename.
The internal commands used by FTP are as follows (the brackets indicate an option):
1.! [Cmd[args]]: Perform interactive shell,exit in the local machine back to the FTP environment, such as:!ls*.zip
2.$ Macro-ame[args]: Perform macro definition macro-name.
3.account[password]: Provides the supplemental password required to access system resources after a successful logon to the remote system.
4.append Local-file[remote-file]: Appends the local file to the remote system host and uses the local file name if no remote system file name is specified.
5.ASCII: Use ASCII type transfer mode.
6.bell: The computer rings once after each command completes.
7.bin: Use binary file transfer mode.
8.bye: Exits the FTP session process.
9.case: When using Mget, the upper case of the remote host file name is converted to lowercase letters.
10.CD Remote-dir: Access to remote host directory.
11.cdup: Enter the parent directory of the remote host directory.
12.chmod mode File-name: Sets the access mode of the remote host file File-name to mode, such as: chmod 777 a.out.
13.close: Interrupts the FTP session with the remote server (corresponding to open).
14.CR: When the file is transferred using ASSCII, the carriage return line wrap is converted to a back line.
15.delete remote-file: Deletes the remote host file.
16.debug[debug-value]: Set debug mode, display every command sent to the remote host, such as: Deb up 3, if set to 0, means cancel Debug.
17.dir[remote-dir][local-file]: Displays the remote host directory and stores the results in a local file