Path: utzoo!utgpu!watmath!clyde!att!osu-cis!killer!ames!xanth!mcnc!rutgers!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!Ralf.Brown@B.GP.CS.CMU.EDU From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: comp.sys.ibm.pc Subject: Re: Finding free space on a joined drive Message-ID: <23ca0289@ralf> Date: 10 Jan 89 13:18:01 GMT Sender: ralf@b.gp.cs.cmu.edu Lines: 28 In-Reply-To: <812@ttrde.UUCP> In article <812@ttrde.UUCP>, pfales@ttrde.UUCP (Peter Fales) writes: }/* Use the undocumented DOS function 0x60 to map a relative path to a fully }qualified path name. Then use the first character of that pathname to }determine the drive to which that path belongs. The key thing here is }that it works even if the path is on another drive that has been JOINed */ I also tried it on a SUBSTed path, and that worked the same way. Just a drive letter did strange things, though (looks like the DOS function doesn't put anything into the result buffer). INT 21 - DOS 3+ internal - RESOLVE PATH STRING TO FULLY QUALIFIED PATH STRING AH = 60h DS:SI -> ASCIZ relative path string ES:DI -> 67???-byte buffer for ASCIZ fully qualified name Return: buffer filled with qualified name of form D:\PATH may return error code, unknown. Note: if path string is on a JOINed drive, the returned name is the one that would be needed if the drive were not JOINed; similarly for a SUBSTed drive letter. Because of this, it is possible to get a qualified name that is not legal with the current combination of SUBSTs and JOINs -- UUCP: {ucbvax,harvard}!cs.cmu.edu!ralf -=-=-=- Voice: (412) 268-3053 (school) ARPA: ralf@cs.cmu.edu BIT: ralf%cs.cmu.edu@CMUCCVMA FIDO: Ralf Brown 1:129/31 Disclaimer? I claimed something? You cannot achieve the impossible without attempting the absurd.