[This is preliminary documentation and subject to change]
Creates a folder.
object.CreateFolder(foldername)
object
Required. Always the name of a FileSystemObject.
foldername
Required. String expression that identifies the folder to create.
An error occurs if the specified folder already exists.
The following code illustrates how to use the CreateFolder method to create a folder.
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateFolder("c:\\new folder");
CopyFolder Method | DeleteFolder Method | MoveFolder MethodApplies To: FileSystemObject Object