Network+

Скачать в pdf «Network+»

After you navigate to the directory and find the file you want to download, you must set the parameters for the type of file. Files come in two types:


■    ASCII, which contains text


■    Binary, which is all other files


If you set FTP to the wrong type, the file you download will contain gibberish. When in doubt, set FTP to download files as binary files.


To set the file type to ASCII, type ASCII at the FTP command prompt. FTP will respond by telling you that the file type has been set to A (ASCII): FTP> ASCII Type set to A


To set the file type to binary, type binary at the FTP command prompt. FTP will respond by telling you that the file type has been set to I (binary):


FTP> binary Type set to I


To download the file, you use the get command, like so:


FTP> get scrsav.exe


200 PORT command successful.


150 Opening BINARY mode data connection for ‘scrsav.exe’ (567018 bytes).


The file will start downloading to your hard drive. Unfortunately, the FTP utility doesn’t give you any indication of the progress of the transfer. When the file has downloaded, the FTP utility will display the following message and return you to the FTP command prompt:


226 Transfer complete.


567018 bytes received in 116.27 seconds (4.88 Kbytes/sec)


You can download multiple files by using the mget command. Simply type mget, a space, and then a wildcard that specifies the files you want to get. For example, to download all the text files in a directory, type mget *.txt.

Скачать в pdf «Network+»