Best (Command Prompt) CMD Tricks And Hacks – 2019 (Latest)

Best command prompt cmd tricks and hacks list

We use a computer almost in every field. The laptop is also a combination and hardware and software. The most basic software that is necessary to run a machine is the operating system.

Most people use Microsoft Windows operating system. Windows is instead a powerful GUI based operating system that is easy to operate.

And, we can install different application software’s on windows according to our needs, including MS Office, Adobe reader, music players, games, and notepad.

As we can use notepad for multiple tasks like coding editor, dairy, etc. For more, you can it at notepad tips and tricks.

But average users who have basic knowledge of computers don’t know all the options of windows. Some task in Windows is challenging to like getting IP addresses of a system, resolving the Domain name to IP address, knowing active internet connection, etc.

But in the DOS operating system, with the help of one command, we can do these tasks. DOS is the first command based operating system by Microsoft.

We can easily do any tasks with the help of Dos, but we only need to know about these commands. If you do not know about this command, then this article is for you. Because, in this article, we will provide you with a list of best CMD tricks and tips.

List Of Best CMD Tricks (Command Prompt Hacks).

1. Creating Con Or Non-Deletable Folder With CMD.

In Windows, you can’t create a folder with name con or can not rename a folder to con. It is because it is a variable name used by Windows programming. And, other variable name includes lp1, lpt2, lpt3 up to lpt9, aux.

Due to which windows can not allow you to make a folder with this name. But with the help of the dos command, we can create a folder with such a name. So here how to implement this fantastic cmd trick.

1. Press the Windows button and run CMD as an administrator.

2. Type the command with this syntax “drive name.” Becuase this command allows you to enter the drive in which you want to create a folder. For example, d: and press enter.

3. Now enter the following command.

MD con and press enter.

4. After that, your folder is created in a specified drive.

con folder cmd commandcon folder
Deleting con Folder.

You can not delete such a folder manually by using Windows. To remove this folder, type the following command in the command prompt.

rd con

 

2. Shutdown Computer In Specified Time With CMD.

You can also shut down your computer at a specified time using the command prompt. If you want to shut down your computer, you have to type the following command after two minutes.

shutdown -s -t 120

shut down cmd commandwindows shut down

3. Print Message Before Shut Down.

We can also print some messages before shutting down a computer. Some users can use it as a reminder, which reminds you of a task at the time of shut down.

We can do this by using the following command.

shutdown -s -t 500 -c “My message.”

We can replace my message with our message we want to display.

print message with cmd command

4. Shut Down Computer With Commands.

Best in all other cmd tricks and hacks. You can also shut down your computer by using the command prompt. Then, type the following command in it.

For Shut Down

shutdown -s

For Restarting

shutdown -r

For Logoff

shutdown -l

-s -r -l parameter tells the computer to shut down, restart, log off

5. Assoc CMD Command.

There are many programs installed on our computer. Each program has its file extension. It is difficult to remember each file extension.

If you want to know which file is associated with which program then we can do this by typing the following command

Assoc

This command provides you a list of programs and their related data.

Assoc cmd command

6. Hide A Folder With CMD Command.

We can play some interesting tricks with the command prompt. Hiding a folder is one of them.

By hiding a folder, you can also save your data from other users. You can do this by typing the following command.

attrib +s +h D:ABC

Where ABC is the name of the directory, we want to hide.

hide folder with cmd commandrun hidden folder cmd command

Unhide The Folder.

If we can also unhide the hidden folder using the command prompt. To unhide the folder, you need to type the following command.

attrib -s -h D:ABC

 

7. Net Related Commands.

Net is a cmd tool which is used to see the stat of the network. This command provides information about the active connection.

This command is used to update or view network settings.

It is used to view the services that are started using the following versions of this command

1. net stop server ( the server is currently not running any service).

2. net start server (the server is starting a service).

3. net start (it is used to check the services that are currently running).

4. To connect to shared network devices, use the following command.

net use m:sharedservername (for connecting to share network drives).

net use m:sharedservername/delete (for disconnecting to share network drives).

net cmd command

8. Netstat CMD Command.

Netstat command is an essential tool when you want to know about who is establishing a connection with your computer. The output of this command provides you the information about all active connections and listening ports.

We can view Ethernet statics and resolve connecting host IP address to a fully qualified domain name. Netstat command can be used with the following attributes.

1. -a (display all connection).

2. -n (sorts connection in numerical order).

3. -b (executable display name. that is browser name).

netstat cmd command

9. IP Related CMD Command.

IPconfig is of the most useful command to see the IP address, Default gateway, and subnet mask. This command is related to networking and is most famous for troubleshooting the problems related to TCP/IP.

To view Subnet Mask and IP Address used.

ipconfig

To view TCP/IP related Information use.

ipconfig/all

To view DNS cache use.

ipconfig/displaydns

To delete the local cache of DNS use.

ipconfig/flushdns

ipconfig cmd command

10. Nslookup CMD Command.

When we use the internet, the Domain name server resolves the Domain names to IP addresses, so we do not need to remember the IP addresses.

But in case of troubleshooting, we can instead get the IP address of a particular website using this command.

Hence, the syntax is nslookup google.com

Nslookup CMD Command

11. Get a List Of PC Drivers.

Another amazing in all cmd tricks by using it, we can get a complete list of all drivers installed on your PC along with their details.  Just type “driver query” in the Command Prompt.

Then, tap on Enter to see a list of all drivers installed on your PC along with their details.driver list cmd

12. Command Prompt Color Change.

We have seen Command Prompt with a black screen and white font since forever. Because it is the default theme. What users do not know is that the colors in the command prompt can be easily changed. So here most wanted in all CMD tricks.

To do so, right-click at the top corners of Command Prompt, then select “Properties” from the menu. In the properties, click on the “Colors” tab, and you will find all the options to change the color of both text and background.cmd color change

13. Star Wars IV Trick.

In this nonproductive yet awesome trick, we will tell you how to watch star wars. Well, it won’t be an HD version, but the ASCII coded movie is still delightful.

To view the film, open Command Prompt, then enter this command “telnet towel.blinkenlights.nl” and hit Enter. Make sure you have telnet enabled on your PC. to know more, click here.star wars cmd

14. Create Your Own WiFi Hotspot.

Due to android phones, we are using Wifi hotspots. Therefore, we can create a Wifi hotspot using our laptop or PC with this simple CMD trick.

You can instead use this trick to share your wireless dongle internet connection with other devices.

Enter the following command to enable Wi-Fi Hotspot.

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

Then, to start Hotspot, enter :

netsh wlan start hostednetwork

As well as to stop hotspot, come:

netsh wlan stop hostednetwork

wifi hotspot cmd
Watch YouTube Videos On CMD Tricks

In conclusion, these are some best cmd tricks and hacks. We hope you like them all and find them working. In case you still face any problem or you know cmd tricks which are missing, we know, and we will update it.