DirectoryRename()

Renames given directory

DirectoryRename( oldPath=string, newPath=string, createPath=boolean );

Returns: String

Argument Description
oldPath
string, required

Absolute path of the directory to be renamed

newPath
string, required

new name for the directory

createPath
boolean, optional

if set to false, expects all parent directories to exist, true (default) will generate necessary directories

Examples

reNamedirectory = "directoryPath";
directoryRename(reNamedirectory,"newname");

See also