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.exe

Modify 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.

Re: How Close XBMC using .bat script?

hello angelscry and first thanks for your advance launcher plugin!!
i didn't manage to make the batch file work with dolphin...i'm no coder at all and wonder what i do wrong...i just replace fusion.exe by dolphin.exe but...nothing...i download pss like you told and put it in windows folder...well i don't know what to do!
thanks for your time!

Re: How Close XBMC using .bat script?

I do not really have time actually to test it, but it must be something like this :

For the dolphin-launcher.bat file (to put into the same directory than the dolphin.exe application file) :

pskill -t XBMC.exe
cd C:\Emulators\Dolphin
Dolphin.exe /b /e %1
cd "C:\Program Files (x86)\XBMC\"
start /max XBMC.exe

For your launcher configuration :

<launcher>
    <name>Wii (Doplhin)</name>
    <application>C:\Program Files (x86)\Dolphin\dolphin-launcher.bat</application>
    <args>"%rom%"</args>
    ...

It may works....