How can I determine if a drive is a external drive plugged in through usb ? I checked the DriveInfo.DriveType but with my 1TB external drive plugged in through usb it shows up as a fixed drive.
Thoughts ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Based on a comment from Floyd Pink I used this link. This allows me to determine whether a device is external or not.
Using WMI
Select * from Win32_LogicalDiskas in Royi Namir’s answer andDriveInfo.DriveTypeshow my external type as ‘Local Disk’ which I can’t use to determine whether the drive is external.