# Is every menu command equivalent to a command that can be executed within a notebook?

If so, is there a directory which gives the in-notebook command associated with each menu command ?

In particular, I would like to know how to replicate the menu command Evaluation -> Quit Kernel -> Local.

It doesn't seem to behave the same way as CloseKernels[], nor as AbortKernels[]. I can demonstrate this if required.

• Exit[]?$\phantom{}$ Jul 25 '16 at 20:19
• To execute front end commands from the kernel have a look at this Jul 25 '16 at 20:24
• – Kuba
Jul 25 '16 at 20:34
• At the end you can investigate MenuSetup.tr where some of tokens can be linked to MenuItems.
– Kuba
Jul 25 '16 at 20:37