20 Useful Windows Command Prompt Tricks You Should Not Know

20 Useful Windows Command Prompt Tricks You Should Not Know

Command Prompt is looked the world of black and white, it is mostly used by the old user to run a command on it. Now GUI (Graphical User Interface) takes place on it. You might be thinking that it is a piece of garbage to use, But if we ask about CMD by the old experienced user they will show you the power of CMD and use the amazing hack and awesome tricks and hacks. There is a lot of commands that can be used by CMD not by GUI. You might also think that it is very complicated to use, but I am telling you that it is not complicated and is very easy to use.

Today in this article I am sharing some amazing and cool CMD Tips and Tricks that you should really want to know.

15 Useful Windows Command Prompt Tricks You Should Not Know

1. Open CMD Window Inside A Directory

Switching one drive to another drive by typing “cd” tiresome to do it. This is a very simple trick to open your CMD to that drive you want, to this.

  • Open your window folder
  • Open your drive that you want to select for cmd. In this I select F drive you can see.
Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know
  • Now click on the address bar it allows you to write type this command only “cmd” and press Enter.
Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know
  • You can see CMD open by selecting drive F:\
Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know

 

2. See Your Wi-Fi Profile Password

If you forgot your wifi password using “netsh wlan show profile” you can see all wifi saved Profiles that are connected with your devices.

how to show wifi password using cmd
how to show wifi password using cmd

Select the wifi profile that you want to find the wifi password. In this case, it finds out the password of “Honor 8 Lite” specially made for this article to do this type this command.

netsh wlan show profile “WIFI name” key=clear

It looks like this

netsh wlan show profile “Honor 8 Lite” key=clear

how to show wifi password using cmd
how to show wifi password using cmd

Also, Read This Article How To Find WiFi Password Using CMD Of Own PC

3. Change the Color of the Command Prompt Window

The CMD has a Default Black Background color and White text color. You can change the color of the text of CMD to this.

  • Open your CMD and Right-click on the title bar of CMD and Select Properties.
How to change the color of cmd (Command Prompt)
How to change the color of cmd (Command Prompt)
  • There will be a separate window that opens, Now “Colors”.
How to change the color of cmd (Command Prompt)
How to change the color of cmd (Command Prompt)
  • At there you can Select the color for the screen text and Screen background, popup text and popup background, and also change the transparency of the CMD window
  • After you’re done choosing the most fitting colors for your personality, Click OK

You can also check the color by typing “help color “to check the color combination that suits you but it will save temporarily not permanently. For permanent conversion apply the method first

How to change the color of cmd (Command Prompt)
How to change the color of cmd (Command Prompt)

 

4. Watch Movie in An ASCII Version Of Star Wars (A New Hope)

By this trick, you can watch a movie of Star Wars A New Hope!

You should have to turn off the service of telnet, and make sure that it is enabled in your window

How to Enable Telnet service

Control Panel > Programs > Programs and Features > Turn Windows features on or off and turn on the Telnet service.

  • When Telnet Service enables then go to Command Prompt and type “telnet” and press Enter there will new dialog box will be open

Now type “o” press and then type “telnet towel.blinkenlights.nl” and hit Enter. The movie (Movie in An ASCII Version Of Star Wars (A New Hope)) will start playing.

How to watch Star war movie on cmd (Command Prompt)
How to watch Star war movie on cmd (Command Prompt)

 

5. Generate Battery Health Report

These tricks help you generate a battery health report which includes status like factory specifications, full battery capacity, and the current capacity, and these are updated with each session. You can easily generate a battery report by using this simple CMD command.

  • Open your Command Prompt as an Administrator or change directory using cd C:\Windows\System32
  • Enter command powercfg/energy
  • The system will take tile 60 seconds to analyze and then generate a report in the form of an HTML documents
how to check the battery status using cmd (Command Prompt)
how to check the battery status using cmd (Command Prompt)

To access the report, you can find the file stored as C:\Windows\system32\energy-report.html

 

6. Copy CMD Output to Clipboard

Maybe you should try or not, that you cannot able to copy commands in Command prompt in simple word to say that you cannot copy on cmd. By this Command you can copy on cmd “| clip“.

For example: In this case, I copy “ipconfig” information on the clipboard, it will write “Ipconfig | clip“.

Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know

You can pass it a text file or any file you want

Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know

 

7. See If Packets or Internet is Working

With this command, you can check the internet is working or other words to say that the data packet is receiving or not to this type “ping www.google.com

how to check the ping using cmd (Command Prompt)
how to check the ping using cmd (Command Prompt)

 

8. Hide Folders using command prompt

If you want to hide the folder on your computer then you should use this command. This is a simple command to hide your folder.  “attrib +h +s +r folder_name” Then enter the name of the folder you want to hide.

How to hide folder using cmd (Command Prompt)
How to hide folder using cmd (Command Prompt)

 

9. Change The Title Of The Command Prompt Window

When you open Command Prompt, for example, you can see in the title bar.

C:WINDOWS\system32\cmd.exe.

You can change the title of CMD by typing. “title Techgrinch”.

Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know

 

10. Find information about your computer

You can find your computer information with its specs name, version, manufacturer, owner, system boot time Ram and much more to this type “ systeminfo ” and press Enter.

How to find system detail using cmd (Command Prompt)
How to find system detail using cmd (Command Prompt)

Also, Read This Article How to Create a Bootable USB Drive Using CMD (Command Prompt)

11. Drag and drop folders to insert a directory path

If you got some trouble typing the path of a specific location then this method will help you. You Can copy-paste the path or simple drag of drop the folder the window automatically insert it

Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know

 

12. Open Windows’ on-screen keyboard

You can open the on-screen keyboard by typing “osk” in command prompt and press Enter.

Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know

 

13. Delete temporary files from your drive

In our Driver there are some of the temporary files on your drive can be deleted which we don’t need, with the following commands

(/q runs the operation without a confirmation prompt notification, /f ignores the read-only attribute and forces deletion for files, /s deletes contents from all sub-folders):

  • Delete temporary user files in Window drive: “ del /q /f /s %temp%\*
  • Delete temporary system files in Window drive (requires admin rights): “ del /s /q C:\Windows\temp\* ”
  • Or run them together: “ del /q /f /s %temp%\* && del /s /q C:\Windows\temp\* ”.
How to delete Temp File using cmd (Command Prompt)
How to delete Temp File using cmd (Command Prompt)

 

14. View Your Computer’s Important Network Detail

By this command, you can see your internet connection information. It Will tell you MAC address Gateway address network devices and much more. To do this type “ ipconfig /all ”.

 

15. See every process running and connected

By this command, you can see the list of processes running on your computer and internet usage software.

For check processor list type “ tasklist 

For check processor list type “ netstat –b

Or you can use them both by typing “ tasklist && netstat –b

Windows Command Prompt Tricks You Should Not Know
Windows Command Prompt Tricks You Should Not Know

 

16. Encrypt Files Using Command Prompt

If you have some private data and want to hide it. Command prompt provides the file encryption functionality that encrypting your sensitive data. Encryption is the best way to prevent your secret data from unauthorized users. this command allows the user to encrypt your sensitive data. And you’re are the only user that can see your files. To do this.

Open your command prompt and then change the directory where you want to encrypt your data.

If you can change your drive user (Drive letter) and the “:” if you want to change the folder only the user “cd” and folder name.

When you reached your destination folder, at there use this command “Cipher /E” and then press the Enter button. When you press the Enter button you will see all starting encrypted in that folder.

Note: “After encryption that will open in your PC only, but other users can not able to view that file, unless that user login with the same user account, So in order the make more secure set password to your account.”

If the user wants to decrypt that repeat that processes the other instruction and user this command “Cipher /D”.

 

17. Change the Prompt Text in Command Prompt

Whenever you open your command prompt it will display your default text which looks boring. Basically, the prompt text reflects your current work directory. You can also customize your prompt text when you change your prompt text it will display the directory where you are or other command execution. If you want to change the prompt text just follow these steps.

First of all, open your command prompt and then type “prompttype your text which you want to set and at the end add “$G” and then hit Enter.

When you hit Enter you will see a prompt text change which you set.

Note: “ “$G” represent “>” symbol there are some other symbol that you can use to check out what are the other symbol use command “help prompt” if you want to change it back to original just use command “prompt” and then hit Enter

 

18. Create a WiFi Hotspot

Some of the users know that you can also create a WiFI hotspot by using the command prompt. By WiFi hotshot, you can share your internet with multiple devices. You don’t have to install any other third-party software. And this command work only which have wifi adapter. To do this just follow this.

Open your command prompt and then type “netsh wlan set hostednetwork mode=allow ssid=HotspotName key=Password”. Replace HotspotName and assign your wifi SSID name which you want and the same for the password. Replace “Password” and assign the password which you want. And then hit the Enter button.

After that type “netsh wlan start hostednetwork” and press Enter.  You will see the wifi hotspot now broadcast through your computer.

Note: “If you want to stop WiFi hotspot then type “netsh wlan stop hostednetwork”.”

 

19. List all Installed Programs

This command generates the list of all installed programs on your computer including windows apps. This command helps those users who decide to uninstall a program by using the command prompt. If you want to generate the list of all program that is installed in your computer just follows these steps.

First of all, launched the command prompt and then type “wmic product get name” and hit the Enter button.

When you press Enter you will see a list of programs that are installed on your PC.

You can also uninstall a program from there. In order to uninstall a program simply type “wmic product where “name like ‘%NAMEOFAPP%’” call uninstall /nointeractive” and then hit Enter. In “NAMEOFAPP” type the name of app which you want to uninstall.

 

20. Command History

Most of the users are aware to get the previous command by using the “Up” and “Down” keys but when you execute many commands it becomes difficult to get the previous command. So command prompt has a track-down command history it will generate the chronological list of the executed commands. For that choose your previous use command by selecting their name. to get the chronological list command line history type “doskey/ history”.

 

That’s all. These are the most commonly used Command prompt commands. if you know any new commands then share with us and also share that article with others.

 

Abdul Moeez

Abdul Moeez is the founder and content writer of TechGrinch. He writes about Technology, Science, Gadgets, Security, Social Media, Social Networks, Android, Computer, Internet, etc. He is an Experienced Blogger, SEO Expert, Developer & Social Media Expert. .

Leave a Reply

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

error: Content is protected !!