home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11994 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!rei2!fox
  3. From: fox@rei.com (Fuzzy Fox)
  4. Subject: Re: Soft Links under DOS (UNIX ln -s)
  5. Message-ID: <1993Jan11.170104.6198@rei.com>
  6. Date: Mon, 11 Jan 1993 17:01:04 GMT
  7. References: <1io3o4$p7n@agate.berkeley.edu>
  8. Organization: Recognition Equipment, Inc.
  9. Lines: 26
  10.  
  11. tchnd-au@garnet.berkeley.edu (Yuval Oren) writes:
  12.  
  13. >I would like to implement soft links for DOS. I planned to trap the
  14. >file open, close, etc. interrupts, and re-direct them to the address
  15. >stored in a "link file," which would have one line, the full path of
  16. >the real file. But then I thought, how can I open this file to find
  17. >out where to go? Any ideas for me?
  18.  
  19. Presumably your INT21 handler would remember the address that it used to
  20. have stored, so that it could pass non-linked file calls on to DOS.
  21. Just use the old INT21 handler to handle your link calls.
  22.  
  23. I would love to see a good symlink handler for DOS.  I saw one once that
  24. seemed to work, but it did not support the DOS EXEC call, so I could not
  25. use it to symlink program files to each other.  This would have been
  26. perfect for the PBMPLUS tools.
  27.  
  28. One question:  How do you propose to be able to tell the difference
  29. between a symlink file and a real file that happens to contain a
  30. pathname?
  31.  
  32. -- 
  33. #ifdef TRUE        | Fuzzy Fox (a.k.a. David DeSimone)       fuzzy@netcom.com
  34. #define  TRUE   0  |
  35. #define  FALSE  1  |  "911 Emergency Rescue Service - Can you hold, please?"
  36. #endif             |
  37.