Article View: comp.os.msdos.programmer
Article #7164Determining drive configuration
From: Synetics Software
Date: Wed, 19 Jun 1991 15:47
Date: Wed, 19 Jun 1991 15:47
13 lines
1206 bytes
1206 bytes
I need to find out the number of logical drives and their types (i.e. floppy or fixed). I'm using Borland C++. This seems like it should be a fairly straightforward thing to do, but I can't seem to find any Borland library routines or DOS interrupts which do exactly what I want. (A lot of the DOS interrupts that return information on a drive try to make it current first which is no good for floppy drives). Actually, all I need is a routine, "isValidDrive(driveNum)", and use it along with the max number of drives (returned from setdisk()) to get a list of the valid drives. Thanks for any help you can offer. Douglas Earl Synetics Software dae@synetic.uucp dae@synetic.mixcom.com
Technical Details
Message-ID:
<1043@mixcom.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!olivea!uunet!mixcom!ssvvssShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!olivea!uunet!mixcom!ssvvss From: ssvvss@mixcom.COM (Synetics Software) Newsgroups: comp.os.msdos.programmer Subject: Determining drive configuration Summary: I want to find the number drives on a system Message-ID: <1043@mixcom.COM> Date: 19 Jun 91 15:47:10 GMT Article-I.D.: mixcom.1043 Distribution: usa Organization: Milwaukee Information eXchange (Public access Usenet, Email) Lines: 13