Path: 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 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