Replace \\ with \ in FolderDialogBox.SelectedPath
<p>I am using folderdialogbox in one of my application. When a directory is selected and assigned to another string, I get a value like <code>C:\\test</code></p>

<p>For some of the assignments, I would like the value of <code>c:\test</code>.</p>

<p>I researched on stackoverflow, but did not find any working answer. I tried all kind of replacement, but it does not work.</p>

<p>Any help will be greatly appreciated.</p>

<p>The Codes:</p>

<pre><code>private void label1_Click(object sender, EventArgs e)
    {
       folderBrowserDialog1.ShowNewFolderButton = false;

        if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
        {
            string p = @folderBrowserDialog1.SelectedPath; //=&gt; Selected C:\ACTNT
            //removing @ in front of folderBrowserDialog1 does not change the situation
            strPathName.Text = p; // =&gt; display c:\ACNT
            con = "database = " + p; // =&gt; actual value "database = c:\\ACNT"
            UpdateTableName();
        }
    }
</code></pre>

<p>If I type manually in <code>strPathName</code> as <code>C:\ACNT</code> , the program runs fine.</p>
