home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10789 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.3 KB

  1. Path: sparky!uunet!olivea!gossip.pyramid.com!pyramid!infmx!neptune!bradl
  2. From: bradl@neptune.informix.com (Brad Levy)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Truename (was undocumented dos)
  5. Message-ID: <1992Nov20.055341.5262@informix.com>
  6. Date: 20 Nov 92 05:53:41 GMT
  7. References: <1992Nov18.040449.20732@vpnet.chi.il.us> <.116@ccs.carleton.ca> <1992Nov19.144944.6624@den.mmc.com>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 41
  11.  
  12.  
  13. I've notice (dos 5, haven't tested w/others) that truename will also use
  14. a forward slash in the returned path/filename if the argument to truename is
  15. recognized as a device (i.e., lpt1, con, nul, clock$, ...)
  16.  
  17. C:\>truename lpt1
  18. C:/LPT1
  19.  
  20.  
  21. Now, if E: and P: are both mapped to the same PCNFS server, (different 
  22. mount points on the server), with P mounted first, I get the following
  23. interesting results:
  24.  
  25. E:\>truename lpt1
  26.  
  27. P:/LPT1
  28.  
  29. E:\>truename xyz
  30.  
  31. \\E\XYZ
  32.  
  33. E:\>p:
  34.  
  35. P:\>truename lpt1
  36.  
  37. P:/LPT1
  38.  
  39. P:\>truename xyz
  40.  
  41. \\P\XYZ
  42.  
  43.  
  44. Note that the handling is different for devices, both in returning a
  45. drive-letter-and-colon instead of \\driveletter, and in not necessarily
  46. returning the same drive "letter" as the current drive.  Perhaps this has
  47. to do with the SUBST behavior the originator of the thread on truename
  48. alluded to?
  49.  
  50. -brad
  51.  
  52. drive
  53.