vl-filename-base

(vl-filename-base filename)

The vl-filename-base function extracts the plain file name (without path and extension) from a file name.

Arguments

filename specifies the name of a file (as text string).

Note: The function does not check whether the specified file exists.

Return Value

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"