Link to home
Create AccountLog in
Avatar of rcl58
rcl58

asked on

Detecting If Drive is Read-Only

I’m sure this is simple but I can’t find it on the web. How can I detect if a drive is Read-Only? I use IO.DriveInfo for other things but I can’t find a way to simply check if a drive is read-only.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of rcl58
rcl58

ASKER

Yeah, I had been there but you pointing me to it again made me dig a little deeper and I found the actual FileAttributes Enumerations. Thanks!

http://msdn.microsoft.com/en-us/library/system.io.fileattributes.aspx