7.16.4 CreateFolder Method

Creates a folder.
Syntax
object.CreateFolder(foldername)
Arguments
- object
- The name of a FileSystemObject object. Required.
- foldername
- Required. String expression that identifies the folder to create.
Remarks
An error occurs if the specified folder already exists.
The following code illustrates how to use the CreateFolder method to create a folder:
var fs = new ActiveXObject("Scripting.FileSystemObject");
var a = fs.CreateFolder("c:\\new folder");
Copyright © 2000 Chili!Soft
|