This example prints a listing of all the files found in the etc directory of the pci tree.
If the directory name is invalid or if some other error occurs, the returned directory entry list will be empty.
local mstring listing, int i
listing = GetDirectory( GetPCIHOME()+"/etc" )
for i = 1 to f$len(listing)
print listing[i]
endfor
Sample result:
... ... fonts.pix freesplash.bmp freesplash_preview.bmp freesplash_rel.bmp fundamentals.xml fvlicense.txt ... ...
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.