vl-file-rename

(vl-file-rename old_name new_name)

The vl-file-rename function renames a file or a folder.

Arguments

old_name specifies the name of the file or folder to rename (as text string). If not the full path is specified, the function searches the default drawing directory.

new_name specifies the new name to be assigned to the file or folder (as text string). If not the full path is specified, the function searches the default drawing directory.

Return Value

The function returns T if the renaming was successful, otherwise it returns nil.

Examples

: (vl-file-rename "new.lsp" "my.lsp")

T