Whenever two fundamentally different entities or devices have to interact, a device or procedure called an interface is developed to translate between the languages used by each. An interface which allows humans to interact with a computer system is called a user interface.
When it comes to communicating with a computer, try to remember that English is not its native tongue. Try thinking of the computer as a foreigner who does not speak English very well. A computer may be very competent at processing data, but you will have to adjust to its language limitations. This adjustment is not difficult. It just requires a little ingenuity and patience.
User interfaces come in a few basic types:
All of these interfaces involve rules of syntax, even though some of them are not based on typing command lines. Eventually we will have to type a response to a question (or "prompt") or we will have to type out a detailed specification of something. So we will still have to know some rules of syntax. Even when using the point and click approach to controlling our computers, a user must occasionally revert to the older command line method of control. As large and versatile as it is, even Windows does not provide a menu choice or icon for every possible action that a user might want to perform when operating a computer. For this reason, Windows still provides the user with a character-based command line interpreter. This is a program that runs in a plain black and white window and interprets each individual line of command typed by the user. It looks similar to the illustration below.
C:\Documents and Settings\owner>_
This program is run from the Start button on the taskbar at the bottom of the Windows desktop as follows:
That should open a window similar to the one above. The line in the illustration that reads "C:\Documents and Settings\owner>" might be different, as it is a system prompt message that reports the current working directory. The example above indicates that the current working directory is a storage folder on the C: disk drive. The part that reads "\Documents and Settings\owner>" describes a path through the hierarchy of storage folders, starting with the root or main folder (indicated by the first backwards slash character "\"), then looking in a sub-folder named "Documents and Settings" and finally in a sub-folder named after the current user of the computer, "owner". The ">" character is typically displayed by the command interpreter to indicate where it expects the user to type the next command. The underline character ("_") represents the flashing cursor, indicating where the user's next keystroke will appear.
You can command the interpreter to display a list of its most common command keywords by entering the command: help
You can get help on a specific command by entering the keyword help, followed by the specific keyword you want to know more about. For example, if you wanted help about the mkdir (Make Directory) command, you could type:
help mkdir
In the command prompt window, the dialog would resemble:
C:\Documents and Settings\owner>help mkdir
Creates a directory.
MKDIR [drive:]path
MD [drive:]path
If Command Extensions are enabled MKDIR changes as follows:
MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:
mkdir \a\b\c\d
is the same as:
mkdir \a
chdir \a
mkdir b
chdir b
mkdir c
chdir c
mkdir d
which is what you would have to type if extensions were disabled.The notations used in describing the commands are as follows:
| Notation | Meaning of the notation when seen in a command example |
|---|---|
| UPPER | Words shown in uppercase letters must be typed as shown for the command to work. You may use either upper or lower case. Windows is not normally case sensitive. Some software manuals denote these words in boldface rather than uppercase. |
| lower | Words in lowercase (some manuals use italics instead) identify positions in a command where you are expected to supply necessary information. Example: ERASE file-spec Because the keyword ERASE is shown in uppercase, you must type it to use this command. The parameter "file-spec" in lowercase means that you are expected to substitute your own file specification in that position in the command, rather than to actually type the phrase "file-spec". |
| [ ] | Items shown in brackets are optional, and may be omitted if not desired. Beware that omission of a optional item will result in a default being used. In any case, do NOT type the brackets. Example: DIR [d:] Because the keyword DIR is shown in uppercase, you must type it to use this command. The lowercase "d:" means that you are expected to substitute your own drive letter (such as "d:") in that position in the command. The brackets around the drive letter indicate that you could omit typing it. But if omitted, the current default drive will be used. |
| | | A vertical bar (also known as a "pipe") indicates mutually exclusive choices on a line. It can be thought of as meaning either/or. It indicates that you should choose only one item from a list of items. Example: BREAK [ON|OFF] The notation above means to type either BREAK ON or BREAK OFF, but not BREAK ON|OFF. Because the parameter is in brackets, you could also type just BREAK, and accept the default reaction from this command. |
| ... | An ellipsis indicates that you may repeat an item. Example: PRINT file-specification[ ...] This means that you could provide more than one file specification in this command. |
Be sure to include all punctuation (except the symbols above) exactly as indicated when entering a command.
If the interpreter program is unable to interpret a command or if it encounters a problem reading data because of coding errors or hardware problems, it will usually display an error message indicating the problem. These error messages are not always as clear and descriptive as we might hope because they require valuable storage space to be stored, and thus are kept as brief as possible.
The three most frequently received error messages are:
Bad Command or Filename(type) (action) (device)
Abort, Retry, Ignore, Fail?AInvalid number of parameters| Keyword | Description |
|---|---|
| CD or CHDIR | Displays the name of or changes the current directory. |
| CLS | Clears the screen. |
| COMP or FC | Compares the contents of two files or sets of files. |
| COPY | Copies one or more files to another location. |
| DATE | Displays or sets the date. |
| DEL | Deletes one or more files. |
| DIR | Displays a list of files and subdirectories in a directory. |
| ECHO | Displays messages, or turns command echoing on or off. |
| ERASE | Deletes one or more files. |
| EXIT | Quits the CMD.EXE program (command interpreter). |
| HELP | Provides Help information for Windows commands. |
| LABEL | Creates, changes, or deletes the volume label of a disk. |
| MD or MKDIR | Creates a directory. |
| MORE | Displays output one screen at a time. |
| MOVE | Moves one or more files from one directory to another directory. |
| PATH | Displays or sets a search path for executable files. |
| PAUSE | Suspends processing of a batch file and displays a message. |
| Prints a text file. | |
| PROMPT | Changes the Windows command prompt. |
| RD | Removes a directory. |
| REM | Records comments (remarks) in batch files or CONFIG.SYS. |
| REN or RENAME | Renames a file or files. |
| RMDIR | Removes a directory. |
| TIME | Displays or sets the system time. |
| TREE | Graphically displays the directory structure of a drive or path. |
| TYPE | Displays the contents of a text file. |
| VER | Displays the Windows version. |
| VOL | Displays a disk volume label and serial number. |
| XCOPY | Copies files and directory trees. |
For more information on a specific command, type HELP followed by the keyword or view the [MS-DOS and command line overview ] from [http://www.computerhope.com/].