Navigating back and forward at once in path C#
<p>I have to come back 5 folders in path then I need to enter 3 folders further and check if file exist.</p>

<p>Lets imagine two paths:</p>

<pre><code>1) C:\a\b\c\d\e\f\g\

2) C:\a\2\3\4\5\test.xml
</code></pre>

<p>Then my program right now is on the first path.
I need to check if file test.xml (on the second path) exists.</p>

<p>For that I know method File.Exists(path), however I have problems with path.
I am able to come back until folder a and check if the file is there.
For example to check if the file on the path exists:</p>

<pre><code>3) C:\a\test2.xml
</code></pre>

<p>I may use:</p>

<pre><code>File.Exists(@".\.\.\.\.\.\" + @"test2.xml");
</code></pre>

<p>But nevertheless my attempts to navigate to second path ( 2) ) and check if this file exists I can not to that. May anyone help me with that ? Thanks in advance. Regards.</p>