CMD Tricks: Best CMD Hacks and Tricks (2017 Edition)

Best CMD Tricks, Tips & Hacks [Command Prompts] – Hey, folks. How are you? First of all, thanks a lot for coming on this blog.

For all of you, I’m again here with another stunning CMD tricks and hacks article for all of you. Command Prompt (CMD) is a most powerful tool in windows, but sadly it is ignored by everyone.

Most people use Microsoft Windows due to its excellent and easy features and also of cheap rates. Commonly people are using Notepad, Word, MS Office Applications, and playing games but people are avoiding to use Command tool.

CMD Tricks

Some of the tasks you can’t do without the CMD prompts like; getting the IP address of a system, resolving the Domain name to the IP address, and knowing any active internet connection.

But if you know some commands and have sufficient knowledge about the DOS operating system, then you can do multiple tasks using command prompts.

If you want to learn and know about these fantastic command prompts (CMD Tips & Tricks), then read complete article. 🙂

CMD Tricks

These all commands will work in Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista, Windows XP, and all previous versions as well.

1. Shut Down Computer with Command

This one is my favorite and best Command trick. Yes! You can shut down your PC by Command prompt. Follow below steps and after that type following command prompt.

  1. Click on the start button (Press Windows button) and run CMD as administrator.
  2. Now paste your choice of Command Prompt in the DOS. 🙂

For Shut Down

shutdown -s

For Restart

shutdown -r

For Logoff

shutdown -l

Here in these commands -s, -r, and -l tells your computer to shut down, restart or log off. 🙂

2. Shut Down Computer in a Specified Time by Command

Just like as above one you can also shut down your PC but on the given time. This one is best than above trick. If you want to shutdown your PC after 1 minute, then type below command. 🙂

shutdown -s -t 60

Here 60 is 60 seconds means 1 minute. Just like that, If you want to shut down your computer after 2 minutes, then you’ve to replace 60 with 120.

3. Print Message Before Shut Down Using CMD

cmd tricks shutdown message

The user can also print messages before shut dow a computer/PC. You can use it as a reminder which reminds you to work to do at the time of shutting down. You can do this task by typing below command in DOS.

shutdown -s -t 500 -c “Your Message.”

You can replace “Your Message” text which message you want to display at the time of shutting down.

4. Making The Folders that You Can’t Delete (CMD Tricks)

CON Folder CMD Tricks

Do your know? You can’t create a folder with the name of CON or can’t rename a folder to CON name because this is a variable name used by Windows but, by using the command prompt, you can perform this task in your Windows PC/Desktops quickly. Other Variable names in Windows are lp1, lp2, lp3…up to lp9, and aux. So here how you can use this amazing CMD tricks.

  1. Click on Start (Press Windows button) and run CMD as administrator.
  2. Now type the command with the syntax of “drive name:” without quotes. This command will assist you in creating a folder in which drive you to want. For example; D: and press the enter button.
  3. Now type “md con” (without quotes) and press enter button.
  4. Now check the drive in which you had to apply this CMD trick, and you can find this folder there. 🙂

5. Check If Your Neighbour Stealing your Wi-Fi Connection (Cmd Prompt)

Just like as creating such folders you can’t delete them in windows explorer. So to remove this type of folders you’ve to follow below steps.

  1. Click on Start (Press Windows button) and run CMD as administrator.
  2. Now type the command with the syntax of “drive name:” without quotes. This command will assist you in deleting a undeletable folder from which drive you to want to remove. For example; D: and press the enter button.
  3. Now type “rd con” (without quotes) and press enter button.
  4. Now check the drive in which you had to apply this CMD trick, and you can’t find this folder there. 🙂

6. Hiding A Specific Folder with Command

You can also play with many other amazing CMD tricks and hide a particular folder is one of them. By hiding, you can protect your data from other users. You can do this by below command (CMD Trick).

  1. Type “attrib +s +h D:XYZ” command without quotes in the DOS. Here D is drive, and XYZ is a name of the directory which is under D drive whom we want to hide, so you’ve to replace it with your desired one.
  2. That’s it. Now check the drive, and you’ll not see the directory which you’ve just hidden using this CMD Trick.

7. Unhiding A Hidden Folder

If you can hide a folder using Command Prompt, then you can also unhide the folder applying CMD Trick Follow below steps carefully.

  1. Type “attrib -s -h D:XYZ” command without quotes in the DOS. Here D is drive, and XYZ is a name of the directory which is under D drive and which you’ve hidden before, so you’ve to replace it with your desired one.
  2. That’s it. Now check the drive, and now you’ll see the hidden directory which you’ve hidden before using this CMD Trick. 🙂

8. Check All PC Drivers List Using CMD

This one is another from my favorite CMD Tricks because by using it you can get a complete list of installed drivers in your PC along with the full information. 🙂 Open CMD as administration and type “driverquery” command without the quotes and hit enter and boom you’ll see the list of all installed drivers in your PC/Computer screen. 🙂

9. Color Changing Command Prompt (CMD Tricks)

Color Changing CMD Tricks

As usual, You have seen the Command Prompt with the black background and white text screen forever due to the default setting, but most of us don’t know that they can change this theme to any other color. Do you also want to change?

To do so, Right click the top corner of command prompt and after that select “Properties” from the Menu Bar.

Now in the Properties tab, Click on “Colors” option, and you will see all the options to change the color of both (Text and Background). 🙂 That’s it.

10. Star Wars IV CMD Trick

Star Wars CMD Tricks

This is non-productive but an amazing CMD Trick. In this trick, I’ll tell you, how to watch star wars. It won’t be in HD version, but the ASCII code movie is also very enjoyable.

To watch the movie, Open Command Prompt, and type “telnet towel.blinkenlights.nl” command and hit the Enter button on your keyboard.

Note: Make sure you’ve enabled telnet on your PC. To know more about it click here.

1.2 Creating HotSpot Connection Using CMD

Do you know? You can create Wifi hotspot connection by Command Prompt trick. You can create wifi hotspot internet connection too easily just by following these Command Prompt Tricks.

Enter the following command to enable Wi-Fi Hotspot;

netsh wlan set hostednetwork mode=allow ssid=Hotspotname key=password

Now again enter this command;

netsh wlan start hostednetwork

To stop Wi-Fi Hotspot enter below command in the DOS.

netsh wlan stop hostednetwork

Nice trick, Right? 🙂

13. Nslookup Command Prompt (CMD Tricks)

This one is for geeks. When we use the Internet, Domain name servers resolve the domain to IP addresses, so we don’t need to remember the property addresses.

But in the case of troubleshooting, we can get the IP address of a particular website by using below CMD Prompt.

nslookup google.com

14. Check If Someone Is Trying To Hack Your PC | Trace A Hacker

Want to know, If someone is trying to hack your computer? This command prompt will help you to find if someone is trying to connect with your PC to steal your personal data.

Just, enter “netstat -a” and the command prompt will return a list of devices that are connected to your computer.

In this result;

Proto Column: – Show you the data transmission taking place (TCP or UDP).
Local Address Column: – Here you’ll see the port with which your computer is connected to an external network address.

Foreign Address Column: – Here you can see the external network you’ve connected to along with the port being used.
State: – Here you’ll see the condition of the connection (Whether a connection is established or waiting for transmission or is timed out).

15. CMD Tricks Related to Net

Net is another powerful CMD tool which is used to see the stat of a network. This command prompt will assist you to provide all the information about active connections. This command is used for update or views the network setting.

Here are Net Command Prompts;

  1. net stop server. (When the server is not running any service.)
  2. net start server. (When the server is starting a service.)
  3. net start. (This command prompt is used to check the active services on your computer.)
  4. To connect with shared network device use below command prompts;
  • net use m:sharedservername – To connect with shared network drives.
  • net use m:sharedservername/delete – To disconnect from the share network drives.

In Conclusion of CMD Tricks

So above I’ve shared “Best CMD Tricks & Hacks,” and I hope most of all my readers will like this post and I hope by these all above CMD Tricks you will impress your friends.

In case you face any problem, let me know by leaving your valuable comment below.

If you know any other CMD Tricks, then Let me know please so that I’ll add them all to the above list. Please don’t share same tricks which we have already shared above in the best CMD Tricks list.  🙂

If you can then please do share this article with your friends and also don’t forget to Subscribe us to get latest updates direct into your mailbox for free.

Thank You!
Stay Blessed & Stay Happy!

No Comments

Add a Comment

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