If i have:
C:\\temp\\foo\\bar\\
(NOTE: bar is a directory)
how can i parse out:
bar
Try
System.IO.Path.GetFileName("C:\\temp\\foo\\bar");