SetCWD

Demonstrates how to set and retrieve the current working directory.

Remarks

This example illustrates how to set the current working directory to $PCIHOME/demo. Then, the full path of the current working directory is retrieved and printed out.

Code

 local string dir
 local string savedir

 savedir = GetCWD()
 call SetCWD( GetPCIHOME() + "/demo" )

 dir = GetCWD()

 print dir
 call SetCWD( savedir )

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