2012-08-26, 23:12
(2012-08-24, 08:06)teeedubb Wrote: Is it possible to launch batch files in windows with RCB? Ive been mucking about trying to get it to work all afternoon with no success. Ive been trying to use the %ROM% variable but instead of launching the batch file I get an error saying %ROM% is not a command.
My config.xml:
Code:<RomCollection id="10" name="SEGA Saturn">
<emulatorCmd>%ROM%</emulatorCmd>
<emulatorParams></emulatorParams>
<romPath>E:\emulation\roms\saturn\*.bat</romPath>
<saveStatePath />
<saveStateParams />
My applaunch.bat:
Code:REM Is XBMC running?
taskkill /f /IM XBMC.exe
REM Wait for the kill
REM sleep
REM Launch app
%*
REM SOMETIMES xbmc starts too fast, and on some hardware if there is still a millisecond of sound being used, XBMC starts witout sound and some emulators say there is a problem with the sound hardware. If so, remove comment:
ping localhost -n 10 > nul
REM Done? Restart XBMC
explorer "C:\Program Files (x86)\XBMC\XBMC.exe"
The error I get:
Code:\Windows\system32>REM Is XBMC running?
\Windows\system32>taskkill /f /IM XBMC.exe
CCESS: The process "XBMC.exe" with PID 3916 has
\Windows\system32>REM Wait for the kill
\Windows\system32>REM sleep
\Windows\system32>REM Launch app
\Windows\system32>"%ROM%"
%ROM%"' is not recognized as an internal or exte
erable program or batch file.
\Windows\system32>REM SOMETIMES xbmc starts too
ere is still a millisecond of sound being used,
e emulators say there is a problem with the soun
t:
\Windows\system32>ping localhost -n 10 1>nul
From googling this seems to be the way to do it...And Im sure this used to work... although my setup has changed recently. This happens in both 1.0.1 and 1.0.5.
Any suggestions on how to get batch files to work with RCB?
Have you tried RoM-Jacket? It includes a batch-file launcher which minimizes and then restores xbmc. Source is included.
http://code.google.com/rom-jacket/