First assume an FTP address user name password
FTP Server:home4u.at.china.com
User:yepanghuang
Password:abc123
Open the Windows Start menu, execute the "Run" command, enter FTP in the dialog, press "OK" button will switch to DOS window, a command prompt appears
ftp> Type the command to connect to the FTP server:
Ftp> Open home4u.at.china.com (carriage return)
Wait a moment, the screen prompts the connection to succeed:
Ftp> connected to Home4u.china.com
Then the server asks the user name and password, enter Yepanghuang and abc123, respectively, to be certified.
FTP Upload files under windows:
For example, to upload the D:\index.html to the root of the server, you can type:
Ftp> put D:\index.html (carriage return)
When the screen prompts you to complete the transfer, you can type the relevant command to view:
ftp> dir (carriage return)
FTP upload download under windows:
Suppose you want to download all the. jpg files from the server \images directory to this computer, you can enter the instructions:
ftp> CD images (carriage return) [Note: Enter \images directory]
Ftp> mget *.jpg
Under Windows FTP upload and download work completed, type bye interrupt connection.
Ftp> Bye (carriage return)
Here are some common FTP commands:
1. Open: Connect to the server;
2. Send (Put): Upload files;
3. Get: Download files;
4. mget: Download multiple files;
5. CD: Switch directory;
6. Dir: View the files in the current directory;
7. del: Delete files;
8. Bye: Interrupts the connection to the server.
If you want to learn more, you can type
ftp> Help (carriage return)
To view the command set:
ASCII: Set to transfer files in ASCII mode (default value)
Bell: Every time a file transfer is completed, Alarm prompts
Binary: Set to transfer files in binary mode
Bye: Terminates the host FTP process and exits the FTP management mode
Case: When on, the file name copied with the Mget command to the local machine, all converted to lowercase letters
CD: cd command with UNIX
Cdup: Return to the top level directory
chmod: Changing file permissions for remote hosts
Close: Terminates the remote FTP process, returns to the FTP command state, and all macro definitions are deleted
Delete: Remove files from the remote host
dir [remote-directory] [Local-file]: Lists the files in the current remote host directory. If you have a local file, write the results to a local file
get [Remote-file] [Local-file]: Transfer from the remote host to the local host
Help [command]: Explanation of the output command
LCD: Change the working directory of the current local host, if default, go to the current user's home directory
LS [remote-directory] [local-file]: With dir
FTP Upload and download under Windows and some common commands