I read the following article: Using Ruby & WMI to Detect a USB Drive
However, this method would require me to keep polling inside a loop. Is it possible to register and have my script be notified when USB is inserted/ejected ?
I am looking for a Windows XP solution.