This example extracts a list of directory names from the path of a filename.
local int i, mstring path_list
local string file
file = GetPCIHOME() + "/demo/irvine.pix"
print "Basename:", GetFileBasename( file )
print "Extension:", GetFileExtension( file )
path_list = GetPathComponents( file )
for i = 1 to f$len(path_list)
print "Path Component:", path_list[i]
endfor
Basename: irvine
Extension: pix
Path Component:C:
Path Component:CATALYST Professional
Path Component:demo
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.