Syntax @Filenamepart(, ) @Filenamepart(ENCODED, , ) Arguments ENCODED If the first argument is ENCODED then will be treated as an encoded string. Range: N/A The part of the filename you want extracted. Range: DIRNAME | FILENAME | ROOTNAME | EXTENSION The full pathname of a file. Range: Any String Description This function extracts a part of a full file name it is passed in and returns the result as a string. When parsing the full file name, both backslashes and forward slashes are handled as path separators, regardless of operating system. For example, the full path name C:\WINNT\Profiles\user\Desktop\roads.shp has a DIRNAME of C:\WINNT\Profiles\user\Desktop\ and a FILENAME of "roads.shp", and a ROOTNAME of "roads", and an EXTENSION of "shp".