Re: Code needs to be alerted that a removable disk drive's state

Tech-Archive recommends: Fix windows errors by optimizing your registry



You can just start a thread the checks the drive status periodically then
raises an event to notify your main thread or set the status appropriately.
I don't think there is an event raised when a disk is removed or inserted.

"Just Me" wrote:

> I wonder if I wasn't clear as to what I need.
> Think of Windows Explorer like app showing
> 31/2 Floppy (A:) {Not Ready}
>
> If the floppy "ready" state changes I need to be notified so that the
> display can be changed.
>
> I could, for example, have a timer tick event periodically check the drive
> but hope that is not the only way to do it.
>
> Thanks
>
>
> "Dennis" <Dennis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:A9AD035C-F59E-406C-9A83-BE94707E6A1E@xxxxxxxxxxxxxxxx
> > There is probably something that does this directly but I would consider
> > putting any reads/writes to any drive inside a try/catch/finally loop. If
> > the file can't be written/read, an exception will be thrown that contains
> > the
> > reason why (e.message).
> >
> > "Just Me" wrote:
> >
> >> I check to see if the Floppy drive is ready and display it's state.
> >>
> >> But if the user inserts or removes a floppy disk I need an event or
> >> Windproof
> >> message to cause the code to display the new state.
> >>
> >> Is the some way the code can be alerted to the fact that a removable disk
> >> drive's state changed?
> >>
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: Model 4 Disk Drive Issue
    ... Once the display is working and displaying reasonable text, ... On the original equipment, only single-sided drives were ... on the floppy interface card. ... BTW the 'no operating system' message is in the bootsector of data disk not the ROM so there is no message after a floppy is detected. ...
    (comp.sys.tandy)
  • Code needs to be alerted if the Floppy drive "ready" state has changed
    ... In code I check to see if the Floppy drive is ready and display it's state. ... But if the user inserts or removes a floppy disk I need an event or a ... If the floppy "ready" state changes the code needs to be notified so that ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Code needs to be alerted that a removable disk drives state chan
    ... If the floppy "ready" state changes I need to be notified so that the ... >> I check to see if the Floppy drive is ready and display it's state. ... >> But if the user inserts or removes a floppy disk I need an event or ...
    (microsoft.public.dotnet.languages.vb)
  • Windows 2000 pro not recognising floppy or cd drives after updates
    ... I can burn a disk but can't get the system to open one or read a floppy. ... will check out a floppy and then display A:\ is not accessible incorrect ...
    (microsoft.public.windowsupdate)
  • Re: W9xNT MCA Adapters - SPOCK-206
    ... SPOCK-206 will manage the disk lights on your machine to indicate ... It's better to set a flag in memory, and check that on each clock tick. ... and you access the port only when the state changes. ...
    (comp.sys.ibm.ps2.hardware)