Windows XP DOS Commands And Tricks

Very few of us know some trick of CMD of windows XP i have used many and also known some. So i have created a list of useful Win XP CMD tools that can be used.

Hope it helps you!!!!

ipconfig – Windows IP configuration

Useful for troubleshooting your internet connection. Displays the current IP address of your computer and the DNS server address. If you call your ISP for reporting a bad internet connection, he will probably ask you to run ipconfig.

fc – Free BeyondCompare in XP

FC is an advanced DOS Command that compares two files and displays the differences between them. Though the file comparison results are not as interactive as BeyondCompare or Altova DiffDog, fc is still very useful. You can even set fc to resynchronize the files after finding a mismatch.

type – open text files sans Notepad

Similar to Unix cat command, Type is my favorite DOS command for displaying the contents of a text files without modifying them. When used in combination with more switch, type splits the contents of lengthy text files into multiple pages. Avoid using the type command with binary files or you’ll hear alien PC beeps and see some greek characters on your PC.

ping – Say hello to another computer

Ping network command followed by the web-address or IP address tells you about the health of the connection and whether the other party is responding to your handshake request. Ping tool can also be used to convert the web address to a physical IP address.

tree – visual directory structure

You often need to take prints of your physical directory structure but XP has no simple “visual” commands for printing directory contents. Here, try the Tree DOS command and redirect the output to a text file.

tree > mydirectory.txt

print mydirectory.txt

attrib – make hidden files visible

Attrib lets you change attributes of System files and even hidden files. This is great for troubleshooting Windows XP. Say your XP doesn’t boot ever since you edited that startup boot.ini file (Hidden), use attrib to remove the Hidden attibute and edit the file using EDIT dos command.

assoc – which program will open that .xyz file

The assoc DOS command can be used to either isplay or even modify the file name extension associations. The command assoc .htm will quickly tell you the name of your default web browser (see picture)

move – more flexible than copy-paste

Say you got a lot of XLS and DOC files in you MyDocuments folder and want to move only those XLS files that have their name ending with 2006. In XP Explorer, you have to manually select each file and then cut-paste to another folder. However, the DOS move command make things much simpler. Just type the following at the command prompt:

move *2006.xls c:\2006Reports\


Configures, queries, or changes Boot.ini file settings.


Locates and consolidates fragmented boot files, data files, and folders on local volumes.


Manages disks, partitions, or volumes.


Queries for a list of drivers and driver properties.


Enables an administrator to create a custom event in a specified event log.


Lists the events and event properties from one or more event logs.


Displays and configures event triggers on local or remote machines.


Manages reparse points, managing sparse files, dismounting a volume, or extending a volume.


Obtains the media access control (MAC) address and list of network protocols


Starts Help and Support Center.


Configures Internet Protocol Security (IPSec) policies in the directory service, or in a local or remote registry. Ipseccmd is a command-line version of the IP Security Policies Microsoft Management Console (MMC) snap-in.


Manages and schedules performance counter and event trace log collections on local and remote systems.


Queries, displays, or disconnects open files.


Displays and configures the paging file Virtual Memory settings of a system.


Enables you to open a Performance console configured with settings files from Windows NT 4.0 version of Performance Monitor.


Configures or displays configuration information about a printer.


Adds, deletes, and lists printer drivers from local or remote print servers.


Pauses, resumes, cancels, and lists print jobs.


Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer.


Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration.


Prints a test page, pauses or resumes a printer, and clears a printer queue.


Extracts performance counters from performance counter logs into other formats, such as text-TSV (for tab-delimited text), text-CSV (for comma-delimited text), binary-BIN, or SQL.


Retrieves and sets information about services. Tests and debugs service programs.


Schedules commands and programs to run periodically or at a specific time. Adds and removes tasks from the schedule, starts and stops tasks on demand, and displays and changes scheduled tasks.


Shuts down or restarts a local or remote computer.


Queries the system for basic system configuration information.


Ends one or more tasks or processes.


Displays a list of applications, services, and the Process ID (PID) currently running on either a local or a remote computer.


Processes event trace logs or real-time data from instrumented event trace providers and allows you to generate trace analysis reports and CSV (comma-delimited) files for the events generated.


Writes performance counter data to the command window or to a supported log file format.


Eases the use of Windows Management Insturmentation (WMI) and systems managed through WMI.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s