invocation-name

invocation-name is a built-in function in `C source code'.

(invocation-name)

Return the program name that was used to run Emacs.
Any directory names are omitted.