Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!spool.mu.edu!sdd.hp.com!elroy.jpl.nasa.gov!usc!jarthur!uunet!cs.dal.ca!dal1!merrett From: merrett@ac.dal.ca Newsgroups: comp.os.msdos.programmer Subject: Help: Finding legal drives on system Message-ID: <3815@ac.dal.ca> Date: 28 Feb 91 11:44:48 GMT Lines: 23 Organisation: Dalhousie University, Halifax, Nova Scotia, Canada Here's a simple problem that I thought (incorrectly it seemed) would have a simple solution: I'm using Turbo-C 2.0 (also TCXL 5.5 if that helps) and I'm trying to write a simple little routine to scan for the available drives. I got a kludge together which incremented up the DRIVE numbers scanning for getdfree(), checking if it gave an error. Well, it worked ok but on this one floppy/one hard drive 386 it naturally asked me to insert floppy in b:. Is there any way of checking for 'legal' drives on a particular system, in C, without actually having to read from the drive? (i.e. I don't want it plopping that 'insert floppy' message in the middle of my pretty windows) thanks in advance Doug Merrett merrett@ac.dal.ca Dalhousie University Halifax, N.S. Canada \|/ -O- /|\