shiryu_libra
04-13-2007, 11:25 PM
hello masters...
woundering if can i get some help from all...
i'm trying to use this script, on a XP pro SP2 with IIS, when i try to run the script, the error message...
"Permission denied"
<%
on error resume next
Msg = TRIM(Request.Form("Msg"))
NamUsr = TRIM(Request.Form("NamUsr"))
Computer = Request.ServerVariables("REMOTE_ADDR")
if Msg <> "" AND NamUsr <> "" THEN
'Sending the message
Set server_shell = Server.CreateObject("wscript.shell")
server_shell.Run "%comspec% /c net send " & NamUsr & " [FROM:" & Computer & "] " & Msg
ELSE
'Displaying the form %>
<FORM NAME="Vorm" METHOD="Post">
To: <INPUT TYPE="text" NAME="NamUsr" SIZE="20"><BR>
Message: <INPUT TYPE="text" NAME="Msg" SIZE="40"><BR>
<INPUT TYPE="submit" VALUE="Send Message">
</FORM>
<%END IF%>
the problem is the RED line.... any coments??
i'm trying tu uses with my IUSR_Machine
woundering if can i get some help from all...
i'm trying to use this script, on a XP pro SP2 with IIS, when i try to run the script, the error message...
"Permission denied"
<%
on error resume next
Msg = TRIM(Request.Form("Msg"))
NamUsr = TRIM(Request.Form("NamUsr"))
Computer = Request.ServerVariables("REMOTE_ADDR")
if Msg <> "" AND NamUsr <> "" THEN
'Sending the message
Set server_shell = Server.CreateObject("wscript.shell")
server_shell.Run "%comspec% /c net send " & NamUsr & " [FROM:" & Computer & "] " & Msg
ELSE
'Displaying the form %>
<FORM NAME="Vorm" METHOD="Post">
To: <INPUT TYPE="text" NAME="NamUsr" SIZE="20"><BR>
Message: <INPUT TYPE="text" NAME="Msg" SIZE="40"><BR>
<INPUT TYPE="submit" VALUE="Send Message">
</FORM>
<%END IF%>
the problem is the RED line.... any coments??
i'm trying tu uses with my IUSR_Machine