Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!gatech!rutgers!mailrus!ames!lll-lcc!pyramid!octopus!pete From: pete@octopus.UUCP (Pete Holzmann) Newsgroups: comp.sys.ibm.pc Subject: HELP! How to find disk space on joined directories? Message-ID: <467@octopus.UUCP> Date: 6 Jan 89 05:12:07 GMT Reply-To: pete@octopus.UUCP (Pete Holzmann) Organization: Octopus Enterprises, Cupertino CA Lines: 28 I ran into an interesting problem today. I wonder if anybody out there has dealt with it already? Please attempt to email answers since this is pretty esoteric. I'll summarize the solution to the net (if one is found!) I have a program that wants to test for remaining space in a temp hard disk area before creating some mongo files. The normal disk-space DOS (and MS/Turbo C) routines return remaining space on the current *drive*, but not for the current *directory*. This is not important in pre-JOIN days, but now things can get messed up: C: has 8 MB free C:\foo (current directory, where the user wants to put their stuff) has 2 MB free (drive D: is JOINed to C:\foo) The DOS call tells me I have 8 MB to play with. I try to use it and get blown away 'cuz really there are only 2! Anybody know how to resolve this? I can't even find anything that shows me if/how the current directory relates to JOINed disk drives! Thanks! Pete -- OOO __| ___ Peter Holzmann, Octopus Enterprises OOOOOOO___/ _______ USPS: 19611 La Mar Court, Cupertino, CA 95014 OOOOO \___/ UUCP: {hpda,pyramid}!octopus!pete ___| \_____ Phone: 408/996-7746