GetFileBasename

Demonstrates how to extract the base name portion of a file name.

Remarks

This example retrieves the base name of file "irvine.pix".

If there is no base name, an empty string is returned; otherwise, the base name is returned.

Code

 local string base

 base = GetFileBasename( GetPCIHOME() + "/demo/irvine.pix" )
 
 print base

Output

 irvine

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