>> About a year ago I made a form using the drivetype function to detect that the pendrive had in effect been plugged to the machine.<<
You can use Windows Event Binding in Visual FoxPro 9. Doug Hennig wrote an article on this for FoxTalk 2.0. You can find it here: http://msdn.microsoft.com/en-us/library/ms947678.aspx I have not tested it in Windows 7, but it should work for Windows XP and better. Rick White Light Computing, Inc. www.whitelightcomputing.com www.swfox.net www.rickschummer.com _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/002e01cafadb$088eab70$19ac02...@com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.