Help With Detecting A Flash Drive

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Anubhav (anubhav_at_gmail.com)
Date: 06/22/04


Date: 22 Jun 2004 15:02:42 -0700

Hi,

I am trying to use WMI to detect a event to detect when a new USB
Flash Drive is connected or disconnected. Here I initially tried to
use the win32_volumechangeevent but its doesnt trigger any event. On
trying win32_devicechangeevent, it triggers a event of eventtype
Configuration change rather thatn device removal or addition which I
expected. Can somebody please help me with my problem. I need to
detect that a new flash drive has been connected to the system and
then parse the volume.

Thanks In Anticipation.

Anubhav.



Relevant Pages