Link to home
Start Free TrialLog in
Avatar of hmcgeehan
hmcgeehan

asked on

VBSCRIPT - net send?

Hi
Im using Win 2K Pro (not sure if that matters) but I try to do this in a .vbs file and it seems to open a command prompt real quick and then not do a netsend at all.

If I do
cmd
net send pc024 test
I do get a message

But not with my code below.

Set objShell = Wscript.CreateObject("WScript.Shell")
Comp2Reach = pc024
Message2Send = "test"
objShell.Run "net send " & Comp2Reach & " " & Message2Send

Thank!
ASKER CERTIFIED SOLUTION
Avatar of Lee
Lee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial