Why don't you try AutoIt (
www.hiddensoft.com/AutoIt/)? It's basically really advanced batch programs that you can compile into exe's.
Here is an example of the code you need in AutoIt code:
RunWait, %A_SCRIPTDIR%emuname.exe %1%,%A_SCRIPTDIR%
Let me take this apart for you so you understand it:
- RunWait runs a program and waits until it finishes
- %A_SCRIPTDIR% is the directory of the script, so the EXE has to be put in that directory
- %1% is whatever command/filename you ran through the exe, example: runemu.exe joey.nes will run %A_SCRIPTDIR%emuname.exe
joey.nes, %A_SCRIPTDIR%
- the second ,%A_SCRIPTDIR% specifies the current working directory.
Once you get AutoIt, just copy & paste the code in to notepad, rename the emuname.exe to your emulator, save it as runemu.aut and use Aut2EXE to compile.