How to Run Multiple commands in Command Prompt | CMD Tricks


If you want to run two or more commands together and get the result jointly in Command Prompt, then you can use this trick or feature of CMD. This feature allows you to run multiple commands at the same time. You can save some time by running multiple commands you want in Windows Command Prompt.

Read below, how to run multiple commands in CMD.

Running multiple commands in Command Prompt

 1  Open Command Prompt    (Click on 'Start' & search 'cmd' and open cmd/command prompt from the search result or Press 'Windows Key + R' and type 'cmd' into the Run field, then click 'OK' or press 'Enter' to start the 'Command Prompt')


 2  After opening the CMD, to run multiple commands, we have to put or add "&&" between each command.

 3  For example, use some commands like, date /t, ipconfig, time /t. Now, to run these command together put the command as given below-

➛  date /t && ipconfig && time /t


 4  Now press Enter to run the above code, and you will get the results jointly, as shown in below image-


 5  You can run different and more commands at same time in command prompt, just add "&&" between each command.

 6  Use this CMD feature when want to run multiple commands in it.

Post a Comment

0 Comments