Using MCScript to Update Your Script Files
Understanding MCScript commands
This section contains details of the script commands that can be used in the
[COMMANDS] section. The command set is the same for both the install and
uninstall scripts. The following tables outline commands for the file system,
Program Manager, private profiles, registry, service control, flow control
statements, and NetWare file handling.
File system commands
W
Command name
COPY
MOVE
DELETE
RENAME
282
Management Edition
NOTE: File paths must be in short DOS format and in quotes.
[..] Indicates optional parameters and switches.
Min #
Usage, examples, and comments
params
2
COPY [/LIST] [/IFNEW]
[/REBOOT][/FORCEONREBOOT]
<SRC> <DST>
/LIST: <SRC> and <DST> are directories; the
file list in [Includes] is copied from <SRC> to
<DST>.
/IFNEW: Only copies if files in <SRC> are
newer than those in <DST>.
/REBOOT: If a file copy is unsuccessful
because the file is in use, attempts to copy
and replace the file on reboot.
/FORCEONREBOOT: Forces a file copy and
replacement on reboot. (Does not attempt an
earlier file copy as with /REBOOT.)
Example:
COPY /REBOOT
"!INSTALLDIR!\AFILE.VXD"
"!SYSDIR!\IOSUBSYS\AFILE
2
MOVE [/LIST] [/IFNEW]
[/REBOOT]
See COPY command for explanation of
switches.
1
DELETE [/LIST] [/REBOOT]
<FILE_PATH>
See COPY command for explanation of
switches.
2
RENAME
<NEW_FILENAME>
<SRC> <DST>
<OLD_FILENAME>
.VXD"