Folders.Add() : Folders : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folders »

 

Folders.Add()









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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folders