Contents | < Browse | Browse >
PROTECT [filename] [h|s|p|a|r|w|e|d]

* Allows you to alter/see the protection bits associated with a file
  or a directory (default: current directory).

* PROTECT filename
  Shows the protection bits for the file specified.

eg.   protect editor

* PROTECT filename [h|s|p|a|r|w|e|d]
  Toggles the specified protection bits on the file.

eg.   protect editor pd
  If "editor" was already pure, then the pure bit would be reset.
  If "editor" was not pure, then the pure bit would be set.
  If "editor" was deletable, then the delete bit would be reset.
  If "editor" was not deletable, then the delete bit would be set.

eg.   protect game hprwd
eg.   protect monitor hsparwed

Bits:   "h"     hidden  V1.3
        "s"     script  V1.3
        "p"     pure    V1.3
        "a"     archive V1.3
        "r"     readable
        "w"     writable
        "e"     executable
        "d"     deletable       <- V1.2 only understands this bit