Path: 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: Sender: netnews@cs.cmu.edu (USENET News Group Software) Organization: School of Computer Science, Carnegie Mellon Lines: 22 In article 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: -- {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