Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32_IniFileSpecification in VBScript

Status
Not open for further replies.

Aladdin420

Programmer
Jan 5, 2001
33
US
The Win32_IniFileSpecification WMI class contains the .INI information that the application needs to set in an .INI file. The .INI file information is written out when the corresponding component is selected to be installed, either locally or run from source.

Does anyone have an idea how I can implement this class in VBScript and use it's property 'IniFile'?
Here's a sample script:

Set blah = GetObject("WinMgmts::Win32_IniFileSpecification")

WScript.Echo ""
WScript.Echo "Class name is", Process.IniFile

'Get the qualifiers
WScript.Echo ""
WScript.Echo "Qualifiers:"
WScript.Echo ""
for each Qualifier in Process.Qualifiers_
WScript.Echo " " & Qualifier.Name
next

if Err <> 0 Then
WScript.Echo Err.Description
Err.Clear
End if


It gives me the error that the syntax is invalid. I think I'm missing a huge part of the puzzle here, any help would be wonderful.

Thanks

Aladdin420
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top