private string ConvertToNetworkPath(string drivePath) { string driveLetter = Directory.GetDirectoryRoot(drivePath); return drivePath.Replace(driveLetter, "//localhost/" + driveLetter.Replace(":\\", "") + "$/"); }