Valid on UNIX and Windows
The SetInvValue function changes the value of a specific attribute in an Inv file.
Function format:
SetInvValue(Filename as string, GroupName as string, GroupID as string, AttrName as string, AttrID as string, Value as string) as string
Specifies the filename of the Inv file.
Specifies the name of the group in which the attribute is located.
Specifies the ID of the group in which the attribute is located.
Specifies the name of the attribute to be set.
Specifies the ID of the attribute to be set.
Specifies the value to be set to the attribute in the Inv file.
For Inv structured files, the GroupName specifies the complete group name and GroupID the related index number including type; the AttrName is the name of the attribute and AttrID specifies the related index including type and display type.
If the attribute specified is found in the Inv file, its value is changed and SetInvValue returns TRUE; otherwise, returns FALSE.
Example:
SetInvValue("sample.inc","$GeneralInventory$|$Drive$,"000A02","name","00010500","C:")
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|