Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net send (or something like that) using asp

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
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 have never seen it work. the NetSend is turned off in XP by default(after some security updates). So if you do get it to work, those on XP wouldn't see it. If you were on Win2000, that would be a different story.

Sorry for the bad news :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top