Capricorn
09-30-2003, 10:33 AM
Hi,I have problem creating folder using asp.
I've got the code but it didn't create the folder.Can someone help me fix this asap?Thanks
1)
<html>
<title> user added </title>
<head>
<body>
<form method="post" action="createFolder.asp">
Login ID : <%=Request.Form("login")%><br>
Password : <%=Request.Form("password")%><br>
Click <a href="main.htm">here</a> to proceed.
</form>
</body>
</head>
</html>
-------------------------------------------------
2) createFolder.asp
<%
Dim myFSO
SET myFSO = Server.CreateObject("Scripting.FileSystemObject")
If NOT myFSO.FolderExists("C:\Inetpub\wwwroot\ChProj\" & "login") Then
myFSO.CreateFolder("C:\Inetpub\wwwroot\ChProj\" & "login")
Else
Response.Write "THIS FOLDER ALREADY EXISTS"
End If
SET myFSO = NOTHING
%>
I've got the code but it didn't create the folder.Can someone help me fix this asap?Thanks
1)
<html>
<title> user added </title>
<head>
<body>
<form method="post" action="createFolder.asp">
Login ID : <%=Request.Form("login")%><br>
Password : <%=Request.Form("password")%><br>
Click <a href="main.htm">here</a> to proceed.
</form>
</body>
</head>
</html>
-------------------------------------------------
2) createFolder.asp
<%
Dim myFSO
SET myFSO = Server.CreateObject("Scripting.FileSystemObject")
If NOT myFSO.FolderExists("C:\Inetpub\wwwroot\ChProj\" & "login") Then
myFSO.CreateFolder("C:\Inetpub\wwwroot\ChProj\" & "login")
Else
Response.Write "THIS FOLDER ALREADY EXISTS"
End If
SET myFSO = NOTHING
%>