1

Closed

Bug in ReplaceDriveLetterWithURL

description

This is the correction:
 
    private string ReplaceDriveLetterWithURL(string ThePath)
    {
        NetworkDriveHelper myNetworkDriveHelper = new NetworkDriveHelper();
        string TheRoot = "";
        string MappedDrive = "";
        string TheFinalString = ThePath;
 
        TheRoot = Path.GetPathRoot(ThePath);
        if ((TheRoot.Length == 3) & (TheRoot.EndsWith(":\\")))
        {
            if (myNetworkDriveHelper.IsNetworkDrive(TheRoot))
            {
                MappedDrive = myNetworkDriveHelper.GetMappedShareName(TheRoot) + "\\";
                TheFinalString = ThePath.Replace(TheRoot, MappedDrive);
            }
        }
 
        return TheFinalString;
    }
Closed Jul 15, 2008 at 9:06 PM by HansH

comments

HansH wrote Jul 15, 2008 at 5:12 PM

Thanks,

I will fix this later today

wrote Jul 15, 2008 at 5:12 PM

wrote Jul 15, 2008 at 9:06 PM

Resolved with changeset 19922.

wrote Feb 13, 2013 at 10:23 PM

wrote May 16, 2013 at 12:00 AM