delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/24/06:15:49

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help With Drives
Date: 24 Jul 1999 08:05:32 GMT
Organization: University of Lulea, Sweden
Lines: 14
Message-ID: <7nbs4c$am$3@news.luth.se>
References: <3799373A DOT 649504ED AT yahoo DOT com>
NNTP-Posting-Host: queeg.ludd.luth.se
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Alex Mendes da Costa (mendac AT fl DOT net DOT au) wrote:
: Hello, I'm new to DJGPP and this newsgroup.
: 
: Is there any way to find out what drives are installed on that computer?
: eg on mine there is A: (floppy), C: (Hard Disk), and G: (CD ROM)
: but how can I find that out with C or C++?

How about ``stat("a:/", &buffer)'' and loop over "a:" to "z" (or even
"}" perhaps).


Kokkonen, Symphony No. 4,

							MartinS

- Raw text -


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