From: Delong Newsgroups: comp.os.msdos.djgpp Subject: Detecting all system drives ... how? Date: Sun, 23 Feb 1997 20:01:35 -0500 Organization: ... Lines: 16 Message-ID: <3310E86E.176F@osha.igs.net> Reply-To: dandelong AT osha DOT igs DOT net NNTP-Posting-Host: ttya17.osha.igs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I can't seem to find a way to detect all drives attached to the computer. I don't care about network drives. I'd like to tell the difference between B: actually existing or just A: being referenced as A: or B: but thats no big deal. Is there a way to simply get a yes/no response to whether a drive (being either a number from 0-26 or letter from A-Z) is attached? I have tried getmntent but it only detects floppy/CD-ROM drives if there's a disk in it. Thanks, hope somoene can help ... -- ... Andrew Delong ______________________________________________________________ Check out my hompage ... Great for graphics & DOS programming http://www.osha.igs.net/~dandelong/nash.htm