Topic: How Close XBMC using .bat script?
First, to control processes using .bat files, I strongly suggest you to install the PsTools package form Microscoft Tech website : http://technet.microsoft.com/en-us/sysi … s/bb896649
The PsTools suite includes some command-line utilities for listing the processes running on local or remote computers, running processes remotely, rebooting computers, dumping event logs, etc... So, extract the Zip file archive, and copy the files from the obtained PsTools folder directly into your C:\Windows folder.
Create a fusion-launcher.bat file into the same directory as the started application (example : Fusion.exe) like this one:
pskill -t XBMC.exe
cd C:\Emulators\Fusion
Fusion.exe %1
cd "C:\Program Files (x86)\XBMC\"
start /max XBMC.exeModify your Kega fusion launcher configuration to start the fusion-launcher.bat instead of the Fusion.exe application. Here is the corresponding part of the launchers.xml file :
<launcher>
<name>Genesis (Fusion)</name>
<application>C:\Program Files (x86)\Fusion364\fusion-launcher.bat</application>
<args>"%rom%"</args>
...Now every time you will use this launcher it will automatically close XBMC, then start the application. When the application will be closed, XBMC will be restarted and maximized.