Jump to content

RunErrorsFatal


anixon
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...