Format: LOCK (drive) [ON | OFF] [(passkey)] Template: DRIVE/A,ON/S,OFF/S,PASSKEY Location: C:
LOCK sets or unsets the write-protect status of a device or partition. The LOCK remians on until the system is rebooted or until the LOCK is turned off with the LOCK OFF command.
An optional passkey can be specified. If the passkey is used to lock a hard disk partition, the same passkey must be specified to unlock the partition. Passkeys can be any number or charectersor numbers long.
Example:
This locks that partiton, no alterations can be made to this partiton until it is unlocked with the passkey