vl-filename-base
 
 
 

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

(vl-filename-base  filename)

Arguments

filename

A string containing a file name. The vl-filename-base function does not check to see if the file exists.

Return Values

A string containing filename in uppercase, with any directory and extension stripped from the name.

Examples

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