Question Locked

Scripting.FileSystemObject

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a problem to run the systemobject from .asp

When i try to execute this code:
<%

Set FileSys = Server.CreateObject("Scripting.FileSystemObject")

Set WShShell = Server.CreateObject("WScript.Shell")

SourcePath = request.form("sourcepat")
TargetPath = request.form("target")
FolderName = request.form("folder")
FolderAdmin = request.form("fadmin")
FolderUser = request.form("fanon")

RetCode = WShShell.Run("f:\home\myweb.com\www\WSConfig.exe " & SourcePath & " " & TargetPath & " " & FolderName & " " & FolderAdmin & " " & FolderUser, 1, True)

if RetCode = 0 Then
'Success
else
Response.Redirect "ok.asp"
end if

%>

I got this error:
Microsoft VBScript runtime error '800a0046'

Permission denied

/login/registrering/test1.asp, line 56

I have tried to set full rights on the anonymouse user and the IWam.

Is it someone that can help me.

Best regards

AMNorway

1 reply

This discussion is closed to new replies.