home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / a / dupusr.lbr / DUPUSR.DOC < prev   
Encoding:
Text File  |  1992-07-23  |  1.6 KB  |  33 lines

  1. DUPUSR.ASM     22-Nov-81 7385
  2.     Duplicate a CP/M file entry on multiple levels
  3.     without recopying the entire file to each.
  4.  
  5.  
  6. This program creates extra entries in a CP/M 2.x
  7. directory that "point to" files which were actually created in a
  8. different directory.  This gives you access to the file from
  9. both user numbers without having to keep multiple copies of the
  10. actual file itself.  To create duplicate entries on drive "d" for
  11. user "x" from files which currently reside at user "y", type:
  12.     A>USER y            ;log in to originating user y
  13.     A>DUPUSR d:filename.typ x    ;create files at destination user x
  14. Note that this program will totally duplicate the directory entry in
  15. all respects (except the user number, of course).  This means that
  16. both entries will show the file with the same attributes, such as
  17. "read-only" or "system".  The filename.typ may contain "?" and "*".
  18.  
  19. The only known hazard in the use of this program occurs when erasing
  20. one of the duplicate entries.  You must type control-c immediately
  21. after erasing the entry, so that cp/m is forced to rebuild the allocation
  22. vector for that drive.  This is because the erase command frees the
  23. blocks shown for the erased file without checking if they are in use
  24. elsewhere.  If you didn't type control-c, the next disk write would
  25. clobber these blocks, voiding all other pointers to the file.
  26. Unfortunately this would only be apparent the next time you tried
  27. to read the file from another user number, at which time you would
  28. read garbage.
  29.  
  30. Please forward all comments, suggestions and improvements to:
  31.     Bruce R. Ratoff
  32.     80 Gill Lane, Apt 1B
  33.     Iselin, New Jersey     uuuuuuuu