From: "A.Appleyard" To: DJGPP AT sun DOT soe DOT clarkson DOT edu Date: Fri, 19 Jan 1996 17:21:01 GMT Subject: Finding which drives exist I wrote a big Gnu C++ program (an emacs-type text editor). I found today that various DOS interrupts that are supposed to make specific fault returns when I try to access a nonexistent drive, when Novell Netware is active act very odd and cause aborts in my program; and I have to run with Novell active most of the time. Luckily I have managed to cobble matters together so that a nonexistent drive looks to a user of my program like an empty drive that can't be written to. But this is unsatisfactory. Please how in Gnu C++ can I find easily at run time for(i='A';i<='Z';i++) whether drive i exists? And I don't want in the process any empty floppy or CD-ROM drives making rude noises at me or wanting Abort/Fail/Retry. I don't mind if an empty floppy drive is treated as nonexistent. It seems easy enough: the File Manager in Windows gets it right every time and displays across the top of its window a row of little disk drive icons, one for each existing logical drive.