Jump to content
LaunchBox Community Forums

Start App on Launch of Rom/Emu, Kill upon Termination of Rom/Emu

Recommended Posts

Is there a way that when a user selects to start a game you can do both of the below each time:

1. Execute a 2nd application (prior to the game starting)

2. Execute a batch file (or similar) that terminates the name of the 2nd application

More detail:

What I want to avoid is:

ALt+F4 or any other hack that could accidentally terminate the wrong application like Launchbox. It may not be consistent what is at the foreground when executing the command. 

What I want is:
A consistent way to terminate the named executable that I started prior to starting the ROM. For example, if I exit the game can I run a batch file like:
taskkill /IM SampleApp.exe /T /F

I see there's a scripting engine built in to Launchbox, I assume it's intended for this purpose? 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...