Simple clear advice in plain English

How to use the Command Prompt

Lurking under Windows is the little-known world of the command line. We explain how to use this to fix faults and make your PC much more secure

Security shield illustration
The Bios can be used to make your PC more secure

In the days before Windows, firing up a PC would result in little more than a puzzling C:\> prompt followed by a blinking cursor. This was known as a command prompt (or, sometimes, Dos prompt) and in order to make the computer do anything, the user would have to type instructions from memory or a crib sheet.

Evidently, this method of operating a PC had limited attraction and few people would want to return to the dark days of the Dos prompt.

And yet, surprisingly, the command line is still available in all versions of Windows. Why? The reason is that typed instructions still provide a fast and powerful way of controlling many aspects of Windows, without all the annoying graphical paraphernalia.

As this article will show, it can be a very useful tool for fixing faults and checking, monitoring and even improving security.

Incidentally, we freely admit there is also a little bit of the ‘because it’s there’ spirit in this article: command-line instructions are free tools and, although they are not usually essential, learning the basics can also help to demystify some of the inner workings of Windows.

Before proceeding, two points of order. First, this article is not for novice or nervous PC users (though our instructions will be in plain English, as ever). Second, back up your PC: we cannot be held responsible for any problems that arise from your use of the command line.

The Windows Command Prompt
Before Windows appeared, an operating system called MS-Dos – short for Microsoft Disk Operating System – ruled the PC world. This provided the link between the user and the PC’s hardware and was text-based, requiring only a keyboard for operation.

Technically, MS-Dos uses what’s known as a command-line interface (CLI), while Windows employs a graphical user interface (GUI).

Versions of Windows before XP needed MS-Dos in order to work, because Windows itself could not access the PC’s Bios (essentially a bit of computer code stored in Rom chips inside the PC to get it working to the point where a proper operating system can take over).

Users could choose whether to launch Dos or Windows when the PC started, with most choosing Windows for obvious reasons.

Windows XP introduced a tool called Command Prompt, which exists still in both Vista and Windows 7. It looks a bit like MS-Dos but it’s really just an MS-Dos emulator running inside Windows.

Command Prompt tool in Windows XP

 

Regardless of the technicalities, Command Prompt allows access to some lesser-known tools and settings. Because it dispenses with graphics, Command Prompt is very fast and, in some cases, it can be used to do tasks that are impossible in Windows.

Of course, there are downsides, not least of which is the mysterious nature of many commands. Microsoft publishes a complete list commands, how to use them and their various options (called switches or parameters). Click here for the Windows XP list and here for the Vista/7 version.

 

Reader Comments

   

Add your comment

Please keep comments constructive and free from abuse of any kind and swearing. If you wish to link to a product or service online, please do so in such a way that makes it clear that it is not spam. If you are connected to any such product you should make that clear.

We may use your comments in the magazine. We may edit your comments for clarity or to remove unacceptable material. We will attribute your comments but not share your email address.

We request your email address and record your Internet Address (IP address) in order to block spam from our site. We will never share this information without your permission.

All comments are reviewed by the Computeractive Team before being published. Please bear with the slight delay this causes, you don't need to post more than once.

Click here to read our Privacy Policy

Click here to read our site Terms & Conditions

Related articles

System Configuration Boot screenshot

Why can’t I get at my PC’s Bios?

Mr Wright's problem of not being able to access his PC's Bios is a chicken and egg situation. We suggest several things he can try before having to contact HP

illustrated-image-of-motorway-road-sign

What does my computer's Bios do?

Without a Bios, your PC wouldn’t be able to start. Discover how it works

PC help: Broken Bios?

Replace you motherboard's battery

Content Recommendation

Question & Answer

Q.Why is Windows Backup skipping files?

> Read the answer

Q.Why do my scanned documents display gibberish?

> Read the answer

Q.How can I convert MTS files to edit in Windows Movie...

> Read the answer

Best deals on the web

img

HP Pavilion p6-2480ea (D2L08EA)

£269.95- Buy it now

img

Apple iMac 2.7GHz 8GB 1TB 5400rpm 21.5''

£999.00- Buy it now

img

HP Pavilion p6-2310ea (C3T79EA)

£299.97- Buy it now

Updating your subscription status Loading

Most popular articles

No matching document

Poll

Do you have Windows 8?

Jargon Buster

Computing terms explained in plain English

Bios

Basic Input-Output System. Essential software built into every PC that connects the vital components....

Great shopping deals from Computeractive

Information currently unavailable