Login | |
|
 |
RE: hide dos box - 12/10/2007 2:33:58 AM
|
|
 |
|
| |
ebgreen
Posts: 5250
Score: 31
Joined: 7/12/2005
Status: offline
|
Have a look at the .Run method of the WshShell object. You can use it to specifiy that the command be run minimized. Unfortunately it does not give access to STDOUT so you will need to have the command pipe it's output to a temp file then read the file. You could also consider using WMI to ping and then there wouldn't be a window to deal with at all.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: hide dos box - 12/10/2007 5:07:33 AM
|
|
 |
|
| |
mcds99
Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
|
Take a look at WMI Ping as well it uses the local WMI interface to do the pings it's faster and has return codes that can be used in troubleshooting :-)
_____________________________
Sam Keep it Simple Make it Fun KiSMiF
|
|
| |
|
|
|
|
|