Copy

Use the Copy command to create a copy of the specified file.

The command fails if the file Dest already exists.

Syntax

Copy
   Src(<text>)
   Dest(<text>)
   TimeOut(<number>);

Parameters

  • Src: Required. The file that KCM Core copies.
  • Dest: Required. The name of the copy that KCM Core creates.
  • TimeOut: Optional. The maximum amount of time in seconds that KCM Core waits if another process is locking Src. If this parameter is not specified, KCM Core waits indefinitely for the file to be unlocked. If the value of this parameter is 0 and Src is locked, KCM Core immediately reports an error.

The device \\.\nul is handled as a special value for the Src parameter. If this device is used as the source of the copy, an empty file is created.