Does anyone know how to enumerate the command line properties of a hotfix(kb99999 /?) and capture that info for use in a script? I tried using the following code but since it outputs to a windows it doesn't pick anything up.
Any ideas?
set fs = CreateObject("Scripting.FileSystemObject")
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.EXEC("D:\xp\update\KB824146.exe /?")
Do While oExec.Status = 0
WScript.Sleep 100
Loop
Do While oExec.StdOut.AtEndOfStream <> True
retstring = oExec.StdOut.ReadLine
MSGBOX retstring
Loop
Any ideas?
set fs = CreateObject("Scripting.FileSystemObject")
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.EXEC("D:\xp\update\KB824146.exe /?")
Do While oExec.Status = 0
WScript.Sleep 100
Loop
Do While oExec.StdOut.AtEndOfStream <> True
retstring = oExec.StdOut.ReadLine
MSGBOX retstring
Loop