Tcl API Reference -- ns_cp

### ns_cp

#### Overview

Copy one file to another

#### Syntax

ns_cp -preserve file1 file2

#### Description

ns_cp copies the contents of file1 to file2, just like the Unix "`cp"` command. The default directory is the home directory for the server.

If -preserve is specified, the copied file will retain the creation time, modification time, owner, and mode of the original file, just like the Unix "`cp -p"` command.

Top of Page
Copyright © 1998-99 America Online, Inc.