Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     copy [/s] src_spec [dst_spec] [/s]

The COPY command operates in a manner very similar to the DOS "COPY" and
"XCOPY" commands.  Files may be copied from the local machine to the local
or remote machine.  Similarly files may be copied from the remote machine to
the local or remote machine.  If /s is specified then subdirectories are
copied as well.  Directories will be created as required for the destination
files.  If dst_spec is not specified then the default destination will be
the current directory of the other locale (i.e., remote, if the file's
locale is local or, local, if the file's locale is remote).

Example:

     copy *.for @rd:\tmp

All files of type "FOR" in the current directory are copied to the "TMP"
directory of the "D" disk on the remote machine.  If the current locale is
the local machine then files are copied from the local machine to the remote
machine.  If the current locale is the remote machine then files are copied
from the remote machine to the remote machine.

+--------------------------------------------------------------------------+
|   Note:  If your default drive is set to one of the disks on the local   |
| machine then the locale is local (e.g., @LC:, @LD:, @LE:, etc.).  If     |
| your default drive is set to one of the disks on the remote machine then |
| the locale is remote (e.g., @RC:, @RD:, @RE:, etc.).  If your DOS or     |
| OS/2 prompt contains the current drive and directory then it will be     |
| easy to identify which locale is current.                                |
+--------------------------------------------------------------------------+
Example:

     copy @rd:\tmp\*.for

All files of type "FOR" in the "TMP" directory of the "D" disk on the remote
machine are copied to the current directory of the local machine.  Whenever
a destination is not specified, the current directory of the opposite locale
is used.  If the source locale is the remote machine then files are copied
from the remote to the local machine.  If the source locale is the current
machine then files are copied from the local to the remote machine.

Example:

     copy @rc:\watcom\*.* /s

All files and subdirectories of the "WATCOM" directory of the "C" disk on
the remote machine are copied to the current directory of the local machine.
 Whenever a destination is not specified, the current directory of the
opposite locale is used.  If the source locale is the remote machine then
files are copied from the remote to the local machine.  If the source locale
is the current machine then files are copied from the local to the remote
machine.  Subdirectories are created as required.

+--------------------------------------------------------------------------+
|   Note:  The "COPY" command is most effectively used when copying files  |
| from one machine to the other.  Copying of large amounts of files from   |
| one place on the remote machine to another place on the remote machine   |
| could be done more effectively using the remote machine's DOS or OS/2.   |
|  This would eliminate the transfer of data from the remote machine to    |
| the local machine and back to the remote machine.                        |
+--------------------------------------------------------------------------+

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson