DirectoryRename Procedure

Version 6

 

Renames a directory.

Syntax

[ 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

Comments

If given path does not exist, then it will return false.

Example

The following example renames the directory name "...\\A" to "...\\B":
 

print DirectoryRename("C:\\LogFiles\\TestExec\\A","C:\\LogFiles\\TestExec\\B")

See Also

DirectoryCreate, DirectoryDelete