Click here to Skip to main content
15,910,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my application i want to detect the pendrive can any one help me for this
in asp.net
Posted

If this is truly ASP.NET then yoiu can't - the Pen drive would be connected to the Client PC and there is no way the Server can detect that it exists, much less has been plugged in, for security reasons.

If you mean to detect it in a .NET winforms app, then have a look at this article: Detecting USB Drive Removal in a C# Program[^] - it covers insertion and removal.
 
Share this answer
 
Comments
RaisKazi 26-Dec-11 4:25am    
My 5.
 
Share this answer
 
Try this URL........................C# MIDI Toolkit[^]
 
Share this answer
 
Comments
OriginalGriff 26-Dec-11 4:37am    
Reason for my vote of one: What does MIDI Sequencing have to do with Pen drive insertion?

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