Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,
how can i read USB ports and SD card ports in C#/VB.Net ?

problem statement is:

detect the external drives right they are plugged into machine. (USB ports and SD slot to monitor)
Posted
Updated 27-Feb-12 9:31am
v2
Comments
R. Giskard Reventlov 27-Feb-12 17:02pm    
Homework?

1 solution

Below C# code supplies the logical drives in a machine:

C#
String[] drives = Environment.GetLogicalDrives();
Console.WriteLine("GetLogicalDrives: {0}", String.Join(", ", drives));
 
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