Extended Commands

CP Console Command

Copy File

Format

CP input-file output-file 

Where:

input-file

Pathname of the file to be copied.

output-file

Output pathname of the file to be created/changed.

Description

The CP command can be used to copy a file from one location to another. The copy is done physically (block by block) for the purposes of speed. The output file will be identical to the input file except in terms of OS properties such as creator and date/time stamps.

Any valid file names may be provided as the input/output files. All prefix and pathname translation rules (such as * asterisk for system library) will apply.

(The CP command was added in PxPlus v7.65.)