Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: NetWare 4.1/9000 Utilities Reference > Chapter 2 Workstation Utilities

NCOPY

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Purpose

Use at a workstation to

  • Copy files from one location to another on the network.

  • Copy directories from one location to another on the network.

Syntax

NCOPY [source path] filename [TO] target path [filename] [/
option...][/? | /VER]

Parameter

Use to

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 "NCOPY Options" table.

/?

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

NCOPY Options

Option

Use to

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 doesn't 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.

Using NCOPY

  • 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

Type

Copy an empty subdirectory from the current drive to the subdirectory above your current drive

NCOPY WORK . . /S /E

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

NCOPY S*.TXT TO TEST /A

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

NCOPY *.RPT TO SERVER/ JOESYS:PUBLIC\SHARE /I

Copy .DOC files to ACCT directory and verify that the original and the new files are identical

NCOPY *.DOC TO ACCT /V

Copy a file named MARCH.RPT to drive G:

NCOPY MARCH.RPT G:

Copy all files and subdirectories in the current directory to a subdirectory

NCOPY *.* .. \TEMP /S

Copy all .RPT files to PUBLIC\RPTS under Volume object ACCT\SYS.ACCTG. ACME.US from the root

NCOPY *.RPT .ACCT\SYS.ACCTG .ACME.US:PUBLIC\RPTS

Additional Information

Topic

See

Archive bit

"Attributes" in Concepts

Name space

"Name space" in Concepts

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.