August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folderscollection.Add(foldername)
The Add() method of the Folders collection is used to add folders to the collection. This can be used to create new folders on the file system.
Listing 9.115 creates a test folder inside the \temp folder on the file system. This script can be executed by using the Windows Scripting Host (wscript.exe or cscript.exe). Be sure you are on a drive that contains a folder named temp, and make sure there is no folder named test already present. Not doing so will result in an error.
// Create an instance of the FileSystemObject var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); // ... |
Read now
Unlock full access