FTP


FTP \ windows \system32\ftp.exe

FTP (File Transfer Protocol) is used to transfer files to and from a remote computer, typically over an Internet connection. When you start FTP, you are connecting to a remote host, to which commands are issued by typing in the prompt. (If you specify an ftp:// URL, the commands are typed automatically.)

TIP

figs/frog_climbingxp_tip.gif

Although each FTP session requires a username and password, many servers allow "anonymous" connections. Enter anonymous as the username and an email address (or, frankly, any bogus text) as the password to log in.

Command

Description

ascii

Sets the file transfer type to ASCII (plain text), useful if you're transferring text files between Unix and Windows systems. Such translation will corrupt binary files, though, so you should use the binary command if you're not transferring ASCII files.

binary

Sets the file transfer type to binary, a crucial step for transferring nontext files (such as .zip , .gif , and .doc ) between Unix and Windows-based machines. See also: ascii .

bye

Disconnects and ends the FTP session.

cd remote_folder

Changes the working directory on the remote computer (to cd on the local machine, use lcd ).

delete remote_file

Deletes a single file on the remote computer. To delete multiple files with wildcards (see Chapter 6), use mdelete instead.

dir

Displays a list of the contents of the working directory on the remote computer, with details. See dir in Chapter 6.

get remote_file [ local_file ]

Transfers remote_file from the server to the local machine, optionally renaming it to local_file . If transferring binary (nontext) files, use the binary command first. To transfer multiple files with wildcards, use mget instead.

lcd [ directory ]

Changes the working directory on the local computer.

mkdir directory

Creates a remote directory; see mkdir in Chapter 6.

prompt

Turns on or off prompting for multiple file transfers ( mput , mget , etc.)

put local_file [ remote_file ]

Transfers local_file from the server to the local machine, optionally renaming it to remote_file . If transferring binary (nontext) files, use the binary command first. To transfer multiple files with wildcards, use mput instead.

rmdir remote_directory

Deletes a remote directory.



Windows XP Pocket Reference
Windows XP Pocket Reference
ISBN: 0596004257
EAN: 2147483647
Year: 2001
Pages: 154
Authors: David A. Karp

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net