Returns the directory path of a file, after stripping out the name and extension
(vl-filename-directory filename)
Arguments
vl-filename-directory function does not check to see if the specified file exists. Slashes (/) and backslashes (\) are accepted as directory delimiters.
A string containing a complete file name, including the path. TheReturn 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")
""