View Single Post
Old Jul 20th, 2006, 7:36 AM   #1
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
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..
john Wesley is offline   Reply With Quote