Create a Folder Using the Shell Object

Uses the Shell object to create a new folder named C:\Archive.

VBScript Code


ParentFolder = "C:\" 

set objShell = CreateObject("Shell.Application")
set objFolder = objShell.NameSpace(ParentFolder) 
objFolder.NewFolder "Archive"