Rcp
This connectivity command copies files between a Window NT computer and a
system running rshd, the remote shell daemon. The rcp command can also be used for third-party transfer to copy files between two
computers running rshd when the command is issued from a Windows NT computer. The rshd daemon is available on UNIX computers, but not on Windows NT, so the
Windows NT computer can only participate as the system from which the commands are
issued. The remote computer must also provide the rcp utility in addition by running rshd.
rcp [-a | -b] [-h] [-r] source1 source2 ... sourceN destination
Parameters
-a
Specifies ASCII transfer mode. This mode converts the carriage return/linefeed
characters to carriage returns on outgoing files and linefeed characters to
carriage return/linefeeds for incoming files. This is the default transfer mode.
-b
Specifies binary image transfer mode. No carriage return/linefeed conversion
is performed.
-h
Transfers source files marked with the hidden attribute on the Windows NT
computer. Without this option, specifying a hidden file on the rcp command line has the same effect as if the file did not exist.
-r
Recursively copies the contents of all subdirectories of the source to the
destination. Both the source and destination must be directories, although using -r will work even if the source is not a directory. There just will be no
recursion.
source and destination
Must be of the form [computer[.user]:]filename. If the [computer[.user]:] portion is omitted, the computer is assumed to be the local computer. If
the user portion is omitted, the currently logged on Windows NT username is used. If a
fully qualified computer name is used, which contains the period (.)
separators, then the [.user] must be included. Otherwise, the last part of the computer name will be
interpreted as the username. If multiple source files are specified, the destination must be a directory.
If the filename does not begin with a forward slash (/) for UNIX or a backward
slash (\) for Windows NT systems, it is assumed to be relative to the current
working directory. On Windows NT, this is the directory from which the command
is issued. On the remote system, it is the logon directory for the remote user.
A period (.) means the current directory. Use the escape characters (\ , ", or
') in remote paths to use wildcard characters on the remote computer.
More Information About Rcp
Rcp--Notes
Rcp--Examples