How can you account for network drives in C#? For example, the drive may be \\ServerName\\folder\\ and I may have it mapped to N:\\folder\\ & you may have it mapped to Q:\\folder\\
If I try to write the code as \\ServerName\\folder I get an error that says can not find C:\\ServerName\\folder
NetWork Drives
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Feb 13, 2013, 9:47 AM EST
// either
string path = "\\\\ServerName\\folder\\";
// or
string path = @"\\ServerName\folder\";