NEW ARTICLES
Home > Coding > Useful Windows DOS commands you should know – Part 1
Useful Windows DOS commands you should know – Part 1

Useful Windows DOS commands you should know – Part 1

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.

Network Commands

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).

ipconfig all

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 8.8.8.8″ 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 8.8.8.8 -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.

ping google

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.

netstat cmd

 File Commands

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.

cmd file 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.

Tree cmdcmd tree txt

File Search – Want to know exactly where a file is located? just enter “dir DIRECTORY  /s /b | find ‘filename’ ”

File Search cmd

 

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!

View Part 2 Here

Follow Us

About Rutledge Daugette

Founder of TechRaptor with a love of video games (B.S. in Game and Simulation Programming) and technology. Started TechRaptor to create a place where people could come for unbiased and high quality news, reviews, and editorials.