Hi all,
I have tried almost everything to identify if a folder exists on a mapped drive. It's my guess that there is a setting somewhere causing the problem.
Let's say that I have a drive mapped as drive k:. When I use:
My.Computer.FileSystem.DirectoryExists("k:"))
It says that it doesn't exist. Adding a backslash, folder name, etc. doesn't help.
I also tried using System.Management.ManagementScope and System.Management.ObjectQuery and again, they only report that I have 2 drives, C and D.
But if I go to the command window or windows explorer, I can see all the mapped drives. I can open folders, edit files, etc. on any of the mapped drives. I can even copy files back and forth. But VB.NET does not think they exist.
All the docs I have read say that both of these approaches should recognize mapped drives.
As I said, I have to believe that this is just a matter of correcting some setting in VS.NET. But I can't find any documentation in help, on forums, etc. that will tell me which one. Do you know?
Thanks,
Fletcher
I have tried almost everything to identify if a folder exists on a mapped drive. It's my guess that there is a setting somewhere causing the problem.
Let's say that I have a drive mapped as drive k:. When I use:
My.Computer.FileSystem.DirectoryExists("k:"))
It says that it doesn't exist. Adding a backslash, folder name, etc. doesn't help.
I also tried using System.Management.ManagementScope and System.Management.ObjectQuery and again, they only report that I have 2 drives, C and D.
But if I go to the command window or windows explorer, I can see all the mapped drives. I can open folders, edit files, etc. on any of the mapped drives. I can even copy files back and forth. But VB.NET does not think they exist.
All the docs I have read say that both of these approaches should recognize mapped drives.
As I said, I have to believe that this is just a matter of correcting some setting in VS.NET. But I can't find any documentation in help, on forums, etc. that will tell me which one. Do you know?
Thanks,
Fletcher