Jump to content
Sign in to follow this  

Using Case Else to start a batch file shortcut .lnk file

Recommended Posts


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)

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)

I can run the "reboot.lnk" file just fine manually.  Thanks for your help.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.