For paths you could use @"" instead of just quotes which will allow
you to use individual slashes:
exploreTest.Arg uments = @"\\servername\ path\";
Also for most places in windows you can use a forward-slash instead
new StreamReader("c :/temp/test.txt");
Process is one of the exceptions--won't work in the original situation
you specified, but will work most places.
HTH,
Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On 14 Sep 2006 14:04:17 -0700, "Colin Williams"
<co************ **@msn.comwrote :
>Thanks Nicholas
Works great. Im having trouble getting my head round the backslash
usage for paths in C#. I must have tried everthing else but your
solution.
Kind regards
Colin
Nicholas Paldino [.NET/C# MVP] wrote:
>Colin,
It's the Arguments property. It should look like this:
exploreTest.Ar guments = "\\\\servername \\path\\";
Hope this helps.