We use computer almost in every field. Computer is also combination and hardware and software. Most basic software that is necessary to run a computer is operating system. Mostly people use Microsoft Windows operating system. Windows is rather a powerful GUI based operating system which is easy to operate.

Introduction

Today, we use computer almost in every field. Computer is also combination and hardware and software. Most basic software that is necessary to run a computer is operating system. Mostly people use Microsoft Windows operating system. Windows is rather a powerful GUI based operating system which is easy to operate. We can install different application software’s on windows according to our need including MS office, Adobe reader, music players, games and notepad. As we can use notepad for multiple task like coding editor, dairy and etc for more you need to check all notepad tips and tricks. But an average users who have basic knowledge of computer don’t know all options of windows. Some task in Windows is very difficult like get IP address of a system, resolve Domain name to IP address, know active internet connection etc. But in DOS operating system, with the help one command we can do these task. Dos is the first command based Microsoft operating system. We can do many task in an easy way with the help of Dos but we only need to know about these commands. If you do not know about these command then this article is for you. In this article we provide you a list of best CMD tricks and hacks.

List of Best CMD Tricks

1. Creating Con Or Non Deletable Folder With CMD.

In Windows you can not create a folder with name con or can not rename a folder to con. This is because it is a variable name used by Windows programming. Other variable name includes lp1, lpt2, lpt3 up to lpt9, aux. So Windows can not allow you to make a folder with this name. But with the help of dos command we can create a folder with such name. So here how to implement this amazing cmd trick.
  • Press Windows button and run CMD as administrator.
  • Type the command with this syntax “drive name: “. This command allow you to enter in the drive in which you want to create a folder. For example d: and press enter.
  • Now enter the following command.
md con and press enter.
  • After that your folder is created in specified drive.


Deleting con Folder.
You can not delete such folder manually by using Windows. To delete this folder type the following command in the command prompt.
rd con
Also Read: How To Fix Error 651 in Windows 7/8/10 [8 Methods]

2. Shut Down Computer With Commands.

Best in all other cmd tricks and hacks. You can also shut down your computer by using command prompt. Type the following command in command prompt.
  • For Shut Down
shutdown -s
  • For Restarting
shutdown -r
  • For Logoff
shutdown -l
Note: -s -r -l parameter tells the computer to shut down, restart, log off

3. Shutdown Computer In Specified Time With CMD.

You can also shut down your computer in specified time using command prompt. If you want to shut down your computer after two minutes type the following command.
shutdown -s -t 120


4. Print Message Before Shut Down.

We can also print some message before shut down a computer. Some users can use it as a reminder which remind you 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.

5. Assoc CMD Command.

There are many programs installed in our computer. Each program has its own 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 provide you a list of programs and their associated files.

6. Hide A Folder With CMD Command.

We can play some interesting tricks with 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 directory we want to hide.



Also Read: Windows Repair v3.9.17 Pro Portable is Here!

Unhide The Folder.

If we can also unhide the hidden folder using command prompt. To unhide the folder type the following command.
attrib -s -h D:ABC

7. IP Related CMD Command.

ipconfig is of the most useful command to see the IP address, Defult gateway and subnet mask. This command is related to networking and is most important for troubleshooting the problems related to TCP/IP.
  • To view Subnet Mask and IP Address use.
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

8. Net Related Commands.

Net is a powerful cmd tool which is used to see the stat of network. This command provide information about active connection. This command is used to view or update network settings.

It is used to view only the services that are started using the following versions of this command
  1. net stop server ( when the server is currently not running any service).
  2. net start server (when the server is being starting a service).
  3. net start (This command is used to check the services that are currently running).
  4. For connecting 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).

9. Netstat CMD Command.

Netstat command is an important 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 connection and listening ports. we can view Ethernet statics and resolve connecting host IP address to a fully qualified domain name. You can use the Netstat command with following attributes :
  1. -a (display all connection).
  2. -n (sorts connection in numerical order).
  3. -b (display executable name. that is browser name).

10. Nslookup CMD Command.

When we use internet , Domain name server resolve the Domain names to IP addresses so we do not need to remember the IP addresses. But in case of troubleshooting we can rather get the IP address of particular website using this command.
Hence, the syntax is nslookup google.com

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 “driverquery” in the Command Prompt and press Enter to see list of all drivers installed on your PC along with their details.

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 most users do not know is that colors in 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 “Colors” tab and you will find all the options to change color of both text and background.

13. Star Wars IV Trick.

In this non productive 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 very enjoyable. To watch the movie, 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.

14. Create Your Own WiFi Hotspot.

Due to android phones, we are used to using Wifi hotspots. therefore , we can create a Wifi hotspot using our laptop or PC with this simple CMD trick. You can rather 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, enter :
netsh wlan stop hostednetwork

Watch YouTube Videos On CMD Tricks


Also Read These Stories:

Final Words

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 let us know and we will update it. For more related articles in future please subscribe us now !
Sunmughan Swamy

Sunmughan Swamy

I am a Pro Blogger cum Android Developer. I am desperately passionate about developing Android Apps and Roms for Android Devices. I used to listen music during my work, meanwhile play video games,outdoor sports and much more. I have only 4 passion :-
Design | Code | Compile | Debug

Post A Comment:

0 comments: