C# How to get the path for a usb flash drive

The class you would want to use to develop your solution is the DriveInfo class. There is no way to guarantee it is the same drive easily but you can use options such as the DriveType property to check it is a removable USB drive or the VolumeLabel if you are trying to make it only use one USB stick.

5/5 - (1 vote)