Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2008 07:20:30 -0800 (PST)
From:      hepek <prijavapodrska@gmail.com>
To:        freebsd-acpi@freebsd.org
Subject:   VBScript does not work on XP (acpi)?
Message-ID:  <21218437.post@talk.nabble.com>

next in thread | raw e-mail | index | archive | help

This VBScript I run on xp but I get error "(null): 0x8004100C" on "For each"
- line .
Do I need enable some thing or what ???

********************************

strServer = "."

Set objWMI = GetObject("winmgmts://" & strServer & "/root\WMI")
Set objInstances = objWMI.InstancesOf("MSAcpi",48)

For Each objInstance in objInstances
   WScript.Echo objInstance.getObjectText_
Next

********************************

Thank you 

-- 
View this message in context: http://www.nabble.com/VBScript-does-not-work-on-XP-%28acpi%29--tp21218437p21218437.html
Sent from the freebsd-acpi mailing list archive at Nabble.com.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21218437.post>