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

Net Send

Status
Not open for further replies.

Headshot

Technical User
Oct 24, 2002
1
CA
Is there a way to "Net send" to multiple recipients?
 
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

Regards
Steve Friday
 
Oops - sorry forgot to say, I saved the file as netsend.vbs and the ran

Netsend.vbs steve john fred bill

Regards
Steve Friday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top