Aladdin420
Programmer
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
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