Login | |
|
 |
RE: Need to force a Timeout - 4/30/2008 3:19:53 AM
|
|
 |
|
| |
dm_4ever
Posts: 2220
Score: 32
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
A ping test is a quick way to determine if you should even attempt a WMI connection. Using SWbemLocator.ConnectServer instead of winmgmts to connect via WMI gives you the ability to specify a timeout...though you only have two options... forever or 2mins; however if WMI is corrupted then even this won't help.
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|