RenameDirectory

Renames a directory.


Syntax

FileSystem.RenameDirectory(Directory, NewName)


Parameters


Directory

String, input



Path and name of directory to be renamed.


NewName

String, input



New name for the directory.


Example

Sub Main()

FileSystem.RenameDirectory "C:\Users\Public\OldDirectory", "NewDirectory"

End Sub