Name

Remote Copy — \windows\system32\rcp.exe

Synopsis

Remote Copy allows you to copy one or more files from one remote computer to another remote computer without first transferring the files to your own computer. Remote Copy takes the following parameters:

rcp [-b] [-h] [-r] source 
               destination
            

Option

Description

source, destination

The full network path of the source file and destination, respectively. Note that wildcards (see Chapter 6) must be accompanied with an escape character: apple.* becomes apple.\*

-b

Transfers the files with binary mode (see FTP)

-h

Transfers hidden files.

-r

Recursive; include subfolders when copying folders.

Examples

rcp -b \\cooder\c\docs\rings.txt \\spud\
rcp -b 192.168.0.1.cooder:c\docs\rings.txt 192.168.0.1.
spud:c\stuff

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.