VB programmer's FTP program guide 1.4-Download or Upload File

zhaozj2021-02-08  341

Tickets: Download or Uploads Documentary: Qianqian Downloads Simple and Download with FTP Download File. Before downloading, please ensure that you are in binary mode. FTP has two file transfer mode, ASCII mode, and binary mode. To convert to binary mode, you can use bin commands. FTP> bin

200 Type Set to I.

Returns the ASCII mode, use the ASC command. Use the GET command to get the file. If you want to use the original file name to download files in the default directory, you have to enter get See Figure 4. You can only enter the GET, the system will prompt you to download the file name, then prompt you to store the new file name (and directory).

Figure 4 get command ftp> get ketme.txt

200 Port Command Successful.

150 Opening Binary Mode Data Connection for Readme.txt (1571 BYtes).

226 Transfer Complete.

1571 BYtes Received in 3.46 Seconds (0.45 kbytes / sec)

Upload you can use the Send command upload file. Of course, the server should allow you to upload files. Figure 5.

Figure 5 send the send file. FTP> Send

(local-file) MyFile.zip

(remote-file) MyFile.zip

200 Port Command Successful.

150 Opening Binary Mode Data Connection for MyFile.zip.

226 Transfer Complete.

3018 BYTES SENT IN 0.06 Seconds (50.30 kbytes / sec)

(Thousands of VB stations are reproduced, please keep this information)

转载请注明原文地址:https://www.9cbs.com/read-923.html

New Post(0)