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
18.disconnection: Same as close.
19.form format: Sets the file transfer mode to format, default to file mode.
20.get Remote-file[local-file]: remote-file The remote host file to the local-file of the local hard drive.
21.glob: Sets the file name extension for Mdelete,mget,mput, which does not extend the filename by default, and the-G parameter of the command line.
22.hash: 1024 bytes per transmission, displaying a hash symbol (#).
23.help[cmd]: Displays the help information for the FTP internal command cmd, such as: get.
24.idle[seconds]: Sets the remote server's hibernate timer to [seconds] seconds.
25.image: Set binary transmission mode (same binary).
26.LCD[DIR]: Switches the local working directory to dir.
27.ls[remote-dir][local-file]: Displays the remote directory Remote-dir and stores the local file Local-file.
28.macdef Macro-name: Defines a macro that, when it encounters an empty row under Macdef, ends the macro definition.
29.mdelete[remote-file]: Deletes the remote host file.
30.mdir remote-files Local-file: Similar to dir, but can specify multiple remote files, such as: Mdir *.o.*.zipoutfile.