Renames an existing file. You cannot use this function to rename multiple files. Use dos_move instead.
(dos_rename old-filename new-filename)
old-filename
The old filename.
new-filename
The new filename. new-filename must not be the same name as an existing file.
T if successful.
nil on error.
Command: (dos_rename "drawing1.dwg" "drawing1.bak") T Command: (dos_rename "C:\\Program Files\\Autocad 2006\\drawing1.dwg" "C:\\Program Files\\Autocad 2006\\drawing1.bak") T
There was an error while loading. Please reload this page.
Home Introduction CAD Function Configuration Functions Directory Functions Drive functions File Functions Math Functions Path Functions Printer Functions Process Functions String Functions System Functions User Interface Functions DOSLib Functions History