I want SHIFT + Numpad + to run command line:
"C:\Program Files\foo\bar.exe" -path "F:\something\dir\blah\"
As per
HotKeySet()
andRunWait()
:Global Const $g_sKey = '+{NUMPADADD}', _
$g_sCmd = FileGetShortName("C:\Program Files\foo\bar.exe") & ' -path "F:\something\dir\blah"'
HotKeySet($g_sKey, RunCmd)
While True
Sleep(0)
WEnd
Func RunCmd()
RunWait(@ComSpec & ' /c ' & $g_sCmd)
EndFunc