akhenax Posted September 18, 2013 Posted September 18, 2013 Hello AutoIT Forum. First, I am new here, and new to scripting in AutoIT. I love the language and hope to get better with time. I am having trouble with this statement: Case Else Exit MsgBox(0, "", "Hmm, Sorry, but there is no configuration for this model :-(",5) ShellExecute("C:\Windows\Conf\reboot.lnk") The reboot.lnk is never executed. I have previous case statement where shortcuts are ran just fine, for example: Case "system1" MsgBox(0, "", "Configuring System1",5) ShellExecute("C:\Windows\Conf\Install.lnk") I can run the "reboot.lnk" file just fine manually. Thanks for your help.
Solution MilesAhead Posted September 18, 2013 Solution Posted September 18, 2013 Delete the word "Exit" in the first Else statement. My Freeware Page
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