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.050756.5134@cs.cmu.edu> Date: 6 Jan 91 05:07:56 GMT References: Sender: netnews@cs.cmu.edu (USENET News Group Software) Organization: School of Computer Science, Carnegie Mellon Lines: 20 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 no system call, but you can grunge around in the DOS data structures to find out. Take a look at INT 21/AH=52h in 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