How to connect to UNC with special character?

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

I have a requirement to connect to a path such as:

\\server1\root\some_crazy_folder_path


Where the first underscore is a space, and the last two underscores are
ALT255. I have tried the following, based on some samples I've seen on the
web, but it doesn't work:

Dim FileShare As String = "\\server1\root\some crazy & ChrW(&H2663) & folder
& ChrW(&H2663) & path"

msgbox(IO.Directory.Exists(FileShare))

always returns false. Any help on this would be appreciated.
 
Sorry guys, my fault. I left off a $ off the end of the path. Putting the
$ on the end works.
 
Back
Top