Set Profile
Verb:
SP
Description:
This command is used to update ini files. The device filename specifies the name of the ini file to update. The section, key, and value determine what to update in the ini file.
Support:
- XPe Usage
- Continue if Script Command Fails: No
- Arguments:
- Device path and filename
- Section
- Key
- Value
- Examples:
SP "c:\winnt\system.ini" "drivers" "timer" "timer.drv" (Edits System.ini to:
[drivers]
timer=timer.drv)
- CE Usage
- Continue if Script Command Fails: No
- Arguments:
- Device path and filename
- Section
- Key
- Value
- Examples:
SP "\Windows\SetProfile.txt" "SetProfile" "Test" "Worked" (Edits SetProfile.txt to:
[SetProfile]
test=worked
- Linux Usage
- Continue if Script Command Fails: No
- Arguments:
- Device path and filename
- Section
- Key
- Value
- Examples:
SP "/wfs/SetProfile.txt" "SetProfile" "Test" "Worked" (Edits SetProfile.txt to:
[SetProfile]
Test=Worked
General Rules:
- If the file does not exist it will be created.
- Most INI files are organized by Section and Key. A section will be defined by a line that contains bracketed text ([Example]). A Key will be followed by an equal sign and a value (Key=value).
- Keys must be located on a line by themselves.