onlineth Posted February 20, 2014 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
Solution Palestinian Posted February 20, 2014 Solution 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
onlineth Posted February 20, 2014 Author Posted February 20, 2014 Thank you so much, this worked for me!! If $CmdLine[0] = 0 Then Exit EndIf :thumbsup: scientia potentia est
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