🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #558

Checking for disk characteristics

#558
From: David Arasmith
Date: Thu, 13 Sep 1990 02:21
18 lines
1379 bytes
   I have a question for those out there more knowledgable than myself.
I am trying to determine the number of logical hard drives on any garden
variety IBM PC or PS/2 from within Turbo C(++ v1.0).  I cannot assume
that functions such as setdisk() will give reliable information.

  What I need is a way to check a particular drive without encountering
the infamous Abort, Retry, Fail.  Does someone out there know an easy
way to poke a drive (and determine if it is fixed or floppy) without
forcing a user to insert a floppy?  (I'm not worried about a: & b: - it's
the d:'s e:'s and f:'s hanging off the back that concern me!)

Thanks a lot!  Email is more likely to get to me (actually me to it).
-- 
David M. Arasmith   |  arasmith@mathcs.emory.edu	        Internet
Emory University    |  {sun!sunatl,gatech}!emory!arasmith	UUCP
Dept of Math and CS |  
Atlanta, GA 30322   |  I should be working!  Gee....I wonder what's on TV?
Technical Details
Message-ID: <6302@emory.mathcs.emory.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!wuarchive!emory!arasmith

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!wuarchive!emory!arasmith
From: arasmith@mathcs.emory.edu (David Arasmith)
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
Subject: Checking for disk characteristics
Keywords: fixed vs floppy
Message-ID: <6302@emory.mathcs.emory.edu>
Date: 13 Sep 90 02:21:18 GMT
Followup-To: alt.msdos.programmer
Organization: Math & Computer Science, Emory University, Atlanta, GA
Lines: 18