Thanks but I'm using an OpenFileDialog and this method isn't supported. So I ended up with:
Code:
' User has selected a file so get the file's drive info.
Dim m_Info As DriveInfo = My.Computer.FileSystem.GetDriveInfo(m_FD.FileName.Substring(0, 1))
' Check to see if the drive is local
If (m_Info.DriveType = DriveType.Fixed) Then
...
End If
I would rather have the drives filtered, so the user doesn't get frustrated, so I'll mayby roll my own later if needed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.