Article View: comp.os.msdos.programmer
Article #4146Re: Subst dereferencing
From: Ralf Brown
Date: Sun, 06 Jan 1991 05:11
Date: Sun, 06 Jan 1991 05:11
22 lines
1659 bytes
1659 bytes
In article <HsBaV2w163w@phoenix.com> stanley@phoenix.com (John Stanley) writes:
}Is there a system call that will expand a SUBST drive name into the real
}path? I see none in any of the docs I have. Right now, the only way I
}can think of is to do a system() call, dumping the output of a SUBST
}command to a file, and reading that back in. Ick! I do it, and it works,
}but, oooohhhh.
There is an undocumented system call (INT 21/AH=60h) which will expand SUBST
and JOIN paths. Or you can grunge around in the DOS data structures to find
out--take a look at INT 21/AH=52h in the interrupt list.
I have just released a new version, INTER191.ZIP, now available from
msdos.archive.umich.edu in /pub or /msdos/info
grape.ecs.clarkson.edu in /incoming/msdos
chyde.uwasa.fi in /pc/incoming
and soon (probably by the time you read this) from
wsmr-simtel20.army.mil in PD1:<MSDOS.INFO>
--
{backbone}!cs.cmu.edu!ralf ARPA: RALF@CS.CMU.EDU FIDO: Ralf Brown 1:129/3.1
BITnet: RALF%CS.CMU.EDU@CMUCCVMA AT&Tnet: (412)268-3053 (school) FAX: ask
DISCLAIMER? Did | Everything is funny as long as it is happening to
I claim something?| someone else. --Will Rogers
Technical Details
Message-ID:
<1991Jan6.051107.5257@cs.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!o.gp.cs.cmu.edu!ralfReferences:
<HsBaV2w163w@phoenix.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!o.gp.cs.cmu.edu!ralf From: ralf+@cs.cmu.edu (Ralf Brown) Newsgroups: comp.os.msdos.programmer Subject: Re: Subst dereferencing Message-ID: <1991Jan6.051107.5257@cs.cmu.edu> Date: 6 Jan 91 05:11:07 GMT References: <HsBaV2w163w@phoenix.com> Sender: netnews@cs.cmu.edu (USENET News Group Software) Organization: School of Computer Science, Carnegie Mellon Lines: 22