Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to make an application which runs at startup of a usb, once a usb is attached to a computer, a small application runs, application needs to be in USB, so that when so ever it is attached with a computer, the application runs
Posted
Updated 3-Nov-11 22:45pm
v2

Put an Autorun.inf in the USB thumb drive's root folder that points at the application to run.
However, removable media autorun is disabled on most PCs nowadays, which will render your effort useless. You can activate it if you are the administrator.
 
Share this answer
 
Check this article

<a href="http://www.cybersprocket.com/2011/programming-languages/detecting-usb-insertionremoval-in-c-net-4-0/">http://www.cybersprocket.com/2011/programming-languages/detecting-usb-insertionremoval-in-c-net-4-0/</a>[<a href="http://www.cybersprocket.com/2011/programming-languages/detecting-usb-insertionremoval-in-c-net-4-0/" target="_blank" title="New Window">^</a>]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900