🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1929

detect logical disk drives ??

#1929
From: Tamboer Erik
Date: Sun, 19 Aug 1990 21:24
17 lines
1221 bytes
Is there a reliable way to figure out how many and
preferrably which (e.g. A:, C:, D:) logical disk drives
are available in a DOS system? DOS function 10h is not
satisfactory, since it simply returns the LASTDRIVE=
value. If I set LASTDRIVE=Z in my config.sys file,
function 10h returns 26, but all I have is A: and C:.
Again, I am talking about _logical_ drives, including
RAMdisks and SUBST'd drives, so BIOS INT 11h won't do either.
Solutions in C or ASM, and hints are very much
appreciated.
Thanks in advance,
  Erik
--
    ____________________       ________________________________________
   / Erik Tamboer      /\__   / I would have included a really funny  /\__
  / tamboer@cs.vu.nl  /__\/  / joke here, but I already logged out.  /__\/
 /___________________/      /_______________________________________/
Technical Details
Message-ID: <7347@star.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!hp4nl!star.cs.vu.nl!tamboer@cs.vu.nl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!hp4nl!star.cs.vu.nl!tamboer@cs.vu.nl
From: tamboer@cs.vu.nl (Tamboer Erik)
Newsgroups: comp.os.msdos.programmer
Subject: detect logical disk drives ??
Message-ID: <7347@star.cs.vu.nl>
Date: 19 Aug 90 21:24:13 GMT
Sender: news@cs.vu.nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 17