M
MacMan0295
Trying to run the following in an ASP page and cannot get it to work. I get
a return code 255. Trying to assign an ACL to a folder. I am running this
under my domain username so I know I have sufficient rights. I take the
strCmd and write it to the page to verify the command is correct and it is,
because I copy and paste it into a command window and it works.
Any ideas???
***** Code *****
Dim wshell, intReturn
set wshell = server.createobject("wscript.shell")
strCmd = "cacls.exe " & folderPath & " /e /c /g " & groupName & ":C"
response.write "<br>This is the command string: " & strCmd
intReturn = wshell.run("%COMSPEC% /c Echo Y| " & strCmd,0,True)
***** Code *****
a return code 255. Trying to assign an ACL to a folder. I am running this
under my domain username so I know I have sufficient rights. I take the
strCmd and write it to the page to verify the command is correct and it is,
because I copy and paste it into a command window and it works.
Any ideas???
***** Code *****
Dim wshell, intReturn
set wshell = server.createobject("wscript.shell")
strCmd = "cacls.exe " & folderPath & " /e /c /g " & groupName & ":C"
response.write "<br>This is the command string: " & strCmd
intReturn = wshell.run("%COMSPEC% /c Echo Y| " & strCmd,0,True)
***** Code *****