CopyFile

Demonstrates how to copy an existing file.

Remarks

In this example, CopyFile() is used to copy the irvine.pix file to the current directory.

Code

 local string filename
 ! Delete previous irvine.pix file if there is one.
 Delete "irvine.pix"  noerror 
 filename = GetPCIHOME() + "/demo/irvine.pix"
 Call CopyFile(filename, "irvine.pix")

Output

A new file irvine.pix now exists.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.