How can i get from a directory string only the last subdirectory name and the file name?
<p>I have this line and how can I get only the last subdirectory name and the file name ?</p>

<pre><code>    label13.Text = Path.GetFileName(file1);
</code></pre>

<p>Im getting only the file name: test.avi
If im not using the Path.GetFileName only file1 I will get something like:</p>

<pre><code>http://users/test/test/program/test/test.avi
</code></pre>

<p>What I want to get is the last subdirectory name wich is: test and the file name: test.avi
So in label13 I will see: test/test.avi</p>

<p>How can I do it ?</p>
