How to open directory few levels down of original path C#?
<p>I need to open a folder 3 levels down from where application executes (original example I had have some flaws):</p>

<pre><code>        // find the path where the executable resides
        string dbPath = Application.StartupPath;

        // constructing the connection string - double slashes
        string connString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="
            + dbPath + "\\..\\..\\..\\Magazines.accdb; User Id=admin; Password=";
</code></pre>

<p>But this will open:</p>

<pre><code>C:\Documents and Settings\Server\Desktop\Lab 10\Lab 10\Lab 10\bin\Debug\..\..\..\Magazines.accdb
</code></pre>

<p>Original directory from where program starts:</p>

<pre><code>C:\Documents and Settings\Server\Desktop\Lab 10\Lab 10\Lab 10\bin\Debug\
</code></pre>

<p>And I need it to be:</p>

<pre><code>C:\Documents and Settings\Server\Desktop\Lab 10\Lab 10\Magazines.accdb
</code></pre>

<p>What is the proper was of doing this?</p>
