The command prompt is a Windows utility that you can use to give system instructions. It can automate tasks, fix problems, and perform all kinds of functions. We'll show you how to get the most of it, including changing colors, running multiple commands, getting help with each command, and much more.

Enter to open the command prompt cmd Select the best match in the Start menu's search bar. Alternatively, press Windows key + R., Art cmd into the Run utility and press Enter to start the command prompt.

1. How to always open the command prompt as an administrator

You can run the command prompt in standard and administrator modes. Some commands only work in the latter, so in general it makes sense to always use this mode.

To set the command prompt to always open as an administrator from the Start menu:

  1. Art cmd in the search bar of the start menu.

  2. Right click the best match and click Open the file location.
  3. Right click the command prompt Link and click properties.
  4. On the abbreviation Click the tab Advanced.

  5. Check Execute as administrator and click on OK twice.

2. How to quickly access the command prompt from the main user menu

When you press Windows Key + X., start the power user menu. You get quick access to Device Manager, Disk Management and Task Manager.

It can also list Command Prompt, but you might have Windows PowerShell instead.

To customize this so that the command prompt appears in the main user menu:

  1. Press Windows key + I. Open settings.

  2. click personalization > Taskbar.

  3. Slip Replace Command Prompt with Windows PowerShell in the menu when I right-click the Start button or press Windows logo key + X to out.

3. How to open the command prompt via the folder context menu

Sometimes you want to run a prompt string from a specific folder. Instead of doing this manually, you can edit the registry by pressing it shift and Right click Within a folder you will be given the option to Open the command window here.

To apply this change, go to TenForums and download Registry Optimizer.

Related topics: How to change directory using Command Prompt in Windows 10

4. Copy and paste into the command prompt

Press to paste text into the command prompt Ctrl + V., just like in most other applications.

Copying works a little differently. First press Ctrl + M. to switch to marking mode. Left click and drag To highlight the text you want, press Ctrl + C. or Enter to copy it to your clipboard.

Do you think that sounds too cumbersome? Right click In the title bar of the command prompt, click and click properties. Switch to Options Tab, tick Quick edit modeand click on OK. Now you don't have to press anything before you can highlight text.

5. Use the arrow keys for previous commands

If you've entered a previous command that you want to use again, use the above and Low Arrows on your keyboard to switch between them. This is useful when you repeatedly run the same commands or want to correct a mistake in what you just submitted.

You can also press the button Law Arrow key to enter your previous command one character at a time. This can be useful when you need to enter multiple commands with the same opening.

Alternatively, press F7 To see a list of all of your previous inputs, use the above and Low Navigation arrows and Enter select or enter Doskey / story to print it in the command prompt.

6. Drag and drop files into Command Prompt for input

It can be a hassle to write a folder or file path name into the command prompt. You don't have to waste time, however, as there is a much faster way to go.

In File Explorer, navigate to the folder or file you want. Left click and drag it in a command prompt window. This path is then displayed. As simple as that!

Related Topics: A Beginners Guide to Windows Command Prompt

7. How to get help with a command

Is there a command that you can't remember exactly how to use it or what it does? No problem. Just attach it /? about your command, and you will get information about that command, such as: B. What options you can use and some examples. It works for everyone.

For example, if you would like more information about the ipconfig Command, then Enter ipconfig /?. The command won't run so don't worry.

8. Use the tab to auto-complete commands

You can press that tab Button to autocomplete your command. This is useful if you don't know the full name of the command or if you are saving time. For example, you can press Tab to automatically complete the process instead of entering a full file path.

If what it's serving isn't what you need, just keep pressing tab to go through the options. Alternatively, press Shift + Tab reverse through the options.

9. Output to a file or clipboard at the command prompt

If you want to save the output of the command prompt, you can copy it, paste it into a text editor, and then save it. However, there is a faster method all included in Command Prompt.

To do this, enter your command followed by a > and the file you want to output to. For example, to output your ipconfig to a text file in my documents, I would type in the following ipconfig> C: Users Joe Documents myinfo.txt.

You can also output to your clipboard and paste it elsewhere. To do this, enter your command followed by | Clip. For example, ipconfig | Clip.

10. How to cancel a command

When you've sent a command you want to stop, just press Ctrl + C.. This will terminate the command to the point at which it was processed. It won't reverse what has already been done, but it will keep it from going any further.

You will find that many commands are executed before you even have time to press the buttons. However, this is useful for users who do not need to completely exit the Command Prompt.

11. Run multiple commands

If you want to use multiple commands, you don't have to type them one by one and wait for them to complete. Instead, you can use to separate your commands &&.

For example, to print both ipconfig and tree, enter the following ipconfig && tree. You can do this for as many commands as you want. It's not limited to just two.

12. How to customize the appearance of the prompt

The default black and white appearance of the Command Prompt is iconic, but it doesn't hurt to mess things up a little. To customize the look, do the following: Right click In the title bar of the command prompt, click properties.

Start with that font Tab. Here you can change the size and font used. It is recommended that you use a TrueType font (marked with a TT Symbol) for a clearer display.

Go to layout Tab. Here you can change the size and position of the command prompt window. In fact, it's easier to just do it in the window itself: drag the sides of the window to resize it, and drag the title bar to move the window.

Finally, go to the Colours Tab. As you would expect, this is where you can change the color of many prompt items. Use the radio buttons to choose what to recolor, then click a color to set it. Alternatively, you can enter the values ​​for red, green and blue. The opacity The entire command prompt window is adjusted with the slider. Set to 100% if you don't want opacity.

Learn some new commands

Hopefully you've learned something new about how to get the most out of Command Prompt. Regardless of whether you want to work more efficiently, e.g. For example, want to output to a file, or want to run a command automatically, or just have fun, e.g. B. Changing the colors, the prompt can do so much.

15 Windows Command Prompt (CMD) Commands You Must Know

Command Prompt is still a powerful Windows tool. Here are the most useful CMD commands every Windows user needs to know.

Continue reading

About the author

Joe Keeley
(588 articles published)

Born with a keyboard in hand, Joe immediately started writing about technology. He has a BA (Hons) in Business and is now a full-time freelance writer who enjoys making technology easy for everyone.

Posted by Joe Keeley

Subscribe to our newsletter

Sign up for our newsletter to receive tech tips, reviews, free e-books, and exclusive offers!

One more step …!

Please confirm your email address in the email we just sent you.