In today’s computing world, everything is done using a Graphical User Interface (GUI), which is perfectly fine. But there are a few instances when knowing a few simple DOS/Command Prompt commands can be extremely helpful. When a virus keeps you from using task manager, or you need some statistics or information about your PC, you can use command prompt to perform a few simple commands to assist you. Check out these simple Windows DOS commands for Command Prompt that can give you some extra control over your computer.
How do I find my command prompt?
If you don’t know how to find your command prompt, follow these few steps. For a universal solution to get to it, press your “Windows” key (the one with the Windows logo) and “R” key at the same time. When the prompt comes up, enter “cmd” and hit the “Enter” key. You should now have your command prompt window up.
DOS/CMD allows for some of the easiest ways to diagnose and troubleshoot your computer’s network problems.
Ipconfig – If you need some basic network information about your PC, such as and IP Address or gateway, then running an “ipconfig” is the best way to get your computer’s networking information. You can also run an “ipconfig /all” to get additional stats, as well as your PC’s MAC Address (Physical Address).
Ping – If you’re not sure if you have a good connection, or maybe your internet is on the fritz, try a ping. Enter “ping 220.127.116.11″ to ping Google and look at the stats that come up. If you get a lot of “request timed out” responses, or pings that say time = 100 or above, you should probably contact your Internet Service Provider to see if something is wrong with your connection. NOTE: You can type “ping 18.104.22.168 -t” to do a persistent ping that will allow you to check your connection for as long as you want, and you can also enter the IP Address of a printer or other device to see if it is connected to your network.
Netstat -One more tool you can use is “netstat” which brings up all incoming and outgoing connection to your PC by their IP Address and port. If you think you might have something running on your PC (such as a virus), netstat is a great way to determine where it’s coming from.
Assoc – Short for association, you can easily change your file associations within your command window. To check you default associations, enter “assoc .EXTENSION” to check file extensions and their program associations.
Tree Structure – Need to diagram out how your files are structured? Enter “tree > ~PATH~” with the path being where you want the directory structure printed to text file.
File Search – Want to know exactly where a file is located? just enter “dir DIRECTORY /s /b | find ‘filename’ ”
There you have it, six of twelve useful DOS/CMD commands you can use for troubleshooting your PC. Check back with us next week for part two of this series!