It will manage the termination of the emulator yes. So far I haven't had any probs with it for the emus I have tried (visual boy advance, epsxe, daphne, z26, winuae, mess, gens, nostalgia, fceu, meka, zsnesw), both under 98 and xp. Some of these emus already have the esc key configured, but by default I have cmd expecting to do the job for me. If the emu exits by itself, all well and good, cmd can handle that, and will just kill itself.
If you don't get cmd to do what you believe it should do, let me know, and I will look into it.
As for what you will need in the .ini file to get the wrapper to kill the emu, you should be able to get away with just:
[GENERAL]
RunPathFilename=<insert your emu exe path / filename here>
Quit=1
For everything else, the defaults will suffice. If you want to use something other than escape to exit, then add the following line:
QuitKeycode=<insert decimal keycode here (refer to the file in the zip)>
With regards to where cmd.exe and the corresponding ini's should live, it is incredibly flexible. Some examples are below:
(1) Place cmd.exe and cmd.ini your emu directory (multiple copies of cmd.exe, one per emu), then from your front end you need to run:
<insert the cmd path here>\cmd.exe
or
<insert the cmd path here>\cmd.exe -CMD_INI cmd.ini
By default, cmd.ini is assumed, so the -CMD_INI parameter above, in this instance is not required.
(2) As I have mine configured, place cmd.exe and all your cmd.ini files within the same directory, renaming each .ini as appropriate (single instance of cmd.exe). I have a directory specific for the cmd executable and all my .ini files.
For example, I have:
cmd.exe
2600.ini
genesis.ini
psx.ini
etc, all in a single directory, specific for the wrapper. Then from the front end the command line should be something like:
<insert the cmd path here>\cmd.exe -CMD_INI <insert the .ini filename>
e.g (in my case)
d:\cab\_front_end\cmd\cmd.exe -cmd_ini 2600.ini
or
d:\cab\_front_end\cmd\cmd.exe -cmd_ini genesis.ini
etc.
(3) Place cmd.exe in the same directory as your front end (single instance of cmd.exe), then each of your ini's within the corresponding emu directory.
Then from the front end the command line should be something like:
<insert the cmd path here>\cmd.exe -CMD_INI <insert the .ini path and filename here>
If you need any other help, let me know.
Cheers for now.