UNC path does not work with space

I have a UNC path \\houtester\common\log library\graphicsthat I need to use in my C # program, and obviously this will not be because of this empty space. How can I make this path work?

thank

+3
source share
3 answers

Is this the full way? I suppose you might need the \ prefix of your full path. i.e:

string path = @"\\houtester\common\log library\graphics";

Also make sure that the path is accessible on the computer from which you are trying to connect. Security settings may bother you.

+4
source

Try using the character '@' character before the string @"\\houtester\common\log library\graphics"

+1
source

, UNC .

0

Source: https://habr.com/ru/post/1742983/


All Articles