VS 2005 WinXP
I am writing an application that will connect to a samba share.
However, in my path I am getting an compile error:
unrecognized escape sequence
The path I am using is this:
string path = "\Sambasun005admin_configest.txt";
I have also tried the following using double backlashes:
string path = "\Samba\sun005\admin_config\test.txt";
However, the above compiles ok, but when it runs it complains "cannot find the path"
Also tried the following:
string path = @"\Sambasun005admin_configest.txt";
When I check in the debugger I get the following string
\Samba\sun005\admin_config\test.txt
I get access denied in my exception. Now that I am thinking about it. I haven't set the username and password. I think that is my problem.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…