Determine a Script's Filename from Within the Script Itself
Determine a script's filename from within the script itself
A small set of functions wrapping up the call stack and command line inspection needed to determine a running script's filename from within the script itself.
Useful links