Folders.Add() : Folders « MS JScript « JavaScript Tutorial






Syntax

folderscollection.Add(foldername)

The Add() method adds folders to the collection. This can be used to create new folders on the file system.

<html>
    <body>
    <script language="JScript">
    <!--
    var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject");
    var myFolder = myFileSysObj.GetFolder("\\temp");
    var myFolderCollection = myFolder.SubFolders;
    myFolderCollection.Add("test");
    // End hide-->
    </script>
    </html>








32.13.Folders
32.13.1.Folders
32.13.2.Folders.Add()
32.13.3.Folders.Count
32.13.4.Folders.Item