Home / Tips And Tricks / How to Run Multiple Commands in CMD (2 Methods)

How to Run Multiple Commands in CMD (2 Methods)

In case you have been the use of Home windows 10 for some time, you could know in regards to the Command Instructed. Command Instructed is likely one of the easiest utilities of Home windows 10 that permits you to automate and whole quite a lot of duties.

There are many issues that you’ll be able to do with the command urged. As an example, you’ll be able to make the most of the most productive CMD instructions to accomplish elementary stuff. In a similar fashion, there are occasions after we wish to run a couple of instructions on Command Instructed.

You’ll execute a couple of instructions at the Command urged, however you want to do it manually. What if I let you know that you’ll be able to run a couple of instructions on the similar time in Command Instructed?

2 Very best The way to run More than one Instructions in CMD

Sure, you’ll be able to run two instructions in a single line in Home windows Command Instructed. For that, you want to create a batch script report the use of Notepad. Under, now we have shared the 2 easiest how to run a couple of instructions in CMD on Home windows 10 computer systems. Let’s take a look at.

1. The use of Notepad

This system contains making a batch script to run a couple of instructions. The use of this, you’ll be able to execute your whole instructions separately routinely. For that, we’re going to use the instructions to reset the DNS cache of Home windows 10 –

  • ipconfig /displaydns
  • ipconfig /flushdns
  • ipconfig /liberate
  • ipconfig /renew

Step 1. To start with, open the Notepad in your pc.

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

Step 2. Now input the instructions that you need to execute in one click on. On this instance, we’re the use of the 4 instructions which now we have discussed above.

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

Step three. Subsequent, click on at the report and make a choice the ‘Save as’ choice.

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

Step four. Now save this report with the .bat extension. As an example, DNSreset.bat

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

Step five. If you want to reset the DNS cache, double click on at the batch script report.

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

That’s it! You’re completed. That is how you’ll be able to run a couple of instructions in Command urged.

2. The use of Particular Characters

On this approach, we can use some particular characters in between the instructions to execute them on the similar time. Practice the stairs given underneath.

Step 1. If you wish to run two or extra instructions concurrently, simply insert the “&” between the instructions. As an example – ipconfig /flushdns & ipconfig /renew

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

Step 2. If you wish to execute the second one command after the good fortune of the primary command, then use the “&&” between the instructions. As an example – ipconfig /flushdns && ipconfig /renew

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

Step three. If you wish to run the second one command provided that the primary one has didn’t execute, then input “||” between the instructions. As an example – ipconfig /flushdns || ipconfig /renew

svg%3E - How to Run Multiple Commands in CMD (2 Methods)

That’s it! You’re completed. You’ll use those indicators in between instructions as in step with your want.

So, this newsletter is all about run a couple of instructions in CMD on Home windows 10. I am hoping this newsletter helped you! Please percentage it with your folks additionally. In case you have any doubts associated with this, tell us within the remark field underneath.

About

Check Also

how to download install windows 11 on pc laptop leaked build 310x165 - How to Download & Install Windows 11 On PC/Laptop (Leaked Build)

How to Download & Install Windows 11 On PC/Laptop (Leaked Build)

When Microsoft is set to announce Home windows 11 at its release tournament, the working …

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.