ASP CreateFolder() Method
The ASP CreateFolder Method is used to create a new directory or folder in the Server. It is a predefined method of the FileSystem Object. It accepts the name of the folder as a parameter.
Syntax:
FileSystemObject.CreateFolder( name )
Parameter Values: This method accepts a single parameter as mentioned above and described below:
- name: It specifies the name of the folder that has to be newly created. It is a required parameter.
Example Code: This example creates a new folder named “hello” by using the CreateFolder() method.
<%dim fs,fset fs = Server.CreateObject("Scripting.FileSystemObject")set f = fs.CreateFolder("d:\hello")set f = nothingset fs = nothing%> |


