DirectoryRename Procedure |
Version 6 |
Renames a directory.
[ bRet = ] DirectoryRename ( sDirOld, sDirNew )
The DirectoryRename procedure syntax has the following parts:
|
Name |
Type |
Description |
|
bRet |
Bool |
True if successful, False otherwise |
|
sDirOld |
Val BString |
Name of existing directory |
|
sDirNew |
Val BString |
New directory name |
If given path does not exist, then it will return false.
The following example renames the directory name "...\\A" to "...\\B":
print DirectoryRename("C:\\LogFiles\\TestExec\\A","C:\\LogFiles\\TestExec\\B")