[comp.lang.pascal] Finding the number of disk drives attached

CHEGC@lure.latrobe.edu.au (12/11/90)

I am trying to find the number of logical drives on a PC, using TP 5.5; and I'm
not having much luck! I tried using the DOS function 0EH, but had no success:
according to Microsoft, 'for DOS 3.0 and greater, the value returned in AL is
either 5 or the drive code corresponding to the LASTDRIVE entry (if any) in
CONFIG.SYS, whichever is greater'.
   Is there another way that will tell me the number of drives (floppy, hard &

                     Thanks in advance,

					- graeme cross        -
					- CHEGC.LURE.LAT.OZ.AU -

ts@uwasa.fi (Timo Salmi) (12/17/90)

In article <4889@lure.latrobe.edu.au> CHEGC@lure.latrobe.edu.au writes:
>I am trying to find the number of logical drives on a PC, using TP 5.5; and I'm
>not having much luck! I tried using the DOS function 0EH, but had no success:
:

Take a look at /pc/ts/tspas22.arc Turbo Pascal units collection
available by anonymous ftp from uwasa.fi archives.

...................................................................
Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun