G
Guest
When I get a list of drives using the Directory.GetLogicalDrives(), it gives
me all drives including disconnected network drives. When I attempt to use
Directory.GetDirectories() on a disconnected drive, the GetDirectories Method
stops responding. I also tried to use properties such as
DirectoryInfo.Attributes but I have the same problem. How do I detect if one
of the logical drives in my list is a disconnected network drive? I want to
be able to detect this before I attempt to read it.
Thanks
me all drives including disconnected network drives. When I attempt to use
Directory.GetDirectories() on a disconnected drive, the GetDirectories Method
stops responding. I also tried to use properties such as
DirectoryInfo.Attributes but I have the same problem. How do I detect if one
of the logical drives in my list is a disconnected network drive? I want to
be able to detect this before I attempt to read it.
Thanks