Site Navigation

Feb 7, 2012

Combine Multiple Commands on one Line with Windows

Microsoft Logo
Can you combine multiple command one one line with a Windows command prompt? You bet.

Just separate each command with a semicolon (;) and precede the command with two ampersands (&&).

For example, the following line performs three directory listings with one command line:

dir;&&dir /w;&&dir /b
Post a Comment

Favorite Links Feed