Microsoft Windows and Command Prompt are two of your best friends that can assist you in getting the most of your computer. A lot of people misunderstand command prompts to be Command Prompt codes. There’s a long listing of Windows Command Prompt tricks that you can use, learn and impress your friends. For instance, some people may not be aware of what to do to stop an CMD command or view Star Wars in Command Prompt. In this article, we’re going provide you with intriguing Command Prompt tricks.

Windows Command Prompt might look like the black and white world to certain users. However, the more experienced users understand the capabilities that is Command Prompt and use different clever commands and hacks. Therefore, in order to improve you enjoy your Windows Command Prompt experience better in this article, we’re going to share with you some helpful Command Prompt tricks that’ll save the time of clicking.

Don’t forget to browse our complete listing of A to Z Windows CMD commands in your spare time.

Encrypt Files Using Command Prompt

One of the best actions you can perform by using Command Prompt is Command Prompt, is encryption of your data. It is a method to keep others from getting the time to look at your files, and is an essential part of making sure (to some degree at the very minimum) that your files are yours only. With this easy Command Prompt trick, you can quickly encrypt your documents using Your Windows PC.

  • Simply open your Command Prompt, and switch your working directory to the one that contains your files. This can be accomplished by making use of”cd” command. “cd” command.
  • After you’ve finished then enter “Cipher /E” and press Enter. This will make sure that all documents that are in the folder.

Note: If you attempt to open these files the files will open normal for you, but any other user won’t be able to access the files only if they sign in with your account. Also, make sure you’ve got a password in place.

Change the Color of the Command Prompt Window

The Command Prompt window can be boring with its black background and the light gray text. However, Windows lets you alter the colors to match your preferences and make it more exciting.

  • Start CMD and Right-click on the title bar
  • click on “Properties” and in the new window, click on “Colors”>
  • You can select the colors for the text on the screen or background, and for the pop-up background and text, and you can also alter the transparent that appears in the CMD window.
  • After you’ve selected the colors that best fit your character, Click OK

Notice It is important to note that there are plenty of different colors to choose from, and you can browse the entire color palette by pressing “help color”.

Change the Prompt Text in Command Prompt

When you first launch Command Prompt, the default text for the prompt is boring. It is a reflection of that the working directory the user is currently in However, it could be improved. If you’d like the prompt that appears in the cmd window to display something different than the default prompt, you can try this trick.

  • Launch Command Prompt and then type “prompt” followed by the prompt you’d like to type. Be sure to include ” $G” to the endof the prompt so that there is every time you type an “>” sign at the end of the prompt and you’ll know where the command will begin.
  • Press Enter and your cmd prompt change into your custom text.

Be aware that there are additional options similar to “$G” available, and you can browse the entire list by entering “help prompt”. You can also restore the prompt to its initial status by entering “prompt” and hitting Enter.

Change the Title of the Command Prompt Window

If you start Command Prompt, you must be aware it’s title bar displays “Command Prompt”, or possibly “Administrator Command Prompt”, when you launch it using Administrator rights. This is fine however, if there are several cmd windows open and each one is engaged in an entirely different task and you want to change the title, this “Command Prompt” title is not very helpful. It is possible to change this too.

  • In the Command Prompt, start typing “title”, followed by the text you would like the title bar to display.
  • Press Enter, and you’ll be able to see the title on the CMD window transform into the word you typed in.

Notice: the name change from “Command Prompt” once you quit cmd and then relaunch it.

List Every Driver Installed on Your Windows 10 PC

If you’re trying to solve an issue , or simply seeking an overview of all drivers available on Windows 10, there’s a command prompt trick you could employ. Follow the steps below to view which drivers are listed:

  • Enter driverquery /FO list/v in CMD and you’ll be able to see an array of drivers in your display.
  • If you’d like to save this output to the form of a text file to make it easier for review in the future. You can save the driver list in the form of a document:

driverquery > C:\Users\YourUsername\Desktop\driver.txt

F1 to F9 Keys are Shortcuts in CMD

Each of the functions keys you have on your keyboard also serve as shortcut keys for different Command Prompt functions. Here’s what each function keys on your keyboard can do in CMD:

  • F1: Hold or tap this key to type your last command letter, letter by letter.
  • F2: Copy the current command until the specified character.
  • F3: Retypes the whole previous line
  • F4: Auto-deletes current command to a certain character.
  • F5 is similar to F3 however it allows you to go through the previous commands.
  • F6: Type in F6: Enters the EOF indicator to CMD.
  • F7: Shows the list of commands that have been entered previously. commands.
  • F8 The same as F5 However, it does not stop at the end of the command history within the session. Instead, it continues all the way back to the beginning.
  • F9 is used to enter a prior command using a code associated with the line.

Hide Folders with Command Prompt

Although there is a simple method to hide folders on Windows through an option in the property pane for the file, and choosing the checkbox which says “Hidden”, this method isn’t very effective as the folders that are hidden with this method can be easily viewed once the view options are set in the direction of “Show hidden files and folders” which makes it an extremely useless feature. However, similar to how there is a way to hide folders with Terminal for Mac by using this trick in cmd, you are able to cover your folders in as to be completely hidden and Explorer isn’t in a position to display the folders at all. Just follow the steps in the following article:

  • Launch the Command Prompt, and navigate to the directory in which the target folder is.
  • Enter ” Attrib +h +s +r folder_name“, replace”folder_name” with “folder_name” with the name of the folder you would like to hide and then press Enter.
  • It is now possible to verify whether the folder is hidden in Windows Explorer and can not be viewed by anyone else.
  • To de-hide the folder you can execute to execute ” Attrib -h -s -r folder_name“.

NOTE: Hidden folders are accessible with”dir /AH” or the cmd option “dir /AH”.

Copy Command Output to Clipboard

If you’ve ever tried to copy something off of your Command Prompt, you must realize that it’s extremely complicated, and confusing. With this easy technique, you can copy all the commands’ output you’d like directly onto your computer’s clipboard and copy it and paste into any text editor you like.

  • Then, open the Command Prompt and enter the command you wish copying the output of and then ” | clip“. For instance I’m using ” ipconfig | clip“. Press Enter and you’ll see that the cmd console shows no output.
  • Open a text editor like Notepad or Notepad, then hit Control + V then you can just copy and paste what you get from the command into Notepad.

List all Installed Programs

Another awesome feature of Command Prompt is that Command Prompt involves listing out all Windows 10 apps and programs installed on your computer. This is especially useful if you have to uninstall an application through your Command Prompt. To display all installed programs, follow the steps below:

  • Launch Command Prompt, then input ” wmic product get name“.
  • Press Enter, and you’ll be able to see a list of all the programs installed on your computer.

It is also possible to utilize wmic to delete applications by using the cmd prompt. Just enter ” wmic product where “name is “%NAMEOFAPP%'” call uninstall /nointeractive” and press Enter. Naturally, you must substitute “NAMEOFAPP” with the name of the application you wish to remove from your computer.

Open CMD Window Inside a Directory

The method Windows handle changing directories with”cd” “cd” command is quite bizarre. There is an easy way to start Command Prompt windows inside a directory, so that you don’t need to alter directories. This is an extremely useful method, especially when the folders that you would like to access are located deep within the filesystem. To open a cmd windows inside a directory, simply follow these steps:

  • Start the directory using Windows Explorer. Within the address bar enter “cmd”, and press Enter.
  • The command windows will appear within the directory you opened within Windows Explorer.

Generate Battery Health Report

Windows 10 lets you track important statistics related to the health of your battery by keeping details about the battery. This includes information about factory specifications, the battery’s full capacity, and current capacity, and they are refreshed with each session. You can create a report on these statistics using the CMD command. It is executed as follows:

  • The Command Prompt will launch as an Administrator, or alter directory by using C:WindowsSystem32
  • Enter the command powercfg/energy
  • It will require about 60 seconds to process and create a report of HTML document
  • To view the report, visit this link from Windows 10: Windows 10 computer:


As you can see in the laptop’s case the battery’s capacity decreased to 82% from what it was originally shipped with. If you’re looking for a step by step procedure for making sure your battery is healthy in Windows 10, click on the link below to read the entire article.

Hide Sensitive RAR Files in Images

CMD provides a command that allows you to combine or merge two files into one file. This command is useful for merging the contents of simple files like TXT or CSV however, you can make use of CMD to cover up a RAR file or ZIP or other archived file in an image , text file or other. To accomplish this do these steps:

  • Start CMD within the directory that includes both files by with the 10th option in this list. Alternatively, utilize the command cd command to alter the directory
  • Use the command Copy / copy .rar + . . .
  • In our instance we made use of copy/b modules.rar+wave.png test2.png

Be sure to add the RAR file first then the second file, or else you’ll be unable to retrieve the RAR package. The method is also applicable to all file types that are commonly used, such as PDFs and documents in the event that you insert an archive first.

  • This will produce the final file that, in our instance will be test2.png

The PNG file appears as an ordinary image file however, once it is open it using WinRAR or another extraction software it will remove an RAR archive that is hidden beneath an image’s file. This is a method to shield your confidential files from curious relatives or colleagues, or even preventing the misuse of your files in the event of a security breach.

Abort Command Execution

This is among the most effective Command Prompt tricks and everyone should be aware of it. For instance, you wish to execute a certain command, but then happen to accidentally execute another command. If that happens, to end the execution of the command, simply press “Ctrl +C” together and the command is immediately canceled. Isn’t that amazing?

Always Run Command Prompt as Administrator

For those who handle systems files and programs, they are aware that they must always have elevated privileges in order to tweak and alter things. However, on the other the other hand, Command Prompt always defaults to the default account, making it difficult the users gain access to Administrator privileges when they are in the middle of an operation. In order to avoid these situations, you should alter the behavior for the long-term and use Command Prompt with Administrator privilege all the time.

  • Simply search in the search bar for “cmd” in the Start menu, then right-click it. Then, you can open the directory.
  • Copy this Command Prompt shortcut to your desktop.
  • Start on your desktop, then click on the shortcut with the right-click button and then open “Properties”.
  • Here, click Advanced and then enable “Run as administrator”.
  • Then, you can launch CMD via the shortcut on your desktop and it will open using the administrator privilege.

SFC /Scannow

SFC (System File Checker) is a relatively recent enhancement to Command Prompt to keep your computer free of bugs and clean. It’s a useful command-line tool that can assist you in fixing various system issues. Simply run sfc /scannow from the Command Prompt and it will begin examining the integrity of all system files. Additionally, it will repair damaged files whenever feasible. Therefore, in the future when you have any problems be sure to execute this program on your Windows PC.

Find Information About Commands

Sometimes, we execute an operation to accomplish an objective however, we don’t know anything about the process. To learn more about specific commands, you can add? after every command and press enter. The Command Prompt will provide you with an excellent review of its functions and syntax. Let us look at the example for SFC from the previous section, then type the command sfc or /? and press enter. You will be able to find the sub-commands, with examples, and also other commands associated with SFC in the simple language.

Command Line History

Most users are familiar with the ‘UP’ key to go back and forth between commands, but if you’ve completed numerous commands, it becomes tiring exercise. There is also the doskey /history command that allows you to examine all commands executed in a chronological order. But, you aren’t able to select the commands to immediately execute them. You’ll need write it manually which is, in itself not the ideal method. If you’d like to swiftly navigate through all the commands you have used before and be able to instantly execute them, just press the F7 key. You’ll be presented with a separate window in which you can select the command you want to execute immediately. It’s for me one of the top Command Prompt tricks. Be aware that some users have to use”Fn”, while others need to press the “Fn” key along with F7 to initiate this command.

Delete Temp Files to Clear Space

If you’re running out of space and need to eliminate some clutter to make room for new files on your PC could be the most efficient plan of action. Here’s how to eliminate temporary files from your computer and recover a substantial volume of room.

  • Make use of to execute the command del /q/f/s “%temp%”
  • Utilize to execute the following command del /s/q C:Windowstemp* Use the command del /s /q C:Windowstemp*(requires administrator privileges)
  • You can also combine the commands at once by pressing del /q /f “%temp%”and del /s C:Windowstemp*

Play an RPG Game in Command Prompt

Do you enjoy playing role-playing games? If yes, then you must certainly look into Ateraan It is a role-playing game that only uses text that runs in the command prompt on the Windows PC.

  • Enter the command to telnet 4002into CMD and then press enter. This will start the game and allow you to make your own character and begin your journey. GLHF!

Move to Windows Terminal

Although Command Prompt is surely feature-packed and has its own community of users However, just recently Microsoft has announced a command-line universal application to use with Windows 10 called the Windows Terminal. It operates Command Prompt in a tab layout and I’m sure you will be awed by the capability to run multiple commands from one tab. In addition, Microsoft has also integrated Linux Terminal and PowerShell on Windows Terminal. You will be able to be able to use all your command-line applications side-by-side within a single window. It sounds great, doesn’t it? Therefore, my suggestion would be to explore the brand new Windows Terminal and see how you feel about the new changes.