What command within a notebook will return the file name of that notebook?
You have to add a few extra commands to
NotebookFileName to remove the directory.
Hope this helps.
No need to go through all the machinations of trimming/applying a cascade of functions, simply: