VB programmer's FTP programming guide 1.2- Using Windows FTP programs

zhaozj2021-02-08  425

Ticket: Connection and Login FTP Server Lord: Qianqian FTP Program Windows has built-in FTP program ftp.exe, as shown in Figure 1, is a DOS program. Figure 1 FTP window. After connecting and logging in to run ftp.exe, you will see the following prompt: ftp> _

You can connect any FTP site with the open command. For example, you can use the following command to connect to Microsoft public FTP sites: ftp> open ftp.microsoft.com

The program will attempt to connect to the server on the 21st port. If the connection is successful, you will get a 220 answer, followed by welcome information. Connected to ftp.microsoft.com.

220 FTP Microsoft FTP Service (Version 1.0).

Below you will prompt your username. For public access (anonymous FTP), you can play anonymous directly: user (ftp.microsoft.com: "): anonymous

331 Anonymous Access ALOWED, Send Identity (E-mail name) AS Password.

Here is the entered password. If you are anonymous access to enter your email address. PASSWORD:

The server will then allow your access and prompt additional welcome information. You can use a series of fixed commands to access the site. 230-this is ftp.microsoft.com. See the index.txt file

In The Root Directory for More Information

230 Anonymous user logged in as anonymous. (Thousands of VB stations, please keep this information)

close the window

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

New Post(0)