Here is my little starter:
http://dl.dropbox.com/u/4476281/Runner.zip
Extract it wherever you want and edit the Runner.ini to your needs. Just take a look at the demo entries that I made. The only thing that you need to do afterwards: Call this Runner.exe from Listary.
If no .ini file is found it will create a new one for you (and open it with notepad).
The code from the script (if you want to compile it for yourself to change the icon):
#NoEnv
#NoTrayIcon
#SingleInstance force
; #SETTINGS# ====================================================================================================================
iniFullPath := A_ScriptDir . “\Runner.ini”
; #MAIN PART# ===================================================================================================================
Gosub, _CheckForIniFile
Gosub, _CheckForApplication
Gosub, _StartApplication
ExitApp
; #FUNCTIONS# ===================================================================================================================
_StartApplication:
Run, “%Application%”, %WorkingDir%
Return
_CheckForApplication:
; Check for application
If (FileExist(Application) = “”){
MsgBox, %Application% not found, aborted!
ExitApp
}
Return
_CheckForIniFile:
; Check for .ini file
If FileExist(iniFullPath){
IniRead, Application, %iniFullPath%, General, Application, NotFound
If (Application = “NotFound”){
MsgBox, Key: “Application” not found, check your %iniFullPath%!
ExitApp
}
IniRead, WorkingDir, %iniFullPath%, General, WorkingDir, NotFound
If (WorkingDir = “NotFound”){
MsgBox, Key: “WorkingDir” not found, check your %iniFullPath%!
ExitApp
}
} Else {
MsgBox, %iniFullPath% not found, will be creating a default one now…
IniWrite, <filename>.exe, %iniFullPath%, General, Application
IniWrite, , %iniFullPath%, General, WorkingDir
Run, “%A_WinDir%\system32\notepad.exe” "%iniFullPath%"
ExitApp
}
Return