Creates a folder.
object.CreateFolder(foldername)
An error occurs if the specified folder already exists.
The following code illustrates how to use the CreateFolder method to create a folder.
[JScript] var fso = new ActiveXObject("Scripting.FileSystemObject"); var a = fso.CreateFolder(
"c:\\new folder")
; [VBScript] Function CreateFolderDemo Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f =fso.CreateFolder(
"c:\New Folder")
CreateFolderDemo = f.Path End Function
CopyFolder Method | DeleteFolder Method | MoveFolder Method
Applies To: FileSystemObject Object