Quote Originally Posted by Shuja Ali View Post
All he needs is the file name to be returned from the full path. How about trying Path.GetFileName() method? Something like this
Code:
string FileName = Path.GetFileName(@"C:\WithCreationFilter_CS\bin\Debug\hello.dll" );
This is the way to go as it also checks for invalid characters and other edge cases.