Name

FTP — \windows\system32\ftp.exe

Synopsis

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.)

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 ...

Get Windows XP Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.