10 Cool Command Prompt Tricks for You

With attractive interface, Windows 10 also comes with impressive command line tool. The Command prompt on Windows 10 may not be powerful enough as compared to UNIX terminal. But it allows you to play with Windows using command prompt tricks.

You can perform various tasks quickly using Command prompt as compared to GUI method. For example, you can create a Wi-Fi hotspot using the command prompt in single command. While if you do it via GUI, it will involve various steps.

SEE ALSO: A to Z list of all Windows CMD Commands.

Top 10 Cool CMD Tricks You Should Know

In this tutorial, we are going to show you 10 cool command prompt tricks. You can use these to speed up your work or impress your friends. So, let’s check these cool CMD tricks one by one.

1. Open Command Prompt in a Directory

Opening Command prompt from Start menu and navigating a specific path has always been a time consuming task. Plus it becomes very frustrating if you have to do it multiple times. So, here is the simplest command prompt trick using which you can easily open CMD window right in your working folder.

First of all, browse to the folder where you want to open CMD window. Then, type cmd in address bar of Windows File Explorer and press Enter.

Type Cmd In Address Bar To Open Cmd In Current Folder
Type cmd in Address Bar and press Enter

After you press Enter, Command prompt window will open inside that directory. You can verify the path in prompt text as shown below. Now, you can start working on it.

Cmd tricks to open command prompt in Destination Folder
CMD Window open in Destination Folder

SEE ALSO: How to open Command Prompt in specific Location (Various Methods)?


2. Encrypt Files and Folders using CMD Tricks

Now, let’s talk about privacy. Encrypting files and folders is one of the most common ways to protect your important files from unauthorized access. Windows 10 allows you to encrypt your files easily using CMD commands. We are not sure about the encryption quality that Windows 10 supports, but any level of encryption is better than no encryption at all.

So, to protect your private data from unauthorized access, you can encrypt your data using this command prompt trick. First of all, open command prompt in the folder where you have your important data (you can use first trick explained above). Then, type Cipher /E command in CMD window and press Enter.

Encrypt Files Using Command Prompt tricks
Encrypt Files Using Command Prompt

All your files and folders inside the current working folder will be encrypted. You will also get a notification to backup your encryption key, which we suggest you do.

Now, no one using another account will be able to access your encrypted files. They will need your password to decrypt them before they can access them. These Command prompt tricks are really useful.

SEE ALSO: How to enable End-to-End Encryption on Zoom?


3. Change Command Prompt Text and Background Color

The default black and white colors of the Command prompt might look boring to you. So, in this trick, we are going to show you how you can change CMD text and background colors to your liking.

To get started with the type of colors Windows Command prompt supports, type help color command in CMD window and press Enter. Here you can see the numbers or characters allocated to respective color.

Change Command Prompt Color Help Command
Color command Help

You can now experiment with various color to find which one best suites you. In this tutorial, we are using bright white text color and green background color. So, to change CMD colors, type color followed by the color codes for background and text.

As we decided to have bright white text on green background, the command for us will be color 2f. Press Enter after typing the command and colors will change immediately. This is one of the coolest CMD tricks we used.

Change Command Prompt Text And Background Color using Command Prompt tricks
Change CMD Text and Background Color

4. Change Prompt Text in CMD Window

Continuing with customizations in Command prompt, let’s change the prompt text to something cool. We specially like UNIX prompt text which looks similar to [email protected]>. This is one of the command prompt tricks that you can use to impress your friends.

So, in this CMD trick, we are going to change CMD Prompt text to [email protected]>. We are going to use prompt command to change prompt text. So, the full command for us becomes prompt [email protected]$G. Press Enter and see the magic.

Change Prompt Text In Command Prompt
Change prompt text in CMD window

You might be wondering about $G we added to the command. It stands for greater than symbol which you see after prompt text. You can check full list of available special characters that you can use, simply type help prompt command and press Enter.


5. Change the Title of Command Prompt Window

Let’s check another CMD customization trick. This time let’s change CMD window title to something personalized. Here, we are going to change it to “HELLPC.NET Console” which looks pretty personalized.

To change the CMD title, type title command followed by the new title text for CMD window. So, we are going to use title HELLPC.NET Console command to change CMD title to “HELLPC.NET console“. Press Enter after typing the command and title will change immediately.

CMD tricks to Change the Title Of Command Prompt Window
Change the Title of CMD Window

We hope you are liking these Command Prompt tricks. Keep reading for more.

SEE ALSO: How to make Bootable USB using Command Prompt?


6. Watch Star Wars in Command Prompt

Almost everyone is fan of Star Wars movies. But did you know that you can watch Star Wars movie in Command Prompt in the form of ASCII text? Thanks to Star Wars Asciimation, you can watch Star Wars: A New Hope in command prompt via telnet.

So, just open the command prompt window and type the following command and press Enter.

telnet towel.blinkenlights.nl
Use Telnet Command In Command Prompt
Telnet command for watching Star Wars

Command prompt will connect to telnet server. On successful connection, the ASCII text version of Star Wars will start playing immediately. You will definitely enjoy this text version of Star Wars. This is going to be one of your favorite command prompt tricks.

CMD Tricks to Play Ascii Version Of Star Wars In Command Prompt Window
Watch Star Wars in Command Prompt

NOTE: Make sure that you have enabled Telnet in Windows 10 already to use this trick as telnet is not enabled by default.


7. Create Wi-Fi Hotspot using Command Prompt

Almost everyone has used Wi-Fi hotspot on mobiles to share internet connection with others. Similarly you can use Wi-Fi hotspot in your laptop to share your internet connection with others.

In this trick, we will show you how to create a Wi-Fi hotspot on your Windows 10 PC using command prompt. In the CMD window type following command and press Enter to set up Wi-Fi hotspot.

netsh wlan set hostednetwork mode=allow ssid=HotspotName key=Password

Make sure to replace “HotspotName” with the actual name for your Wi-Fi hotspot. And replace “Password” with the actual password you want to set.

Create Wifi Hotspot Using Command Prompt
Create Wi-Fi Hotspot using Command Prompt

However, Wi-Fi hotspot will not turn on automatically. To turn hotspot ON, use netsh wlan start hostednetwork command and to turn it OFF, type netsh wlan stop hostednetwork command and press Enter.

Activate Wifi Hotspot Using Command Prompt
Activate Wi-Fi Hotspot

Hope you liked this trick. Let’s checkout other command prompt tricks as well.


8. Hide Folders using Command Prompt

You can easily hide folders by checking Hidden box in the Folder’s Properties window. But, have you ever tried hiding folders using command prompt? No, let’s see how you can do it. And the best part of hiding folders using CMD is that, it won’t be visible even after enabling Hidden items from View menu.

First, enable Hidden items from View menu in File Explorer.

Enable Hidden Items In Windows Explorer
Enable Hidden items in File Explorer

Now open command prompt in the parent folder using Trick 1 explained above. Then, type following command in CMD window and press Enter.

attrib +h +s +r folder_name

Don’t forget to replace folder_name with actual folder name.

command prompt tricks to Hide Folders Using Command Prompt
Hide Folders Using Command Prompt

Now, you can see that even after enabling Hidden items in File Explorer’s view menu, folder isn’t visible.

Folder Hidden Successfully Using Command Prompt
Folder Hidden Successfully

Don’t worry about the folder, it’s still there. You can unhide this folder by using following command.

attrib -h -s -r folder_name

Let’s move to the 9th point of our CMD tricks list.

SEE ALSO: How to Create Undeletable, Unsearchable Hidden Folders?


9. Copy Command Output to Clipboard

Copying text from command prompt has never been easy. Specially if command’s output is quite large, e.g. tree command. Luckily, using following CMD trick, you can easily copy any command’s output to clipboard. Then you can paste it anywhere you want.

Open command prompt and enter the command whose output you want to copy. In this example, we are using the ipconfig command. Just add | clip after the command. After you press Enter, you will notice that there is no output. That’s because output got copied to clipboard.

Copy Command Output To Clipboard Using Clip
Copy Command output to Clipboard

Now, open Notepad and press Ctrl + V keyboard shortcut to paste command output in Notepad. Open a text editor like notepad and you can paste the output there.

Paste Copied Command Output To Notepad
Paste Command output to Notepad

10. Get the List of all Installed Programs

You can basically perform any task on Windows using CMD that you can do via GUI. Even you can get the list of installed programs using CMD command. Simply type following command in command prompt window and press Enter.

wmic product get name

After executing above command, you will get the list of all programs installed in your PC.

Get The List Of All Installed Programs
Get the List of all Installed Programs

You can also uninstall programs using the command prompt. You can type command in following format:

wmic product where "name like '%NAMEOFAPP%'" call uninstall /nointeractive

And don’t forget to replace “NAMEOFAPP” with the name of the app that you want to uninstall.

SEE ALSO: How to Uninstall Programs using Command Prompt?


10 Awesome Command Prompt Tricks You Should Know

So, those were 10 cool command prompt tricks we compiled for you. Besides these, you can also try other little tricks like using TAB for auto-completing commands, using the arrow keys to navigate to previous commands. And you can also press F7 to see command history of the current session.

Hope you liked our list of 10 command prompt tricks. These command prompt tricks really might come handy sometimes. Feel free to share them with your friends. Also share your thoughts and suggestions in the comment section down below.

SEE ALSO: A to Z list of Windows CMD commands.

Editorial Staff

Hi there, we are the editorial staff at HELLPC Tutorials. We are a team of funny and technical people. Feel free to get in touch with us via Contact-Us page.

One Comment

  1. Thanks for the tips. I love command prompt tricks that can do awesome stuff. Some of the above tricks I already new, but there was also new tricks for me. I love the Star Wars ASCII text by the way.

Leave a Reply

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

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

Back to top button