Has anybody worked with WMI / VBScript in Windows?

4 views
Skip to first unread message

Ganesan Sudalai

unread,
Dec 5, 2006, 9:12:14 AM12/5/06
to storag...@googlegroups.com

Hi Ladies / Gentleman,
 
Has anybody worked with WMI / VBScript in Windows ?
I have a small problem with one of the script and would be thankful to ask for the help
 

--
Cheers

Ganesh

Whatever the mind can conceive and believe, the mind can achieve.
~ Dr. Napoleon Hill

http://poigaiblog.blogspot.com/

Avinash Kumar

unread,
Dec 5, 2006, 9:15:03 AM12/5/06
to storag...@googlegroups.com
Hi Ganesan
 
Plese explain the problem, we should be able to give some inputs ;)
 
btw, do we have any ladies in the group ?
 
Kind regards...Avi
 

Ganesan Sudalai

unread,
Dec 5, 2006, 9:24:02 AM12/5/06
to storag...@googlegroups.com
The Problem goes like this
 
If i execute one VBscript separately, it runs smooth.
 
But when i call this as a sub funtion from the loop in the same script, He ends up failing
saying found Null value
 
This happens especially when i try to set some variable getting the value from some object
 
For Ex:
 
 
 strDefaultIPGateway = Join(objItem.DefaultIPGateway, ",")
        WScript.Echo "DefaultIPGateway: " & strDefaultIPGateway
 
It does not work if i try to call from some other array
 
I assume we are missing to enable some function support to understand this Strings...
 
Cheers
Ganesh

Ganesan

unread,
Dec 25, 2006, 4:53:25 PM12/25/06
to storageNunix
Hi Pals,
This problem is solved as there was some Syntax Errors and will share
with someone if they are keen only

Reply all
Reply to author
Forward
0 new messages