eri Posted April 7, 2010 Share Posted April 7, 2010 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 More sharing options...
ericnail Posted April 7, 2010 Share Posted April 7, 2010 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 More sharing options...
eri Posted April 7, 2010 Author Share Posted April 7, 2010 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 More sharing options...
ericnail Posted April 7, 2010 Share Posted April 7, 2010 What are you trying to do? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 7, 2010 Share Posted April 7, 2010 Func Application() If FileExists ("C:\A.exe") Then Run("C:\A.exe") ElseIf FileExists ("C:\B.exe") Then Run("C:\B.exe") ElseIf FileExists ("C:\C.exe") Then Run("C:\C.exe") EndIf EndFunc - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
kaotkbliss Posted April 7, 2010 Share Posted April 7, 2010 Ericnail forgot End in front of the second Select... 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
ericnail Posted April 7, 2010 Share Posted April 7, 2010 Ericnail forgot End in front of the second Select... Oh wow.. I failed 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") EndSelect EndFunc There ya go. This one should work. Link to comment Share on other sites More sharing options...
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