ChangeFileExt
Delphi has a lot of functions to split a file name into the path component and file name component but to get the file name without the extension seems to be a non trivial task at first.
To extract just the file name without the extension use ChangeFileExt and pass in an empty string as the second parameter. This will remove the extension and return just the file name part.