I know Unix has the following command which can execute multiple commands in a single line, how can I do this in DOS?
command1 ; command2 ; command3 ...
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.
Googling gives me this:
Command A & Command BExecute Command A, then execute Command B (no evaluation of anything)
Command A | Command BExecute Command A, and redirect all its output into the input of Command B
Command A && Command BExecute Command A, evaluate the errorlevel after running and if the exit code (errorlevel) is 0, only then execute Command B
Command A || Command BExecute Command A, evaluate the exit code of this command and if it’s anything but 0, only then execute Command B