FORMULA LANGUAGE


@FileDir
Example

Returns the directory portion of a path name, that is, the path name minus the file name.

Note This @function is new with Release 6.

Syntax

@FileDir( pathname)

Parameters

pathname


Return value

directory


Usage

If the parameter is a list, the function operates on each element of the list, and the return value is a list with the same number of elements.

The directory part of a file name is everything to the left of the file name as demonstrated below:
Path nameDirectory portion
europe.datNull
c:\\europe.datc:\
c:\\market\\data\\europe.datc:\market\data\
\\europe.dat\
Use @Right with the path name and @FileDir to extract the file name.

Example
See Also