Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Don't stop macro if EXE not found on Run command
#1
Hi,

I am trying to skip an error generated when a EXE doesn't exist. It seems like the ;err does not handle this kind of exception.
In my macro I'm actually using a variable I stored to call the EXE, but I can trigger the issue simply by trying to open a non-existing EXE, like:

run "C:\test\testing.exe"; err

It throws a Windows error "Cannot find "C:\test\testing.exe".."

The help for the function "err" says it should handle OS errors, but not fatal errors. I thought "cannot find the file specified" would be in the OS category.
Am I doing something wrong?
#2
To create code, use dialog "Run program". In it select "Don't show error message box".
Or add flag 0x100.
#3
Oh, that, combined with the Err function has worked perfectly!!!

Thank you so much.


Forum Jump:


Users browsing this thread: 1 Guest(s)