Ok, if you are running this on W2K, use Win32_CDromDrive as target and
select event notification when media is loaded.
Your WQLquery should look like this...
select * from __InstanceModificationEvent within 10 where TargetInstance ISA
'Win32_CDromDrive' and TargetInstance.MediaLoaded = true
Willy.
"Maciej Brzeziński" <do*******@op.pl> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have all names of the drives stored, but i want to know if cd was
removed or inserted into cdrom drive.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!