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

Posted on April 19, 2013 by Dan Doicaru 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

flush-dns-and-renew-ip-with-command-prompt

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.

dir-command-prompt-file-listing

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:

cd-command-prompt-open-exit-folders

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

md-rd-command-prompt-remove-make-create-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

SYSTEMINFO

Show All Running Processes and Remove/Kill a Task Process

taskLIST

tasklist-command-prompt-show-processes-list

taskKILL

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.

CHKDSK
Rate & Share
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Related Articles
Comments
  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.


4 + 3 =

Search
Subscribe by E-mail

HTML-TUTS is created and maintained by Dan Doicaru.
This website is a rebrand to Extreme Design Studio (extremestudio.ro), built under WordPress platform.