Format: PROTECT [FILE] (file | pattern) [FLAGS [+ | -] [(flags)] [ADD | SUB] [ALL] [QUIET] Template: FILE/A,FLAGS,ADD/S,SUB/S,ALL/S,QUIET/S Location: C:
ALL files and directories have a series of protection bits stored wih them that control their properties. These bits can be altered to indicate the type of file and the operations permitted. PROTECT is used to set or clear the protection bits. For directories only the d bit is important.
The protection bit are represented by letters:
s The file is a script. p The file is a oure command and can be made resident. a The file has been archived. r The file can be read. w The file can be written to. e The file is an executeable. d The file or directory can be deleted.
Use the LIST command to see the protection bits associated with a file. The protection bit is shown with set (on) bits by their letter and clear (off) bits shown by hypens.
Example: