We are are aware of the Command prompt which is an interpreter application that runs and executes commands entered and looks like MS DOS in appearance. As we frequently take help of Command prompt, we must know certain tricks that most of the people may not know.

Command Prompt

To open Command prompt you have to press Windows Key + X and select Command Prompt (admin).

Steps showing some tricks on Command Prompt

1.Send a Command output to clipboard

To copy and paste output in clipboard, use the following command ipconfig | clip

ipconfig clip command

2. Open Command prompt from a Folder:

a. Suppose you want to write some command lines to open a folder. You can do it in a very easy manner. Go to the folder. Keep pressing the Shift key and right click in an empty space in the folder. You will get and option in the menu context known as Open Command Window here.Click on it.

Open cmd here

b. You are redirected to the folder command prompt.

My Work

3. Run multiple commands: You can run multiple commands at the same time by writing the commands separated by double ampersands. For eg ipconfig && netstat

Mutliple Commands

4. Viewing command history: To view past commands type the following command doskey /history and press Enter.

Command history

5. Drag and drop files to change the current path: Press Windows+X and select only Command Prompt. As it opens now go to the location where the file or folder or interest is located. now open the command prompt, drag the file, and drop it inside the command prompt and the result will be like the one shown in the image.

Drag and Drop


Happiness is that best therapy. Use it to heal yourself and then others!


Please enter your comment!
Please enter your name here

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