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