Login | |
|
 |
Re: Working with variables and CMD - 11/23/2004 1:03:27 AM
|
|
 |
|
| |
mbouchard
Posts: 1856
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
you'll have to work out the syntax to the net send command, but this should work. Set WshShell = WScript.CreateObject("WScript.Shell") strusername = inputBox("Who do you want to send to?") strmessage = inputBox("What is the message?") WshShell.Run "CMD /K net send " & strusername & " " & strmessage ,1,true
|
|
| |
|
|
|
 |
Re: Working with variables and CMD - 11/23/2004 11:47:14 PM
|
|
 |
|
| |
mbouchard
Posts: 1856
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
1 - (intWindowStyle below) Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time. TRUE - See bWaitOnReturn below quote: intWindowStyle Optional. Integer value indicating the appearance of the program's window. Note that not all programs make use of this information. bWaitOnReturn Optional. Boolean value indicating whether the script should wait for the program to finish executing before continuing to the next statement in your script. If set to true, script execution halts until the program finishes, and Run returns any error code returned by the program. If set to false (the default), the Run method returns immediately after starting the program, automatically returning 0 (not to be interpreted as an error code).
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|