Sign in to follow this  
Followers 0
eri

Continue to Next script /??

7 posts in this topic

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

Share this post


Link to post
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.

Share this post


Link to post
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..

Share this post


Link to post
Share on other sites

What are you trying to do?

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  
Followers 0