onlineth Posted February 20, 2014 Share Posted February 20, 2014 Hi, I feel like an idiot because I can't find a way to close my Script. I have an (If) statement and I want the (Then) part of it to close the script completely. How do I do this? Thank you so much for your help and support. scientia potentia est Link to comment Share on other sites More sharing options...
Solution Palestinian Posted February 20, 2014 Solution Share Posted February 20, 2014 #include <MsgBoxConstants.au3> ; Terminates script if no command-line arguments If $CmdLine[0] = 0 Then Exit ; Alternative: If $CmdLine[0] = 0 Then Exit EndIf MsgBox($MB_SYSTEMMODAL, "", "Script has command-line arguments.") onlineth 1 Link to comment Share on other sites More sharing options...
onlineth Posted February 20, 2014 Author Share Posted February 20, 2014 Thank you so much, this worked for me!! If $CmdLine[0] = 0 Then Exit EndIf :thumbsup: scientia potentia est 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