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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSGBOX function to pop up on multiple remote computers

Status
Not open for further replies.

MZiggy

IS-IT--Management
Feb 18, 2002
13
0
0
IE
Can someone tell me if it's possible to use the message box fuction in a peice of code but have the message box appear on multiple remote computers on the LAN other than the one the vb script/exe is ruinning on?
 
You could do a multiple net send - I have a piece of vbscript code that I got from this site ages ago that might help:

Dim Message, wsh
Set wsh = Wscript.CreateObject("Wscript.Shell")
Set ArgObj = WScript.Arguments
message = InputBox("Please enter your message","Net Send Utility")
If message = "" then Wscript.Quit
For i = 0 to ArgObj.count -1
Wsh.run "Net Send " & ArgObj(i) & " " & message,True
Next

File saved as netsend.vbs and then ran

Netsend.vbs steve john fred bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top