6-6 System Utilities
MX2 Reference Guide Revision A MX2A137REFGD
LOCK.COM
Use this utility to enable or disable write protection on flash or RAM
drives. (This is the software equivalent of the write-protect tab on a
floppy disk.) You can use LOCK.COM to protect against accidental
erasure of all files stored on the flash disk.
Whenever the MX2 is rebooted, write protection on a drive will be
disabled, by default. To lock the drive upon bootup, include a lock
command in the AUTOEXEC.BAT
file on drive C.
Syntax
LOCK [drive:] [/l] [/u] [/y]
Options
drive
Specifies the drive letter of the drive which is to be locked or unlocked.
If you do not specify a drive letter, the current drive is used.
/l (the letter L)
Lock the flash drive to prevent further disk writes.
/u
Unlocks the flash drive, allowing further disk writes.
/y
Suppresses output from being sent to the display.
Note: If both the /l and /u options are given, the last option specified
will take effect.