Code: Select all
AppExe := '"AutoHotkeyU64.exe" "NonExistingScript.ahk"'
try
Run AppExe
catch
MsgBox('Can`'t Run "' AppExe '".')
Only thing I can think of is to do a FileExist(scriptfile) before the run command. Any other options?
Code: Select all
AppExe := '"AutoHotkeyU64.exe" "NonExistingScript.ahk"'
try
Run AppExe
catch
MsgBox('Can`'t Run "' AppExe '".')