NCOPY
Copy files/directories from one location to another on the network.
Synopsis
NCOPY [source_path] filename [TO]
target_path [filename] [/option
... ] [/? | /VER]
Description
Use NCOPY at a workstation to:
-
copy files from one location to another on the network
-
copy directories from one location to another on the network
Options
- source_path
-
Specify the path leading to the source file. (You can use a drive letter.)
Include this if the file is not in your current directory.
- filename
-
Specify the file you want to copy.
- target_path
-
Specify the path for the directory you are copying the file to. (You can use
a drive letter.)
- filename
-
Specify a new name for the file (if you want to rename the file.)
- /option
-
Specify one or more options from the following:
- A (Archive Bit Only)
-
Copy only those files that have the archive bit set. The attribute of the
source file is not changed.
- M (Archive Bit Set)
-
Copy files that have the archive bit set. Turns off the archive bit of the
source file. This option allows NCOPY to be used in backup.
- C (Copy)
-
Copy files without preserving extended attributes and name space information.
- F (Force Sparse Files)
-
Force the operating system to copy sparse files.
- I (Inform)
-
Notify you that extended attributes or name space information cannot be
copied because the target volume does not support those features.
- R (Retain Compression)
-
Keep compressed files compressed.
- /R/U (Retain Unsupported Compression)
-
Keep compressed files compressed even when copied to media that do not
support compression.
- S (Subdirectories)
-
Copy subdirectories and files.
- /S /E (Subdirectories Empty)
-
Copy empty subdirectories and files.
- V (Verify)
-
Verify that the original and the new files are identical. For local DOS
drives only.
- /?
-
View online help. (Other parameters are ignored.)
- /VER
-
View the version number of the utility and the files it uses to execute.
(Other parameters are ignored.)
Usage
NCOPY allows you to specify how files are copied, whether
subdirectories are copied, and whether the system verifies copies.
You can use drive letters instead of directory paths to specify source and
target paths.
The default is that only files are copied. Include /S or
/S /E to copy subdirectories.
You can use wildcard characters.
Examples
-
To copy an empty subdirectory from the current drive to the subdirectory
above your current drive, type:
NCOPY WORK . . /S /E
-
To copy files that start with ``S'' and have a .TXT
extension and have the archive bit set to a subdirectory named TEST
below your current directory, type:
NCOPY S
.TXT TO TEST /A
-
To copy .RPT files to SERVER/JOE/SYS:PUBLIC/SHARE on
another volume and be notified if extended attributes or name space
information cannot be copied, type:
NCOPY
.RPT TO SERVER/JOESYS:PUBLIC\SHARE /I
-
To copy .DOC files to ACCT directory and verify that
the original and the new files are identical, type:
NCOPY
.DOC TO ACCT /V
-
To copy a file named MARCH.RPT to drive G:, type:
NCOPY MARCH.RPT G:
-
To copy all files and subdirectories in the current directory to a
subdirectory, type:
NCOPY
.
.. \TEMP /S
-
To copy all .RPT files to PUBLIC\RPTS under volume
object ACCT\SYS.ACCTG. ACME.US from the root, type:
NCOPY
.RPT .ACCT\SYS.ACCTG .ACME.US:PUBLIC\RPTS
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999