The 8 Useful DOS Commands That You Should Memorize
The DOS Prompt Window Is Not Missing!
If you are one of those folks that became convinced the DOS prompt was officially wiped out with Windows 7, all you have to do is click on the Start menu, and in the “Search programs and files” field, just type “cmd” and press enter. Voila – there’s your DOS window.Assoc: Associated Extension
Not sure what default program you have set up to handle ZIP, MP3 or HTML files? A quick and easy way to check for your default file associations is the “assoc” command. Just open a command prompt and type “assoc” followed by the file extension.Tree: View Directory Structure
If you’ve created a virtual spiderweb of files and directories on your computer, it can get pretty confusing to remember where everything is. Sometimes it would be nice to have a diagram showing directories and sub-directories. Using the Tree command, you can do just that.First, navigate to the directory you want to get the file structure of, and then type “tree > myfile.txt“. The text file can be called anything you like.
File Search & Comparison
If you ever have two text files – particularly two very large text files – the file compare (fc) command is all you need to identify and synchronize file differences.The usage is about as easy as it can get. Just type “fc” followed by the names of the two files.
If you only need to find a file on your system, and you know the name of the file, the “find” command is far faster than any point and click operation you can do. Just do a “dir” command to the directory you want to search, and then “|” followed by the name of the file.
Network Commands
I really don’t think there are easier ways available to do network troubleshooting than the sort of tools you get in DOS commands. For example, if you want to know your basic network setup, just do a quick “ipconfig” and you will get details like your computer IP and the default gateway (which is typically your home router IP address).Windows Utilities
Finally, there are a multitude of DOS commands that are invaluable as system troubleshooting tools. For example, to view a list of active processes, just open up a command prompt and type “tasklist“.Nervous about whether a particular system file became corrupted after a recent virus infection? Just type “sfc /VERIFYFILE=” followed by the full path of the file.
Finally, probably one of the most useful DOS commands available – the AT command. With “AT”, you have the ability to schedule tasks to run on a regular routine, all from a simple command prompt.
As you can see, there’s still plenty that you can do with the command prompt. Having these resources at your fingertips can really make it a lot easier to troubleshoot, maintain and repair computer systems.
Were any of these commands new to you? Do you know of any other useful DOS tips? Share your insights in the comments section below.
Comments
Money and freedom is the greatest way to change,
may you be rich and continue to help other people.