Connection download and upload files via ftp command CMD

Download files via ftp connection CMD command

  1. win + r cmd opens the DOS command input
    Here Insert Picture Description

2. ftp connection
format: ftp ip and then enter the prompts to enter a user name and password
Here Insert Picture Description

3. After the successful landing. Input "cd" command displays information about the file permissions in the directory "remote directory", type "dir" command shows can be entered into the file to be downloaded through the "cd filename" command directory. then enter the "ls" command to display all the files in a folder.
Here Insert Picture Description

4. Enter "lcd local file directory" (referring you want to download the file to the target directory is the default if you do not enter the c drive the current system user directory)

Here Insert Picture Description

5. Enter the "prompt" command (open interactive mode), and finally enter "mget service on which you want to download the file name" Enter. This can be downloaded. See "Transfer complete", the download was successful. local path to be able to see the file download.
Here Insert Picture Description

CMD command to connect via ftp upload files
First you have to ensure that local files to upload, and then enter the directory to which you want to spread to the next, is PUT to upload
1. to upload a file using PUT 'local file path'
Here Insert Picture Description
2.dir namely You can view the files have been uploaded
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_43713498/article/details/84989183