|
Drive Insertion Detection
Hello everyone, It's been a couple of weeks I believe.
I have a question to ask about detecting when a disk is inserted.
a disk being either a floppy, CD, USB etc..
As you now windows automatically detects a Drive or Disk when inserted, and unless the option is disabled, it will prompt you with a dialog giving you options of what to do / how you want to open the data.
I am writing a program that needs the ability to know when a new drive letter is mounted. I have looked around the internet for a couple of days regarding this matter, and other than trying my damned hardest to re-write some C# code I have had no success. maybe somebody here has an idea?
Info : My program wants to be notified when there is a USB drive inserted and on the occasion of it being inserted the program will search the drive for a specific file, if the file exists it can carry out its duty, otherwise nothing is done.
I must thank anyone who even takes time to look at this thread.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..
|