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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!utcsri!skule.ecf!torn!news.ccs.queensu.ca!mast.queensu.ca!dmurdoch
  3. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  4. Subject: Re: Undocumented commands for MSDOS
  5. Message-ID: <dmurdoch.286.722101581@mast.queensu.ca>
  6. Lines: 22
  7. Sender: news@knot.ccs.queensu.ca (Netnews control)
  8. Organization: Queen's University
  9. References: <1duhj3INNa9c@golem.wcc.govt.nz> <1992Nov17.104222.6548@goya.uu.es> <1992Nov18.040449.20732@vpnet.chi.il.us>
  10. Date: Wed, 18 Nov 1992 15:46:21 GMT
  11.  
  12. In article <1992Nov18.040449.20732@vpnet.chi.il.us> cgordon@vpnet.chi.il.us (gordon hlavenka) writes:
  13. >Hmmm...  I just shelled out and tried "truename pkunzip.exe".  It
  14. >returned "D:\TELIX\PKUNZIP.EXE" although pkunzip is actually in
  15. >C:\UTIL.  Next I tried "truename nosuch.fil" and got
  16. >"D:\TELIX\NOSUCH.FIL".  So I guess we can see why it's undocumented :-)
  17.  
  18. I think it returns a fully expanded version of a filename, usable 
  19. below the level where SUBST works. For example, if you had tried 
  20.   echo junk >pkunzip.exe
  21. then you wouldn't have trashed the uncompressor, you would have created a 
  22. new file, which on a barebones system would be D:\TELIX\PKUNZIP.EXE.  If you
  23. happen to have "SUBST D: C:\NEVER\NEVER\LAND" in effect, then the "truename" 
  24. won't be usable until you go below the SUBST (or get rid of it).
  25.  
  26. It's still a mystery to me why this command is there.  Are there any DOS 
  27. utilities that routinely go below SUBST?  Perhaps the equivalent of
  28.   SUBST F: `truename .`
  29. would be handy in a batchfile.  (I'll have to defer to the batch wizards to
  30. actually come up with a working batch file to do this.)
  31.  
  32. Duncan Murdoch
  33. dmurdoch@mast.queensu.ca
  34.