tumblr tracker

Rename

Library Reference ›› Folder ››
Parent Previous Next

Folder.Rename


Namespace: Folder


Renames a folder. The folder cannot be moved to another path.


retval = Folder.Rename(SourceFolderPath, NewFolderName)


Parameters:

- SourceFolderPath; string constant or variable containing the source folder path to rename

- NewFolderName; new folder name; must contain only the name partition (no back slashes)


Returns:

true if operation succeeded or false otherwise; boolean value.


Example


If (Folder.Rename("C:\TEMP\WEB", "WEB2"))
{
   MessageBox.ShowInfo("Folder Renamed.");
}