How do i ensure 2 arguments are passed in a bat file?
I would like to echo a description of the arguments and exit the bat if there are not exactly 2 arguments.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See Note 1 on this page about the need for a dummy when testing for empty strings.
Also I find this is a good reference when writing batch files.