home *** CD-ROM | disk | FTP | other *** search
- Docs for Priv.com - file and directory locking utility
- R. Trevithick, 12/02/87
-
-
- This is a simple utility which can change the first character of file
- and directory names to something which can't be entered from the DOS
- command line (a 0x7f character).
-
- It accepts only unambiguous file and directory names, and the primary
- name (the part before the '.') must be 7 or less characters long. Full
- pathnames are supported.
-
- The program tests the filename to see if the first character is already
- a 0x7f. If so, it removes it. Hence, it functions as a toggle. Each
- time it is called with a valid name, it either locks or unlocks the file
- or directory.
-
- The syntax is
- PRIV ufn [/q]
-
- where ufn is the unambiguous file or directory name. Note that the term
- 'unambiguous' means that wildcard masks such as * and ? must not be
- included.
-
- The /q option will suppress all messages so that Priv can be run from a
- batch file or some such without advertising it's presence.
-
- Upon success, PRIV will print either 'locked' or 'unlocked' on the
- console. Otherwise an appropriate error message will be printed.
-
- There are quite a few public domain programs around that create, change
- to, or delete directories using this locking strategy. I wrote this so
- that currently existing directories could be locked and unlocked, and so
- that the same strategy could be used on files as well as just
- directories.
-
-