Things You'll Need:
- ASP enabled web server
- Web page edit software
-
Step 1
Open a blank ASP page in your web page editing software.
-
Step 2
Enter the following code:
<%
'Create the myFSO variable
Dim myFSO
'Initialize myFSO as a file system object
SET myFSO = Server.CreateObject("Scripting.FileSystemObject")
'If the folder does not already exist then create the folder
If NOT myFSO.FolderExists("FOLDERNAME") Then
myFSO.CreateFolder("FOLDERNAME")
'If the folder does exist, inform the user
Else
Response.Write "This folder already exists!"
End If
'deconstruct myFSO
SET myFSO = NOTHING
%> -
Step 3
Replace FOLDERNAME with the path and desired name of your new folder. Or use a variable to define the folder to be created.
-
Step 4
Add any additional code as desired. Using only this code will create the folder but it will have limited uses.
-
Step 5
Name and save file as .asp. Test in a web browser.












