Get a folder name from a path
<p>I have some path  <code>c:\server\folderName1\another name\something\another folder\</code> .</p>

<p>How i can extract from there the last folder name ?</p>

<p>I have tried several things but they didn't work.</p>

<p>I just don't want to search for the last <code>\</code> and then to take the rest .</p>

<p>Thanks.</p>
