DirRename

Renames a directory.

Syntax:

DirRename ([d:]oldpath, [d:]newpath)

Parameters:

(s) oldpath existing directory name, with optional drive.

(s) newpath new name for directory.

Returns:

(i) @TRUE if the directory was successfully renamed; @FALSE if it wasn't.

 
Example:


;Do a dirmake so the example runs smoothly.
DirMake("c:\wwwtemp")
;Once 'old' directory is created execute the example
;This is the real example.
old="c:\wwwtemp"
new="c:\wwwwork"
DirRename("c:\wwwtemp", "c:\wwwwork")
Message("DirRenname","%old% Directory renamed to %new%")
See Also:

DirExist, DirMake, DirRemove