Using MCScript to Update Your Script Files
290
Management Edition
EQUALSTRING
2
EQUALSTRING
<STR1> <STR2>
Case-sensitive comparison of the strings.
Sets the function result to TRUE/FALSE.
Example:
EQUALSTRING !CUR_GINA!
"AFILE.DLL"
IF EQUALSTRING
REGSETVAL LOCAL !NEWGINA!
GinaDLL SZ !OLDGINAVAR!
CREATEPROCESS
2
CREATEPROCESS
<COMMAND>
<WORK_DIR> [‘WAIT’ ] [‘HIDE’]
Creates a new process using the given
command line and working directory.
WAIT: Waits for process to terminate
before resuming script.
HIDE: Runs hidden.
Example:
CREATEPROCESS
"!INSTALLDIR!\AFILE.EXE"
"!INSTALLDIR!"
CREATEPROCESS_EX
2
CREATEPROCESS_EX
<EXECUTABLE>
<WORKING_DIRECTORY> [<PARAM_1>
<PARAM_2> ... <PARAM_N>]
[‘WAIT_ON_PROCESS’]
[‘HIDE_PROCESS’]
Starts the program specified in
<EXECUTABLE>. Sets the program's start
directory to <WORKING_DIRECTORY>.
<PARAM_N> passes a variable length list
of parameters to program being started.
[WAIT_ON_PROCESS] causes the
Update Agent to pause until newly started
process has terminated.
[HIDE_PROCESS] causes the application
to start with a hidden window (if the
application supports this).
SYSTEM
1
SYSTEM
<COMMAND_LINE>
Executes a command using the OS shell.
Command name
Min #
params
Usage, examples, and comments