|
-
Aug 5th, 2019, 02:40 PM
#19
Re: Get UNC from network mapped drive letter
 Originally Posted by Fedaykin
Well, okay. How so how do I 'wake up' the connection? Doing this on the L: drive returns FALSE:
VB.net Code:
Dim letterOnly As String = ConnStr.Substring(0, 2) Dim driveExists As Boolean = Directory.Exists(letterOnly & ":") 'Tried both L: and L:\, both show FALSE even though my local machine is mapped to the L drive!
Haven't tried it, but from what I remember you have to use it... not just check to see if it exists, but use it... like get the directory listing or something. And it doesn't always wake up on the first attempt either, that it might take 2-3 attempts.
-tg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|