🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6376

Re: Undocumented commands for MSDOS

#6376
From: Duncan Murdoch
Date: Wed, 18 Nov 1992 15:46
22 lines
1709 bytes
In article <1992Nov18.040449.20732@vpnet.chi.il.us> cgordon@vpnet.chi.il.us (gordon hlavenka) writes:
>Hmmm...  I just shelled out and tried "truename pkunzip.exe".  It
>returned "D:\TELIX\PKUNZIP.EXE" although pkunzip is actually in
>C:\UTIL.  Next I tried "truename nosuch.fil" and got
>"D:\TELIX\NOSUCH.FIL".  So I guess we can see why it's undocumented :-)

I think it returns a fully expanded version of a filename, usable 
below the level where SUBST works. For example, if you had tried 
  echo junk >pkunzip.exe
then you wouldn't have trashed the uncompressor, you would have created a 
new file, which on a barebones system would be D:\TELIX\PKUNZIP.EXE.  If you
happen to have "SUBST D: C:\NEVER\NEVER\LAND" in effect, then the "truename" 
won't be usable until you go below the SUBST (or get rid of it).

It's still a mystery to me why this command is there.  Are there any DOS 
utilities that routinely go below SUBST?  Perhaps the equivalent of
  SUBST F: `truename .`
would be handy in a batchfile.  (I'll have to defer to the batch wizards to
actually come up with a working batch file to do this.)

Duncan Murdoch
dmurdoch@mast.queensu.ca
Technical Details
Message-ID: <dmurdoch.286.722101581@mast.queensu.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!skule.ecf!torn!news.ccs.queensu.ca!mast.queensu.ca!dmurdoch
References: <1duhj3INNa9c@golem.wcc.govt.nz> <1992Nov17.104222.6548@goya.uu.es> <1992Nov18.040449.20732@vpnet.chi.il.us>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!skule.ecf!torn!news.ccs.queensu.ca!mast.queensu.ca!dmurdoch
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Undocumented commands for MSDOS
Message-ID: <dmurdoch.286.722101581@mast.queensu.ca>
Lines: 22
Sender: news@knot.ccs.queensu.ca (Netnews control)
Organization: Queen's University
References: <1duhj3INNa9c@golem.wcc.govt.nz> <1992Nov17.104222.6548@goya.uu.es> <1992Nov18.040449.20732@vpnet.chi.il.us>
Date: Wed, 18 Nov 1992 15:46:21 GMT