home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!sybus.sybus.com!card
- From: card@sybus.com (James Card)
- Subject: Re: Detecting disk change
- Message-ID: <1993Jan28.231309.6100@sybus.com>
- Sender: news@sybus.com
- Nntp-Posting-Host: sybus
- Organization: Sybus Corporation, Largo, FL
- References: <sankey.728153663@unixg.ubc.ca>
- Date: Thu, 28 Jan 1993 23:13:09 GMT
- Lines: 33
-
- In article <sankey.728153663@unixg.ubc.ca> sankey@unixg.ubc.ca (Todd Sankey) writes:
- >
- > Is there any reliable way to detect if the floppy disk has been
- >changed short of actually reading it?
- >
- >--
- > Todd Sankey
- > sankey@unixg.ubc.ca
- >
-
- Many of the new disk drives support a change line status indicator.
- I am not sure offhand if there is a way to read this (other than
- going directly to the floppy disk controller) so you will have
- to research this yourself... but other drives such as the
- 360K drives do not support this feature. What MS-DOS does is
- to assume that if a disk drive was last accessed more than a
- second ago, then they assume that the diskette has been changed
- which is a pretty good assumption. They picked a second because
- apparently after several tests they found that the minimum average
- time that a person takes to open a drive and remove the disk was
- about 1 second.
-
- Check the extended INT 13H calls that the AT's introduced to see
- if you can read the disk change status indicator... and also to see
- if a drive supports that feature. I believe that there were
- function calls for both.
-
- jC
- --
- __/o___~_ James Card (Firmware Engineer)
- (________| Nothin' like Sybus Corporation
- @ @ top down 2300 Tall Pines Dr. Suite 100
- weather... Largo, Fl 34641 (813) 535-6999
-