Shibli Shibli - 1 year ago 108
C# Question

Full path with double backslash (C#)

Is it possible to get a full path with double backslash by using

? Something like this:


instead of this:


Or is there any other method?

Answer Source

Do you mean this?

Path.GetFullPath(path).Replace(@"\", @"\\");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download