Get a folder name from a path

Posted by Night Walker on Stack Overflow See other posts from Stack Overflow or by Night Walker
Published on 2010-03-09T09:31:28Z Indexed on 2010/03/09 9:36 UTC
Read the original article Hit count: 190

Filed under:

Hello all

I have some path "c:\server\folderName1\another name\something\another folder\" .

How i can extract from there the last folder name ?

I have tried several things but they didn't work.

I just don't want to search for the last \ and then to take the rest .

Thanks.

© Stack Overflow or respective owner

Related posts about c#