Click here to Skip to main content
15,885,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to run a application when a USB device plug into the computer,I think it should be implemented by Windows Service,Can you give me some tips or examples about it.I am a beginner for service.Thanks
Posted
Comments
[no name] 20-Dec-14 10:15am    
and your previous efforts were?
PIEBALDconsult 20-Dec-14 10:32am    
Will Autoplay work?

1 solution

CodeProject is your friend: [^]
"This article describes my C# class called DriveDetector which will allow your program to receive a notification when a removable drive (such as a flash drive) is inserted or removed. It also supports notifications about pending removal of such a device and cancelling this removal."
 
Share this answer
 

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