Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - How to connect to UNC with special character?

Reply
 
Old 02-05-2009   #1 (permalink)
Dan


 
 

How to connect to UNC with special character?

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.



My System SpecsSystem Spec
Old 02-05-2009   #2 (permalink)
Dan


 
 

Re: How to connect to UNC with special character?

Sorry guys, my fault. I left off a $ off the end of the path. Putting the
$ on the end works.

"Dan" <someone@xxxxxx> wrote in message
news:O9y9yA6hJHA.2384@xxxxxx
Quote:

>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.
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Is it possible to use a special character in a code snippet? .NET General
Special character as admin username - cannot find it from keyboard Vista account administration
Vista Special Character Conversion Vista General
no character map! Vista General
Access files and directories with special character name PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46