Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!vax1.cc.lehigh.edu!cert.sei.cmu.edu!krvw From: vail@tegra.com (Johnathan Vail) Newsgroups: comp.virus Subject: Re: SCAN program for IBM's (PC) Message-ID: <0011.9101151325.AA04099@ubu.cert.sei.cmu.edu> Date: 14 Jan 91 20:22:24 GMT Sender: Virus Discussion List Lines: 24 Approved: krvw@sei.cmu.edu PFKLAMMER@CUDENVER.BITNET (Pete Klammer/303-556-3915) writes: >Only one problem with that idea: How can the machine tell when a disk >is inserted? There isn't any type of sensor in IBM floppy drives like >in the Mac. >Doug Barlow Isn't the write-protect sensor status available for polling? If you constantly (once per clock tick) check the write-protect detector, you could see the "shadow" of the diskette sleeve (write protected or not) as the disk is inserted or removed. I.e., if the detector toggles in any way, a diskette has been either inserted or removed. If I remember correctly the drve has to be selected. Even if this is possible and isn't precluded by door open, etc., it definately won't work while another drive is selected and being used. jv "Live Free or Die, Death is the lesser of the two evils" -- General John Stark _____ | | Johnathan Vail | n1dxg@tegra.com |Tegra| (508) 663-7435 | N1DXG@448.625-(WorldNet) ----- jv@n1dxg.ampr.org {...sun!sunne ..uunet}!tegra!vail