SyntaxFix
Write A Post
Hire A Developer
Questions
Use Path.GetFileNameWithoutExtension. Path is in System.IO namespace.
Path.GetFileNameWithoutExtension