|
-
Apr 22nd, 2020, 10:56 AM
#1
Thread Starter
Lively Member
Can't access a mapped drive
I have mapped a directory on a home networked computer to drive Z:. At a command prompt, I can switch to drive Z: and perform a directory listing. In File Explorer the directory shows under "Network locations" as "d (\\192.168.0.103) (Z:)", where d is the mapped directory and the number within parentheses is the computer's IP address.
However in a Visual Basic program, the statement
Dim Drives() As DriveInfo = DriveInfo.GetDrives
does *not* return drive Z: as one of the drives and a statement referring to a file in Z: returns a Directory Not Found exception.
How can I access a networked drive from within Visual Basic?
Last edited by coffent; Apr 22nd, 2020 at 01:24 PM.
Reason: Remove auto-generated emoticon
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
|