[comp.sys.ibm.pc.hardware] Dos mapped drives

feg@moss.ATT.COM (Forrest Gehrke,2C-119,7239,ATTBL) (02/06/91)

Is there a way to distinguish Dos-mapped SUBSTituted and 
ASSIGNed drives from real, i.e. actual, drives?  There
is an INT 21 function that will tell one whether a drive
is remote (network derived), but I haven't figured out
out to distinguish the first two cases.

email me direct or post, if you think this may be of
general interest.

Thanks,

Forrest Gehrke feg@dodger.att.com

brad@huey.Jpl.Nasa.GOV (Brad Hines) (02/07/91)

In article <1991Feb6.141318.4647@cbnewsl.att.com>, feg@moss.ATT.COM (Forrest Gehrke,2C-119,7239,ATTBL) writes:
Is there a way to distinguish Dos-mapped SUBSTituted and 
ASSIGNed drives from real, i.e. actual, drives?


DOS 4.x (not in earlier versions, I don't think) has the undocumented
"TRUENAME" command-line command and associated INT 21 function.  I've
never tried it myself, but it allegedly sees through subst's and
assigns and returns the "true" pathname to a file.  This was written
up in the back of a recent PC Mag (last 2 or 3 issues) or Byte (last 2
issues).  I think it was in PC Mag in the Tutor section.

-- 
Brad Hines
Internet: brad@huey.jpl.nasa.gov
Jet Propulsion Lab, Pasadena, California