Microsoft had completely put down on of its major feature of DOS from their almost all versions of windows, although you can still make use of it using the CMD (Command Prompt).
CMD is the same DOS, integrated onto your OS environment. This allows developers to use any version of windows, as they can use CMD as DOS on the very same environment.
The reason for such a deduction is quite obvious as users don’t much use DOS, as after reaching in the era of complex and well designed interface, who would indulge themselves to those complex text commands and lengthy codes?
But there are some of the commands that you must be aware of. These are the most important and most useful commands as you will use them some day, specifically when hit by a virus attack or your OS got corrupted. In both of the case, some of the major features can’t be accessed using the interfaces that the OS offers. However, DOS allows to have access to them.
You might already know that all files are associated with a program to open it by default. This can be changed too by making the file to open with some other programs, as we do with our media files to play in various players.
ASSOC command will list all of the extensions of files along with their associated applications. You can also change an association, for example, “assoc .png=” will change the file association to some other program entered after the ‘+’ sign.
When some data is deleted from a mechanical hard drive, the file doesn’t really gets deleted of the drive, but, is made inaccessible for the user which can be recovered using a simple recovery tool.
This is where cipher command comes handy. For example you want to wipe out your ‘D’ drive, you’d use commands as “cipher /w:d”. This will delete all the files and overwrite the random files making the data unrecoverable.
Drivers forms the most important part of any system as without a driver for hardware, devices will not be able to work properly. Driverquery can be used to get all the specific information of the drivers installed onto your system along with their diagnostics.
File Compare (FC)
The command compares the text of two files. This command is very useful for programmers and writers, as the smallest variation in the two files can be detected.
Using this command IP address of a machine can be changed. This can be done using “ipconfig/release” followed by “ipconfig/renew”. This will probably renew IP address of your machine, although if you are using a router the IP will remain the local address of the router.
Entering ‘netstat –an” will reveal the currently opened ports of your machine. This command is very useful for detecting a virus infection particularly a Trojan.
Ping command will send some random packet to the destination and wait for the received packets to confirm whether the connection is working or not. To do this type “ping” followed by the IP address of the destination.
Tracert will trace the path of the IP connected to your machine. For this type “tracert” followed by the IP address of the destination. Tracert or Pingpath are considered to be working same.
Powercfg as per name suggest indulges to controlling power schemas using DOS. It has many internal commands as ‘powercfg/hibernation on’ will switch on the hibernation and ‘powercfg/hibernation off’ will consequently switch it off. For a complete report of power statistics ‘powercfg/energy’ is used.
System File Checker (SFC)
You need to have administrator privileges to access this command. Entering “sfc /scannow” will automatically search the whole system for corrupted or deleted system files and will replace them with the original files using cached versions of them.
There are some other commands too such as “recimg” for making recovery image of the system, tasklist, taskkill and many others. These were only some of the most useful command and there are huge amount of the commands which can be used to retrive information easily.
So, keep on experimenting, and you will definitely learn some really good and useful commands that can save you from digital disaster one day.