home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10657 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!psgrain!qiclab!leonard
  3. From: leonard@qiclab.scn.rain.com (Leonard Erickson)
  4. Subject: Re: Undocumented commands for MSDOS
  5. Message-ID: <1992Nov16.082224.3643@qiclab.scn.rain.com>
  6. Reply-To: Leonard.Erickson@f51.n105.z1.fidonet.org
  7. Organization: SCN Research/Qic Laboratories of Tigard, Oregon.
  8. References: <1duhj3INNa9c@golem.wcc.govt.nz>
  9. Date: Mon, 16 Nov 1992 08:22:24 GMT
  10. Lines: 25
  11.  
  12. bailey_j@kosmos.wcc.govt.nz writes:
  13.  
  14. >I have found two undocumented commands for MS-DOS: "truename" which seems
  15. >to give the same output as "cd" on its own, and a /f switch for command.com
  16. >which seems to do something unspecified. Can anyone tell me what these two 
  17. >do ?
  18.  
  19. Truename gives the "fully qualified filespec" for the filespec that follows.
  20. So from my D:\TMP directory "truename ..\screen.cut" gives D:\SCREEN.CUT.
  21. And on a network or CD-ROM drive, you get stuff like \\name\volume\path.
  22.  
  23. For instance on a Novell LAN I used to use "truename Y:dsz.com" would
  24. have given \\WSC_PDX1\USER1\PUBLIC\BIN\DSZ.COM which translates as
  25. Server: WSC_PDX1
  26. Volume: User1
  27. Path: \PUBLIC\BIN\
  28. File: DSZ.COM
  29.  
  30. Try it on something that's been re-assigned via SUBST or ASSIGN or JOIN.
  31. It'll report the *real* path. 
  32. -- 
  33. Leonard Erickson              leonard@qiclab.scn.rain.com
  34. CIS: [70465,203]             70465.203@compuserve.com
  35. FIDO:   1:105/51     Leonard.Erickson@f51.n105.z1.fidonet.org
  36. (The CIS & Fido addresses are preferred)
  37.