Run Two Commands Sequentially

Q

How to run two commands sequentially in a single command line?

✍: FYIcenter.com

A

You can run two commands sequentially in a single command line with the syntax below:

command-1 & command-2

For example, the following command line run the "echo" command twice sequentially:

C:\fyicenter>echo Hello & echo world!
Hello
world!

 

Windows Command Syntax

⇒⇒Windows Batch File Tutorials

2017-12-05, 108👍, 0💬