A. Simple. All you do is separate each command with the ampersand (&) symbol.

For example:

copy file1.txt file2.txt & del file1.txt

copies file1.txt to file2.txt and then deletes file1.txt – fairly useless but it does show how the ampersand works. Note that the second command only runs after the first one is complete.

But if you’re looking for a simple way to run multiple commands on the Windows command-line, this is it.

Similar Posts: