Looking For Disk Change Event

  • Thread starter Thread starter Frank Fulton
  • Start date Start date
F

Frank Fulton

I ran a search through the last 52,549 msg's in this forum and found nothing
and was unable to find anything in the .net help system or MSDN online.

I know there used to be a way to monitor disk changes, but I have been out
of the programming loop for a little while and have forgotten how we used to
do it (int 13 bios calls I think), besides I would like to stick with .net
if I can.

I am trying to make a little utility application for my father and being
able to monitor disk changes would allow me to make the program much more
fail-safe for him. He is not very computer literate.

I need to be able to pick up floppy disk changes, and would be willing to
use almost any means possible - polling the drive is out of the question for
obvious reasons.

Any Help or Recommendations would be appreciated.

Thanx to all in Advance
 
I tried that and created the following exception when a disk is not in:

An unhandled exception of type 'System.ArgumentException' occurred in
system.dll

Additional information: The directory name A:\ is invalid.


Even After "catch"ing the exception(s) FileSystemWatcher does do pop an
event for the disk insert or eject.


As we all know Line 34 of the Floppy Drive is dedicated to "Disk Change"
events why can I not detect this disk change in windows anymore?

Thanx
 
Back
Top