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.
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.