The 8 Most Useful DOS Commands That You Should Memorize
|
| ||||||||
| Compare: | Web Design Calculator | Web Design Cost Guidelines |
Are you an E-Commerce Web Designer? Add a Free Listing
I realize that providing a lesson on DOS commands to MUO readers is sort of like offering to teach a group of martial arts experts how to throw a punch. The thing is, there are quite a few people out there that don’t realize how easy it is to troubleshoot and fix certain computer issues using a few simple key entries. I’m not about to argue that DOS isn’t outdated. However, Windows 7 still features a command prompt window.
We’ve covered a number of current uses for DOS, such as playing DOS games. I also provided some Windows Scripting tips, which is the next generation replacing DOS commands. With that said, there’s still a place for DOS commands. So, for those of you that like the idea of typing in a few commands to avoid the hassle of several mouse clicks, I’m going to review eight of what I consider to be the most essential and helpful DOS commands that are still available in Windows 7.
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.

The response is the installed application that is currently configured to handle that file type. As you can see above, WinRAR is my ZIP file handler, MS Word handles doc files, and Chrome is set up as the default for HTML files.
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.

The command writes the entire directory structure, completed with all folders, into the text file, which you can print out for easy viewing.

The formatting may look a little bit funky, but if you look closely you’ll see that the directories are all there, they just might be prefaced with some weird symbols.
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.

The system will respond by showing the lines from both files where there are differences. This command can become pretty handy when you’re collaborating with people and trying to sync up differences between files that several people are working on.
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.

The system will respond with the directory where the file is stored.
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).

If you’re not sure you have a good network connection, try doing a “ping” to a known IP address or a website. You’ll see it echo back with an IP address if the link is good. If you want to see all network connections currently active from your PC, type “netstat“.

This shows you all network connections from your PC. It may be a good idea to search through these carefully to make sure that there’s no surprises in the form of malware or a virus hijacking your bandwidth.
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“.

If you see any process you want to kill, just type “taskkill” follwoed by the image name.
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.

Windows will check to be sure it is the original. You can also scan all system files like this at once by typing “sfc /scannow”
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.

Setting up the AT commands can be a little tricky, so type “at help” if you need parameter help. In the command above I set up the computer to automatically archive all files in the temp directory to the archive folder. You could do similar jobs to routinely back up important files on your computer to a mapped external drive.
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.
Follow MakeUseOf on Twitter. Includes cool extras.

More articles about: commands, dos, old-school
Similar articles:
Wed, 04 May 2011 21:31:20 GMT
Tags:
Allentown E-Commerce | New York E-Commerce | Colleyville E-Commerce | St Cloud E-Commerce | Flat Rock E-Commerce | Gilbert E-Commerce | Detroit E-Commerce | Air Force Academy E-Commerce | Indianapolis E-Commerce | St Louis E-Commerce |
Need E-commerce Design? Check out our member profiles:
@ebc Inc. creates website designs, website development, Internet Marketing and Graphic design projects for clients. Located around Milwaukee, Wisconsin, and expanding to multinational web production.
Oconomowoc, Wisconsin US
Williams Web Solutions provides web design and redesign, web application development, website and e-mail hosting solutions, offsite backup, dedicated and virtual server hosting, computer repair.
Kingsville, Texas US
TOPSCHEME.COM A WEB DEVELOPMENT COMPANY IN INDIANA,US DESIGNS, DEVELOPS AND MAINTAINS WEBSITE APPLICATION DEVELOPMENT THAT ENABLE ENTERPRISES TO SOLVE COMPLEX AND CRITICAL BUSINESS PROBLEMS
Indianapolis, Indiana US
Experienced web coaching, web consulting, internet marketing, SEO, SEM, and video production services near Savannah, Georgia.
Richmond Hill, Georgia US
Web Solutions Services, LLC is your all in one technology and website design company. Specializing in SEO, Content Management Systems, Intranets/Extranets, consulting services and much more.
New Castle, Delaware US
Creative and Modern Web and Graphic design company. line5 Design focuses on making beautiful websites that you can use. We offer some of the best designs for E-commerce.
Guthrie, Oklahoma USHot Tech Deals – Asus WL-520gU 802.11b/g Wireless Router (DD-WRT and Tomato) $24.99AR & More
Newegg has the Asus WL 520gU 802 11b g Wireless Router with All in One Print Server for a low 24 99
How Publishers Can Embrace Multiple Platforms
Newspapers and magazines continue to face a tough financial outlook due to dwindling readership and
4 Things That Totally Suck About Using Technology In School [Opinion]
I ve read that e books are the future of books and it s not a matter of if they ll surpass print bo
Does Your Tablet Have A Data Connection? [MakeUseOf Poll]
Last week we asked you what your favorite music streaming service is Although we could not include
Share Files & Collaborate With Groups Of People With RRRipple
If you ve been to a family gathering or birthday party you ll notice how everybody seems to bring t
Get Your To-Do List Done In Style With Any.DO For Android
To do lists are not necessarily the most exciting applications ever and the UI for most Android app
3 Websites To Learn How To Play Hockey
For as long as I can remember I have had hockey skates strapped to my feet But it is a complicated
Article Tags
E-commerce Design Articles
Web Apps & Internet (374)
News (291)
Web Apps (129)
Inspiration (128)
Music (119)
iPhone / iPad / iPod (116)
cool web apps (108)
Google Android (101)
Mobile Tips (100)
Announcements (99)
deals (88)
Games & Gaming Tips (84)
Tech Deals (82)
Cool Software Apps (76)
Opinion & Polls (76)
Social Media (66)
iOS (66)
Browser Tips & Tricks (66)
iPhone Apps (59)
Freebies (58)
geeky fun (58)
Photography (58)
iphone (55)
troubleshoot (53)
Google (53)
android (52)
Photoshop (52)
Graphics (51)
facebook (50)
How-To Articles (50)
Friends:
E-Commerce Website Pricing
Web Design Quote
Website Design
Graphic Designers