(vl-filename-base filename)
The vl-filename-base function extracts the plain file name (without path and extension) from a file name.
filename specifies the name of a file (as text string).
Note: The function does not check whether the specified file exists.
The function returns a text string with the plain name without path and without extension.
Examples
: (vl-filename-base "d:\\myproject\\sample.lsp")
"sample"
: (vl-filename-base "d:\\myproject")
"myproject"