ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Computers & Software»
  • Operating Systems»
  • Windows

Dos Commands for Windows 7

Updated on June 24, 2015
Dos Commands for Windows 7
Dos Commands for Windows 7 | Source

Windows 7 Dos Commands You must Know

The Command Prompt provides access to dos commands for windows 7.Those dos commands are fairly similar to previous versions of windows DOS (Disk Operation System) commands. The list of DOS commands available in Windows 7 are used to perform network configuration, create batch file and diagnostic tasks. Typing DOS commands on the Command Line prompt is a most professional and quicker way of doing things in Windows 7. Below is a complete list of commonly used commands and their brief description of their uses are given.

DIR – Display a list of files in a directory

Without options the directory command lists the names and sizes of all files stored on a particular drive. For example:

d:\> dir a: - shows directory of drive A
d:\> dir - shows directory of drive D
d:\> dir /w - Lists just the files and directories


IPCONFIG – Displays Windows IP configuration

If you want to know your network configuration like your computer IP address, subnet mask, default gateway, just type ipconfigfrom command prompt. It’s a simple way to troubleshoot your internet connection. It also allows some control overactive TCP/IP connections. For Example:

d:\> ipconfig
d:\> ipconfig/all


HELP – Used to provide help information

To access help command, go to command prompt and type help and then press enter. You also can access help command followed by the parameter. For example:

C:\> help
C:\> help cd – It will display cd command related information.


PING – Check status of your network connection

Ping command followed by the IP address determines whether other party is responding to your handshake request. Another main use of this command is to troubleshoot network card problems. It determines whether the LAN Card is able to send and receive data. Ping is one of the powerful dos commands for windows 7 to solve network related problems. For Example:

C:\> ping
You will see it echo back with an IP address if the link is good.


FORMAT – Formats a disk for use with Windows 7

The format command is a powerful command to format a specified disk partition on a hard drive or a flash disk. To install a new operating system, you can format your local drive first. Although the data appears to be erased it is still possible for third party recovery software to recover your information from a formatted drive. To format a drive, type format command followed by the specified drive. For example:

C:\> Format d:


FIND – Search specified text of your file with filter

This is the most effective search command in windows 7. It will show you file or folder name of a specific text of a file. Moreover, it will display line of a text of a file. For Example:

C:\> dir c:\ /s /b | find “specified text”

DEL – Used to delete files and folders

DEL command is used to delete one or more files. It can’t be used to delete directories. Here is a list of example with different parameters.

C:\> del *.* - delete all files of current directory
C:\> del *.txt – delete al file with the txt extension(you can try other extension).

CHKDSK – Check disk for errors

To fix bad sectors and other errors of your disk we use this command. It is a powerful tool to display file specification and check volume for problems. For example:

C:\> chkdsk – Check C drive for errors.


Launch an Application using DOS command

To run an application from the command prompt, we need to type the application name from command prompt. For example, if we want to launch calculator from the command prompt. We need to type calc using command line.

C:\> calc – Launch calculator
C:\> mspaint – Launch Microsoft Paint

I hope this article was helpful in learning regarding dos commands for windows 7. If you have any questions about this article, don’t forget to leave a comment.


    0 of 8192 characters used
    Post Comment

    • profile image

      John 2 years ago

      Hi smga22,

      If DOS still has your interest perhaps you can help me out. I have download AVG and wanted to get rid of it. I have tried to uninstall the program with Revo uninstaller, but that was not really helpful. I can tell you that AVG is everywhere on my hard disk. But every time I use rmdir I get the message access denied.Of course I can use regedit but that will take months... Most appreciate if you can tell me what to do...

    • smga22 profile image

      smga22 3 years ago from Dhaka, Bangladesh

      Thank you paiarais for your useful comment.

    • paiarais profile image

      Emmanuel Marosi 3 years ago from Bogia

      DOS Commands form the core of the operating system and having a knowledge of them is a plus

    • smga22 profile image

      smga22 4 years ago from Dhaka, Bangladesh

      You are welcome.

    • profile image

      Vishv Deepak. 4 years ago

      Thank you.

    • smga22 profile image

      smga22 4 years ago from Dhaka, Bangladesh

      Yes, DOS commands are still useful for windows user. Thank you Shawn Scarborough for your nice comment.

    • Shawn Scarborough profile image

      Shawn Scarborough 4 years ago from The Lone Star State

      Nice hub. Most people do not realize that you can still use DOS commands in Windows. As a system administrator I find myself using the command line ever day.

    • smga22 profile image

      smga22 4 years ago from Dhaka, Bangladesh

      Thank you Kulraj Gurm, I appreciate your positive comment. My best wishes to you from smga22.

    • Kulraj Gurm profile image

      Kulraj Gurm 4 years ago from British Columbia

      These commands haven't changed for many years and work in all versions of Microsoft operating systems.

    • smga22 profile image

      smga22 5 years ago from Dhaka, Bangladesh

      Undelete command will not work in windows 7. It is Only available in DOS 5.x and 6.x.

    • profile image

      Alice 5 years ago

      Are there no undelete type commands? Found out the hard way that backup did not backup a partition which shared the physical "C" drive.

    • smga22 profile image

      smga22 5 years ago from Dhaka, Bangladesh

      Thank you snowdrops. Thanks for stopping by.

    • snowdrops profile image

      snowdrops 5 years ago from The Second Star to the Right

      Thanks for the helpful info. This will come in handy. Bookmarked your hub!