I have a .exe I am trying to launch and pass variables to. I do it by itself it works fine but the kicker is it can be in three different paths on the users HD. If I try all three locations it throws a “Unable to locate program” when it cannot be found.
The end result I am looking for is for Notes to “look” in the three directories without prompting the user with the generic error mentioned above if it cannot be found. I would also like to provide my own error message if possible.
Here is my @formula code, do you see anything wrong here?:
tmp:=“10.10.1.100” ;
@If(@IsError( @Command([Execute]; “C:\Program Files\Funk Software\Proxy Master\Proxy.exe” ; (tmp)) ) ; @Prompt([Ok];“”;“Error finding program 1”) ; “” );
@If(@IsError(@Command([Execute]; “C:\Program Files\Proxy Networks\Proxy Master\Proxy.exe” ; (tmp)) ) ; @Prompt([Ok];“”;“Error finding program 2”) ; “” );
@If(@IsError(@Command([Execute]; “C:\Program Files\Proxy Networks\Proxy Pro Master\Proxy.exe” ; (tmp)) ) ; @Prompt([Ok];“”;“Error finding program 3”) ; “” )