To All:
I am inclined to believe that if you are running a rather complex
VBScript, that you should clear the objects in order to get better
performance.
Is this true?
I have found that if I remove software thus:
set objWMIService = GetObject ("Winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\cimv2")
set colSoftware = wbjWMIService.ExecQuery _
("Select * from Win32_Product Where Name = 'Yahoo Instant _
Messenger'")
For Each objSoftware in colsoftware
objSoftware.Uninstall()
Next
Let's say that I have 3 conditional 'IF/Then' statements all using
objSoftware and colSoftware.
Does it give better performance if I clear out the objects by setting
them to nothing so that I can have a better chance of everything
running?
Mark