Open In App

Command Prompt Hacks for Windows

Last Updated : 27 Aug, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

The Command Prompt in Windows is a powerful tool that allows users to perform a wide range of tasks, from basic file management to advanced system commands. However, many users are unaware of the numerous Command Prompt hacks for Windows that can enhance productivity and simplify complex tasks. In this guide, we'll explore some of the best CMD hacks for Windows, uncovering hidden features and useful tips that can make your experience with the command line more efficient and enjoyable.

Command Prompt Hacks for Windows

Talking about the command prompt, let's check out some interesting Tricks you can do in the Command prompt. 

1. Encrypting the Files Using CMD

 It is the most useful command to encrypt or decrypt the folders or files without using any third-party apps 

  • Search for CMD in Windows search (windows key + S).
  • And open CMD. Just type " Cipher /E" and then hit enter this will encrypt all the files in the current directory. 
  • To decrypt type "Cipher /D".

2. Customizing the CMD

  • Open CMD then Right click on the Title bar and click on Properties
  • Then choose the Colors select Screen Text select any color  
  • Then click on OK.

3. Change the Font Style

  • Open CMD then right-click on the title bar. 
  • Choose the Fonts there you can select any of the font styles.

4. Change the Prompt Text in CMD

  • Launch CMD  then type "Prompt "+<Text you wanna See>  hit enter.

5. Change the Title of CMD

  • Launch CMD type Title +<name you wanna see there > then hit enter.        

6. Watch StarWars in CMD

  • First, make sure that you have enabled Telnet Client.
  • Search for Turn Windows Features On or Off in windows search.
  • Click OK.
  • Launch Command Prompt, and type “telnet towel.blinkenlights.nl”, and hit Enter.
  • To get out of it click ctrl+c

7. Check the PC Battery Details in CMD

  • Launch CMD make sure runs as Admin in case it doesn't work.
  • The command is Powercgf battery report.
  • This generates your pc battery report in the form of an HTML file.
  • To see that just copy-paste the path is shown and hit enter in CMD. 

8. Check Command Prompt History

  • The command is Doskey /history.

 9. Abort a Command in CMD

To undo some action, we use CTRL + Z. But in case of command prompt. You can't undo with CTRL + Z. To stop/abort a command from executing, simple press CTRL + C to stop it. However, this shortcut key can't actions that are undoable example "format" and "chkdsk" commands. For detailed information on how to abort commands in cmd article click here

CTRL + C

or

Ctrl+ Pause/break

10. View Computer's Important Network Information

  • Open CMD as an administrator mode
  • type "ipconfig/all," and press Enter.

This displays crucial network details like IP address, subnet mask, and gateway, helping you troubleshoot and understand your computer's network configuration.

View-Your-Computer's-Important-Network-Information

11. Clear Command Prompt Screen

If you simple want to clear current input command text, Simple press ESC key. To clear the entire screen, don't close and reopen the cmd, instead use “cls” command or "CTRL + L" shortcut key. The result is shown below.

Clear-CMD-Screen-Using-the-cls-command_2

So these are some Command Prompt hacks for Windows. Try out these commands and make your interaction with cmd more fun and joyful!

12. Open CMD as an Administrator Automatically

Step 1: Right-click on empty space on the desktop and select New > Shortcut.

Create-Desktop-Shortcut_1

Step 2: Now type the location of the item, simple type cmd.exe, and click Next.

Run-CMD-automatically_1

Step 3: Provide a name for your shortcut like Command Prompt and click Finish.

Run-CMD-automatically_2

The Task Manager desktop shortcut is created and will appear on your Windows desktop.

Step 4: Now Right-click on the cmd desktop shortcut and select Properties

Run-CMD-automatically_3

Step 5: Now, go to Advance Settings and check the Run as administrator box and click OK.

Run-CMD-automatically_4

Unlock the power of Command Prompt with these hacks for Windows. Learn how to abort, cancel, stop, terminate, interrupt, halt, and end commands efficiently using CMD. Take your Windows experience to the next level with these Command Prompt tricks.

Hence you have successfully created cmd desktop shortcut that automatically open as run as administrator.

Also Read

Conclusion

Mastering these Command Prompt hacks for Windows can greatly improve your command line efficiency, helping you navigate and manage your system with ease. Whether you're a beginner or an advanced user, these CMD tips and tricks will allow you to unlock the full potential of the Windows Command Prompt. Experiment with these hacks and see how they can streamline your workflow and save you time.


Next Article
Practice Tags :

Similar Reads