Jump to content

Continue to Next script /??


 Share

Recommended Posts

Please Correct My script..

Func Application()
if FileExists ("C:\A.exe") Then
    Run("C:\A.exe") ;<== How To create Scirpt Run A.exe Skip B and C.exe
    Else
        If FileExists ("C:\B.exe") Then
        Run("C:\B.exe")
        Else
            If FileExists ("C:\C.exe") Then
            Run("C:\C.exe")
            Else
            Return ;<===== It`s Will Work Corectly..???
            EndIf
        EndIf
EndIf
EndFunc

is Return Function True.. To call Next script..??

And a.exe is exists then Run a.exe, B and C will be Disable..??

Thank`s..

Link to comment
Share on other sites

Not really sure what you're trying to say, let me know if this works:

Func Application()
Select
    Case FileExists ("C:\A.exe")
        Run("C:\A.exe")
    Case FileExists ("C:\B.exe")
        Run("C:\B.exe")
    Case FileExists ("C:\C.exe")
        Run("C:\C.exe")
Select
EndFunc

Use www.translate.google.com to better explain if that's not right.

Link to comment
Share on other sites

Not really sure what you're trying to say, let me know if this works:

Func Application()
Select
    Case FileExists ("C:\A.exe")
        Run("C:\A.exe")
    Case FileExists ("C:\B.exe")
        Run("C:\B.exe")
    Case FileExists ("C:\C.exe")
        Run("C:\C.exe")
Select
EndFunc

Use www.translate.google.com to better explain if that's not right.

Thank`s Ericnail.. But U`r Script Not Work..
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...