Returns the file name without its extension from a given file path or file name.
Parameters
fileName: string
The full file path or file name to process.
Returns string
The file name without its extension.
Remarks
This function uses GetFileName to extract the file name from the path,
then removes the extension (as determined by GetFileExtension) and any trailing dot.
Returns the file name without its extension from a given file path or file name.