Полезная информация

Microsoft® JScript™
CreateFolder Method
 Language Reference 
 Version 3 

See Also                  Applies To

Creates a folder.

The CreateFolder method has these parts:

Part Description
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 fs = new ActiveXObject("Scripting.FileSystemObject");
var a = fs.CreateFolder("c:\\new folder");

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.