Tips and Tricks with Command Prompt in Windows 7/Vista/XP

Posted on April 19, 2013 in Windows Category

In this article we will show you some important tips and tricks on working with Command Prompt in Windows 7/Vista/XP that may help you sometimes with flushing DNS, renewing IP, pinging an IP, creating a directory, navigating through directories, show files in a directory, run check disk tool and many others.

To run the Command Prompt with full privileges in Windows 7/Vista, you can simply go to Start Menu - All Programs - Accessories, right click and Run as Administrator.

Flush DNS and Renew IP

If you changed your DNS recently to your website or you have problems seeing the proper content on any website you can Flush DNS and Renew your IP. All you need is to open Command Prompt as Administrator and use the command below:

ipconfig /flushdns

After doing the flush part, you can renew your IP with the command below:

ipconfig /renew


Working with Files and Folders

With Command Prompt you can navigate through folders and see what files they contain. You can also create and remove a folder/directory.

Use "dir" to see all files and folders from a directory.


To go inside a folder you can use the "cd dirname" command.

To return back or exit from a folder use "cd..". See the screenshot below:


If you have a lot of text on your console, you can simply clear the screen just by typing "cls".

Create and Delete Folders

You can also create and delete folders using commands below:

  • MD folderName - where "md" means Make Directory
  • RD folderName - where "rm" means Remove Directory


Open Windows Services

You can open Windows Apps directly from CMD while you are logged in Windows Interface.

Type "services.msc" to open the Services Window.

Type "msconfig" to open System Configuration Window (Boot Properties, Startup, Services).

Type "calc" to open Windows Calculator.

Few Advanced Commands

Below are some great commands that can be used to check your computer details, processes, scan hard drive for bad sectors.

Check System Information


Show All Running Processes and Remove/Kill a Task Process




Check Disk Utility

If you think your computer is slow or even hard drive is very slow on reading files, you can check anytime for bad sectors with Check Disk Utility. You may be prompted that the scan will run with the next restart.

Related Articles
  1. verry nice post. thanks for sharing.

Hint: Wrap your code syntax (html, css or others) between <pre> and </pre> tags. All comments are moderated.

3 × five =

Subscribe by E-mail

HTML-TUTS is built under the mighty WordPress platform.