VB programmer's FTP program guide 1.3- list, change the directory

zhaozj2021-02-08  291

Tickets: List, change the directory: Qianqian lists the directory you can use the Dir command to list the directory. In fact, DIR is not a command specified by FTP, but the standard user interface borrows this command from the operating system. Figure 2 shows the result of the DIR command. The homemost side is the name of the file or directory, and then the file date and time. Then 10-bit file properties. You can use the "D" attribute separate directory or file. If it is "D", it means this is a directory. Change the directory You can change the directory through the CD command. The difference between the DOS command is that it uses a forward slash. For example, change the directory to / wevelopr / vb Directory: FTP> CD DevelopR / VB

250 CWD Command Successful.

Use the DIR command again, you can get a list of files. Figure 3 shows the execution results of the DIR command in the / debp.microsoft.com / wevelopr / vb directory.

Figure 2 DIR command ftp> DIR

200 Port Command Successful.

150 opening ascii mode data connection for / bin / ls.

D ----- 1 Owner Group 0 JUL 3 13:52 Bussys

D ----- 1 Owner Group 0 aug 9 3:00 deskapps

D ----- 1 Owner Group 0 Oct 27 7:35 Developr

----- 1 Owner Group 7905 OCT 5 8:53 DIRMAP.HTM

----- 1 Owner Group 4510 OCT 5 8:52 DIRMAP.TXT

----- 1 Owner Group 712 AUG 25 1994 Disclaimer.txt

----- 1 Owner Group 860 OCT 5 1994 Index.txt

D ----- 1 Owner Group Aug 31 12:17 kbhelp

----- 1 Owner Group 7393252 NOV 28 4:04 LS-LR.TXT

----- 1 Owner Group 914179 Nov 28 4:05 ls-lr.z

----- 1 Owner Group 766409 Nov 28 4:04 ls-lr.zip

D ----- 1 Owner Group 0 Oct 20 9:27 Mscorp

----- 1 Owner Group 28160 NOV 28 1994 msnbro.doc

----- 1 Owner Group 22641 Feb 8 1994 msnbro.txt

D ----- 1 Owner Group 0 Oct 11 3:00 Peropsys

D ----- 1 Owner Group 0 aug 23 21:55 Products

D ----- 1 Owner Group 0 Oct 5 8:46 Services

D ----- 1 Owner Group 0 Nov 22 14:38 Softlib

----- 1 Owner Group 5095 OCT 20 1993 Support-Phones.txt

---- 1 Owner Group 802 Aug 25 1994 Whathapped.txt226 Transfer Complete.

1407 BYtes Received in 0.99 Seconds (1.42 kbytes / sec)

Figure 3 Microsoft / Developr / VB Directory Directory FTP> DIR

200 Port Command Successful.

150 opening ascii mode data connection for / bin / ls.

D ----- 1 Owner Group 0 OCT 25 6:39 KB

D ----- 1 Owner Group 0 Feb 24 11:35 public

----- 1 Owner Group 1571 Aug 24 1994 Readme.txt

D ----- 1 Owner Group 0 AUG 24 1994 Unsup-Ed

226 Transfer Complete.

270 BYtes Received in 0.22 Seconds (1.23 kbytes / sec)

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

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

New Post(0)