vl-filename-directory
 
 
 

Returns the directory path of a file, after stripping out the name and extension

(vl-filename-directory  filename)

Arguments

filename

A string containing a complete file name, including the path. The vl-filename-directory function does not check to see if the specified file exists. Slashes (/) and backslashes (\) are accepted as directory delimiters.

Return Values

A string containing the directory portion of filename, in uppercase.

Examples

_$ (vl-filename-directory
"c:\\acadwin\\acad.exe")
"C:\\ACADWIN"
_$ (vl-filename-directory
"acad.exe")
""