FileSystemObject.CreateFolder()
JScript3.0+syntax
filesystemobject.CreateFolder(name)
Description
The CreateFolder() method is used to create a new folder. This method takes the name parameter, which is a string specifying folder name to create.
Example
Listing 9.73 shows how to use the CreateFolder() method.
Listing 9.73 Example of CreateFolder()
<html> <body> <script language="JScript"> <!-- Hide // Function creates a new folder called "newtmp" function create() { var myObject, newfolder; // Create an instance of the FileSystemObject myObject = new ActiveXObject("Scripting.FileSystemObject"); // Creates the folder newtmp newfolder = myObject.CreateFolder ("c:\\newtmp\\"); } // End Hide --> </script> Create Folder: "c:\newtmp" <form ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.