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!

 

Run Second Command If the First Successful

Pipe STDOUT of Previous Command as STDIN of Next

Windows Command Syntax

⇑⇑ Windows Batch File Tutorials

2021-05-15, 3543🔥, 0💬