home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / dirutl / dirutils.arc / PRIV.DOC < prev   
Encoding:
Text File  |  1987-12-06  |  1.4 KB  |  37 lines

  1. Docs for Priv.com - file and directory locking utility
  2. R. Trevithick, 12/02/87
  3.  
  4.  
  5. This is a simple utility which can change the first character of file 
  6. and directory names to something which can't be entered from the DOS 
  7. command line (a 0x7f character).
  8.  
  9. It accepts only unambiguous file and directory names, and the primary
  10. name (the part before the '.') must be 7 or less characters long.  Full 
  11. pathnames are supported.
  12.  
  13. The program tests the filename to see if the first character is already 
  14. a 0x7f.  If so, it removes it.  Hence, it functions as a toggle.  Each 
  15. time it is called with a valid name, it either locks or unlocks the file 
  16. or directory.
  17.  
  18. The syntax is 
  19.                 PRIV ufn [/q]
  20.  
  21. where ufn is the unambiguous file or directory name.  Note that the term 
  22. 'unambiguous' means that wildcard masks such as * and ? must not be 
  23. included.
  24.  
  25. The /q option will suppress all messages so that Priv can be run from a
  26. batch file or some such without advertising it's presence.
  27.  
  28. Upon success, PRIV will print either 'locked' or 'unlocked' on the
  29. console.  Otherwise an appropriate error message will be printed.
  30.  
  31. There are quite a few public domain programs around that create, change 
  32. to, or delete directories using this locking strategy.  I wrote this so 
  33. that currently existing directories could be locked and unlocked, and so 
  34. that the same strategy could be used on files as well as just 
  35. directories.
  36.  
  37.