anixon Posted September 25, 2007 Posted September 25, 2007 This code does not perform the restart function where the file does not exist or the path is incorrect. Opt("RunErrorsFatal", 1) ShellExecute($File, "", $Path & "\", "open") If @error = 1 Then restart() EndIf How do I trap the error as the documentation does not lead me to a solution Cheers Ant..
anixon Posted September 25, 2007 Author Posted September 25, 2007 I was able to solve my problem with the following code CODEIf Not FileExists($lgeFileName) Then $message = " Missing File: " & $geMapFile ErrorDisplayMessage() Else $gePImage = $geMapFile ShellExecute($geMapFile, "", $lgePathName & "\", "open") EndIf Cheers Ant..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now