<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000066'>Hi All,<br><br>I currently have a little program which looks for new USB removable media to be inserted into a PC. It does so by polling (every 5 seconds) all the drives within Win32_DiskDrive() and queries to find the ones which PNPDeviceID has 'USBSTOR' within them and establishes that they are removable media (I'm not interested in USB HDDs) and whether they have a partition or not.<br><br>This approach was used too on Linux for querying HAL - however DeviceKit has replaced HAL, and along with it brought the concept of listening to signals. Looking back at the python WMI docs, I've read about "Extrinsic Events" and the "watch_for" method. However, I'm having trouble working out whether there are any events for USB media insertion that I can wait for? <br><br>I would like to move away from polling as it introduces delays when the user is expecting an immediate response. Can anyone guide me with how to write a little listener; if this is possible?<br><br>Thanks in advance, Chris<br></div></body></html>