Article View: comp.os.msdos.programmer
Article #1733Identifying the max. number of drives.
From: Robert Wallen
Date: Tue, 31 Jul 1990 08:22
Date: Tue, 31 Jul 1990 08:22
21 lines
1157 bytes
1157 bytes
I'm writing a program that displays a window showing a list of "A:,B:, C: ..." for the user to select a drive from. Problem is how do you work out what drives are installed in a system. I can can get the number of floppies from the equipment list function. If I ask DOS the max. drive number I always get 5 drives. I have been thinking of reading the partition map to see how many drives are on 1 hard disk, but this seems like overkill and wouldn't work for machines that have 2 physical hard disks. It would also be possible to read a sector from each disk to see if the disk was there but this would take ages. What would you do to identify and networked volumes? Seems like someone must have done this before. Can anyone help? Thanks in advance, Rob Wallen
Technical Details
Message-ID:
<3102@murtoa.cs.mu.oz.au>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!robShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!rob From: rob@cs.mu.oz.au (Robert Wallen) Newsgroups: comp.os.msdos.programmer Subject: Identifying the max. number of drives. Message-ID: <3102@murtoa.cs.mu.oz.au> Date: 31 Jul 90 08:22:51 GMT Organization: Comp Sci, Melbourne Uni, Australia Lines: 21