www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/05/21:38:57

Xref: news2.mv.net comp.os.msdos.djgpp:2474
From: Lee_B AT Celestia DOT dnet DOT co DOT uk (Lee Braiden)
Newsgroups: comp.os.msdos.djgpp
Subject: Detecting drives
Date: Thu, 04 Apr 1996 06:55:44 GMT
Organization: Direct Net @access
Lines: 22
Message-ID: <4jvo8p$3ol@daneel.dnet.co.uk>
NNTP-Posting-Host: udp.dnet.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

Can someone tell me how to detect which drives are actually valid ?

At the minute , I'm just using getdrives(), but it only tells you the
maximum number of drives which might be valid (ie, gives you the last
drive number), but that means any of the drives up to that number
could be non-existant.

getmntent() (or whatever it's called =) is no use to me - I'd need to
check the drives every time, since it won't show the floppy drives
unless there's a disk in them, and that could change every time, and
get getmntent() is _really_ slow..

Any help would be greatly appreciated...

Thanx..

 - Lee.


- Raw text -


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