Hi,
I wonder if there is a way to copy an app (exe) to a specific location on a PC and run it when you plug in to USB drive?
Best Regards.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Feb 20, 2012, 10:45 PM
If it were me, I would look to see if there is an autorun type of capability instead of using WMI. There might be something that works that does not require anything special to be installed in the system first. WMI would require that a program using WMI be installed already.
Of course I probably misunderstand the requirements.
VulpesPosted Feb 20, 2012, 9:01 AM
http://www.c-sharpcorner.com/Forums/Thread/161905/how-to-copy-in-another-place.aspx
There is some WMI code in the last post in this thread which can detect when a USB drive is plugged in:
http://bytes.com/topic/net/answers/102489-how-detect-usb-device-being-plugged-unplugged