Hello,
I am trying to make my ASP page to create a folder on a directory path. I am getting an error:
Microsoft VBScript runtime error '800a0046'
Permission denied
I now its somthing to do with IIS 7 IUSR permission for the folder.
The code is below.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
dim strUserName
foldername= "myfolder"
dim fObject,f
set fObject=Server.CreateObject("Scripting.FileSystemObject")
response.write(server.mappath("\")&"\test\"&foldername)
set f=fObject.CreateFolder(server.mappath("\")&"\Letters\"&foldername)
set f=nothing
set fObject=nothing
response.write("folder created successfully
")
%>