You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
322 B
15 lines
322 B
|
|
Dim s
|
|
Dim sink
|
|
|
|
Sub MYSINK_OnCompleted(iHResult, objErrorObject, objAsyncContext)
|
|
WScript.Echo "Done"
|
|
End Sub
|
|
|
|
Set locator = CreateObject("WbemScripting.SWbemLocator")
|
|
Set sink = WScript.CreateObject("WbemScripting.SWbemSink", "MYSINK_")
|
|
|
|
locator.OpenAsync sink, "umi://./winnt"
|
|
|
|
|
|
WScript.Echo "Hanging"
|