http://www.aros.orgAROS-ExecAROS-Exec ArchivesPower2People
kitty mascottop logo menu


Index Prev Next




Lock <drive> [ON|OFF] [<passkey>]




Lock will cause the specified device or partition to be made write-
protected or write-enabled. This write protection is a soft write
protection which is handled by the volume filesystem. Hence the
protection will be reset (to writable) on the next system reboot.

It is possible to specify an optional passkey which can be used to
password protect the locking. The same passkey that is used to lock
the volume must be used to unlock the volume. The passkey may be
any number of characters in length.

The volume given MUST be the device or root volume name, not an


1.SYS:> Lock Work:

    This will lock the volume called Work: without a passkey.

1.SYS:> Lock Work:
1.SYS:> MakeDir Work:SomeDir
Can't create directory Work:Test
MakeDir: Disk is write-protected

    The volume Work: is locked, so it is impossible to create a

1.SYS:> Lock Work: OFF

    This will unlock the volume work.

1.SYS:> Lock Work: MyPassword

    This will lock Work: with the passkey "MyPassword"

Copyright © 1995-2018, Het AROS Development Team. Alle rechten voorbehouden.
Amiga® is een merknaam van Amiga Inc. Alle andere merknamen behoren tot hun respectievelijke eigenaren.