Error capturing advice

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
superfly12
Posts: 133
Joined: Fri May 08, 2009 6:05 am

Error capturing advice

Post by superfly12 » Wed Jun 20, 2012 10:15 pm

Hi,

I have script that's been used to launch patches but it doesn't seem to capture errors efficiently. We are using shell run method of the shell object(oShell = Wscript.CreateObject("wscript.shell"); oRun = oShell.Run( pathtopatch) ) and it outputs 0 even if there is any fatal error during patch installation, like .net patches. When i try verbose log of such patch, its around 15-20MB. I am not sure whether its good idea to parse such a big text file in vbscript and look for errors as there would be multiple such patches. alternately it creates hotfix.log.html which is around 1-2MB. How can I read errors from a html files? What would be a good way to handle such issues? Or are there any better alternate ways?

Thanks.

User avatar
rs6000101
Posts: 6
Joined: Tue Jun 19, 2012 7:54 am

Error capturing advice

Post by rs6000101 » Fri Jun 22, 2012 1:15 am

Take a look at the "vbs capturing application installation error messages" script at the following link this should do what you need best of luck.
http://social.technet.microsoft.com/For ... 1509105e80

Locked