discusmania
IS-IT--Management
Hi,
I try to send message through a network , like thing that you can do using net send command. I use this code:
computer="10.228.202.146"
msgtext="Just a test, please close the screen"
NamUsr="MVT"
Set server_shell = Server.CreateObject("wscript.shell")
server_shell.Run "%comspec% /c net send " & NamUsr & " [FROM:" & Computer & "] " & msgtext
but I get this error:
Microsoft VBScript runtime error '800a0046'
Permission denied
mvt_alert.asp, line 42
line42: server_shell.Run "%comspec% /c net send " & NamUsr & " [FROM:" & Computer & "] " & msgtext
I'm not the admin to the server. Is there anything that i should ask the admin to change?
can this code run on windows XP
thanks and regards
Ron
I try to send message through a network , like thing that you can do using net send command. I use this code:
computer="10.228.202.146"
msgtext="Just a test, please close the screen"
NamUsr="MVT"
Set server_shell = Server.CreateObject("wscript.shell")
server_shell.Run "%comspec% /c net send " & NamUsr & " [FROM:" & Computer & "] " & msgtext
but I get this error:
Microsoft VBScript runtime error '800a0046'
Permission denied
mvt_alert.asp, line 42
line42: server_shell.Run "%comspec% /c net send " & NamUsr & " [FROM:" & Computer & "] " & msgtext
I'm not the admin to the server. Is there anything that i should ask the admin to change?
can this code run on windows XP
thanks and regards
Ron