Home » Computers » How to use the Command Prompt on a windows machine

How to use the Command Prompt on a windows machine


So you’re wondering how to use the command prompt.

Command prompt or CMD has been a part of the windows system since Microsoft launched their first operating system back in 1985.

Let’s get started.

Open up notepad
- Start / all programs / accessories / then select notepad

Type this into notepad

command.com

Then select file / save as / in the file name you can type any name you like as long as you use the extension .bat

for example: youfilename.bat

Finish off by selecting: Save as type: to all files.

Now make sure you save this file to your desktop.

Command prompt

Go to your desktop and you will see a new icon, this new icon you have created is known as a batch file.

Double click your left mouse button, by selecting this batch file.

You should see a command prompt window appear like the one below:

You can also open command prompt by going to this location:
- Start / all programs / accessories/ command prompt

Note: on windows vista, windows 7 & windows 8, you will need to run Command prompt as an administrator, to do this, right click on the command prompt icon and select run as administrator.

Or you can select

Start / run

A pop up box appears type in this box cmd and click ok.

Here are a few commands to get you going

How to clear the screen

cls

If you would like to edit a file on your PC system in dos.

edit

How to find a solution in relation to any command.

help

Displays all files and folders in the current directory.

dir

Displays the contents a page at a time.

dir /p

Displays the files/folders in multiple rows.

dir /w

Displays all files with the extension JPG in the current directory and all subdirectories.

dir *.jpg

Lists the contents of all subdirectories.

dir /s

Displays all hidden files.

dir /ah

Create a new directory.

md

Exit your command prompt.

exit

Then press the enter key on your keyboard.

 

by Keith Griffiths

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Print Friendly
Be Sociable, Share!
Keith Griffiths

Keith Griffiths

"I am just a man expressing my opinions in a world of illusionary concepts, thoughts, emotions and ideas." Hi I’m Keith; as you have guessed I am taking my time writing about things that interest me, 'as I read so much'. Hope you like my article, please share or comment using the form below.

More Posts - Website - Twitter - Facebook - Google Plus

Leave a Reply

You must be Logged in to post comment.

Copyright © 2013 · · All Rights Reserved · Posts
Focusing on: Business, Networks, Online Security, Technology, & much more.