eri Posted April 7, 2010 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..
ericnail Posted April 7, 2010 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.
eri Posted April 7, 2010 Author 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..
somdcomputerguy Posted April 7, 2010 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.
kaotkbliss Posted April 7, 2010 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!
ericnail Posted April 7, 2010 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.
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