Administrator’s Guide
283
Using MCScript to Update Your Script Files
MKDIR
1
MKDIR
<DIR_PATH>
COPYDIR
2
COPYDIR [/IFNEW] [/REBOOT]
[/SUB]
<SRC> <DST>
/IFNEW, /REBOOT: See COPY command.
/SUB: Copies files in sub-directories.
MOVEDIR
2
MOVEDIR [/IFNEW] [/REBOOT]
[/SUB]
<SRC> <DST>
/IFNEW, /REBOOT: See COPY command.
/SUB: Copies files in sub-directories.
REMDIR
1
REMDIR [/IFNEW] [/REBOOT]
[/SUB]
<DIR_PATH>
/IFNEW, /REBOOT: See COPY command.
/SUB: Copies files in sub-directories.
FILEEXISTS
1
FILEEXISTS
<FILE_PATH>
Sets the result for this command to
TRUE/FALSE. Use command name in IF
statement to test result.
Example:
FILEEXISTS "!INSTALLDIR!\*.*"
IF FILEEXISTS = FALSE
REMDIR "!INSTALLDIR!"
FILEWRITEACCESS
1
FILEWRITEACCESS /LIST
<FILE_DIR_PATH> [<TIMEOUT>]
Tests for write access on the indicated file or
file list. Sets the function result to
TRUE/FALSE according to whether write
access is obtained.
/LIST: <FILE_DIR_PATH> is a directory and
the files checked are the ones in the
[INCLUDES] section.
<TIMEOUT>: Time in seconds to wait for
write access on each file tested. Default is
60.
FILEHASREADACCESS 1
FILEHASREADACCESS
<FILE_PATH>
Tests for read access to the indicated file.
Sets the function result to TRUE/FALSE.
Command name
Min #
params
Usage, examples, and comments