Using MCScript to Update Your Script Files
286
Management Edition
Private profile commands
NOTE:
[..] Indicates optional parameters and switches.
Command name
Min #
params
Usage, examples, and comments
WRITEPRIVATE
4
WRITEPRIVATE [/NEW]
<FILE_NAME>
<SECTION> <KEY> <VALUE>
Writes a profile string using direct file system call
(see ADDPRIVATE).
/NEW: Writes to a new file keeping backup of old
one.
<FILE_NAME> == "": Use WIN.INI.
Example:
WRITEPRIVATE
"!CURDIR!\THDEFS.CFG" Defaults
FindVir
"!INSTALLDIR!\WFINDV32.EXE"
CLEARPRIVATE
3
CLEARPRIVATE [/ALL]
<FILE_NAME>
<SECTION> <KEY> [<KEY_VALUE>]
Clears a profile entry.
/ALL: All instances of a key in the section are
removed. With this switch, <KEY_VALUE> can be
used to delete only keys with the given value.
<FILE_NAME> == "": Use WIN.INI.
Example:
CLEARPRIVATE /ALL
"!WINDIR!\SYSTEM.INI" 386Enh
device "!INSTALLDIR!\AFILE.386"
ADDPRIVATE
4
ADDPRIVATE
<FILE_NAME> <SECTION>
<KEY> <VALUE>
Writes a profile string using Windows API (see
WRITEPRIVATE).
<FILE_NAME> == "": Use WIN.INI.
REMOVEPRIVATE 4
REMOVEPRIVATE
<FILE_NAME> <SECTION>
<KEY> <VALUE_STR>
Removes <VALUE_STR> from a list of
space-separated strings in the existing key value.
<FILE_NAME> == "": Use WIN.INI.