SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the method Path.GetFileName(yourFileName); (MSDN) to just get the name of the file.
Path.GetFileName(yourFileName);