---
title: "Get list of USB in winform using c#?"  
description: "Get list of USB in winform using c#?"  
author: "Aaron Douglas"  
published: 2013-10-16  
updated: 2013-10-16  
canonical: https://www.mindstick.com/forum/1697/get-list-of-usb-in-winform-using-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Get list of USB in winform using c#?

I have tried the below line of [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) to get the [USB](https://www.mindstick.com/articles/13074/what-makes-usb-c-cables-better-than-other-usb-cables) [devices](https://www.mindstick.com/blog/301912/how-smart-devices-are-changing-our-lives) from the computer.

```
 foreach (DriveInfo driveInfo in DriveInfo.GetDrives())
 {
     if (driveInfo.DriveType == DriveType.Removable)
     {
        comboBoxUSB.Items.Add(driveInfo.Name);
     }
 }
comboBoxUSB is a combobox.. here i am getting this :

 E:/
 G:/
```

but not getting the [device](https://www.mindstick.com/blog/149/retriving-network-device-information-in-c-sharp) [name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide), like :

```
 E:/Mindstick
```

something like this, how can i get this? is it possible to get this?

please help!

## Replies

### Reply by Anonymous User

```
foreach (DriveInfo driveInfo in DriveInfo.GetDrives())
 {
     if (driveInfo.DriveType == DriveType.Removable)
     {
        if (drive.IsReady)
                 comboBoxUSB.Items.Add(driveInfo.Name + "-" + driveInfo.VolumeLabel);
     }
 }
```


---

Original Source: https://www.mindstick.com/forum/1697/get-list-of-usb-in-winform-using-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
