Tuesday, 7 February 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

No comments:

Post a Comment