List of Command Prompt Tricks you might not Know

The best thing about Windows is the GUI, its user interface is so easy to use that nobody wish to use the command prompt for their work. However there are occasions when we want to use the command prompt. We all know the basic commands but here is a list of some command prompt tricks you might not be aware of:

1. Copy output of command to clipboard

There are some commands that we use to view the result and then copy their output like the ipconfig. Well, you don’t need to copy the output manually as you can use the clip command on this command and have the output copied to the system clipboard automatically.

Just add clip with a pipe ( | ) after the command and the command will be copied automatically to the clipboard.

2. See all the commands previously typed at the same time

When you wish to see some of the previous commands used by you then you would use the upper arrow button to surf through them but this may take some time if the command was used way back. Hence you can use the doskey command with the history option to get the list at the same time.

3. Execute multiple cmd commands one after another

If you are sure of the order in which you are going to execute some commands then you don’t need to wait for one command to finish execution and then type another. Just club them with a && operator as shown, and they will execute one after another.

4. Run cmd from a specific folder location

There are several times when we need to type the location of some folder in the command prompt. Instead of typing the location manually you can visit the folder in explorer and have the cmd run from there.

Just press Shift button and then right click on the folder, you will see a new option of opening cmd from there. Clicking this option will open the command prompt from this location.

5. Drag and drop folder to navigate to that location

Also, if you are already working in cmd and now if you need to type some folder location then instead of doing this, you can directly drag and drop the folder onto the cmd and it will take the folder address automatically.

You might know some of these tricks (or all of them) but it is better to share with those who don’t, isn’t it? Well if you know more of these, then you can leave a comment below too. [via]

Leave a Reply