Hi jayinthe813

sorry about the delay. Thanks for the code.

The original plan was to use the code in my Post which says there has been a USB device inserted or removed and try to figure out the device name. I have already played around with code similar to the code in your reply but it takes a noticeable amount of time. I wonder if it is possible to find out the device name by changing the original code? Windows seems to be able to do it.

Many thanks in advance,

Lawrence