delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/29/05:45:04

Date: Mon, 29 Jan 1996 12:33:10 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Malcolm Taylor <malcolm AT manawatu DOT gen DOT nz>
Cc: djgpp AT delorie DOT com
Subject: Re: Finding which drives exist

On Tue, 23 Jan 1996, Malcolm Taylor wrote:

> It is much harder than you may think. DOS doesn't seem to have any way
> to reliably check for drives, but I have managed to piece together a
> fairly good system from the Ralph Brown interrupt list (if you haven't
> already got this then ftp it from simtel).

The v2.0 library has an implementation of `getmntent' function which 
reports all the valid drives with some info about each one of them (like 
their type, device number, etc.).  Works for all kinds of drives we could 
check it with (nfs, novell, cd-rom, ram, compressed, floppies, fixed).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019