Rename a Folder on the Local Computer

Demonstration script that uses the FileSystemObject to rename a folder. Script must be run on the local computer.

VBScript Code


Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.MoveFolder "C:\FSO\Samples" , "C:\FSO\Scripts"