How to create a folder in the web server
S T E P - 1
- We need to use the FileSystemObject object:
<%
Dim fSys, objNewFolder
Set fSys = CreateObject("Scripting.FileSystemObject")
%>
S T E P - 2
- Now, we can use the server.mappath(".") to get the web server's current folder
- We can create a new folder in the current folder by using CreateFolder method.
<%
Set objNewFolder = fSys.CreateFolder(server.mappath(".") & "\myFolder")
Response.write(objNewFolder.path)
Set objNewFolder = Nothing
Set objFileSys = Nothing
%>
No comments:
Post a Comment