Jump to content
Sign in to follow this  
anixon

RunErrorsFatal

Recommended Posts

anixon

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..

Share this post


Link to post
Share on other sites
anixon

I was able to solve my problem with the following code

CODE
If Not FileExists($lgeFileName) Then

$message = " Missing File: " & $geMapFile

ErrorDisplayMessage()

Else

$gePImage = $geMapFile

ShellExecute($geMapFile, "", $lgePathName & "\", "open")

EndIf

Cheers

Ant..

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×