Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Lab 1-1 Using the Command Line Copyright © 2006 Heathkit Company, Inc. All Rights Reserved.

Similar presentations


Presentation on theme: "1 Lab 1-1 Using the Command Line Copyright © 2006 Heathkit Company, Inc. All Rights Reserved."— Presentation transcript:

1 1 Lab 1-1 Using the Command Line Copyright © 2006 Heathkit Company, Inc. All Rights Reserved

2 2 Internal Versus External Commands

3 3 Internal Commands Built into the OS. Built into the OS. Already in memory if the OS is loaded. Already in memory if the OS is loaded. Available anytime the computer is displaying a command prompt. Available anytime the computer is displaying a command prompt. Generally, the more frequently used commands. Generally, the more frequently used commands. Examples include: DIR, COPY, PATH, CD, MD, DEL, TIME, DATE. Examples include: DIR, COPY, PATH, CD, MD, DEL, TIME, DATE.

4 4 External Commands Not a part of COMMAND.COM. Not a part of COMMAND.COM. Located in another directory. Located in another directory. Must be loaded into memory as needed by the OS. Must be loaded into memory as needed by the OS. Examples include: FORMAT, DEFRAG, DISKCOPY, MEMMAKER, and SCANDISK. Examples include: FORMAT, DEFRAG, DISKCOPY, MEMMAKER, and SCANDISK.

5 5 Syntax A specific set of rules that you must follow when writing commands. A specific set of rules that you must follow when writing commands. The order in which you arrange the elements of the command. The order in which you arrange the elements of the command. The rules of grammar for the command line. The rules of grammar for the command line.

6 6 Commands have three parts: KeywordParameterSwitch Optional

7 7 Keyword - What action to perform. Parameter - What is acted upon. Switches - How to perform the action.

8 8 Keyword A unique word or set of characters that identifies the action to be performed. A unique word or set of characters that identifies the action to be performed. Some are quite descriptive: FORMAT, COPY, MOVE Some are quite descriptive: FORMAT, COPY, MOVE Others are abbreviated: DEL, DEFRAG, DBLSPACE Others are abbreviated: DEL, DEFRAG, DBLSPACE A few are little more than memory aids: EMM386 and MSCDEX. A few are little more than memory aids: EMM386 and MSCDEX.

9 9 Parameter Additional directions for the command. Additional directions for the command. It may specify a directory or file on which to perform the action. It may specify a directory or file on which to perform the action. It may specify a hardware device. It may specify a hardware device. It may specify a system setting. It may specify a system setting.

10 10 Switches A special type of parameter that enables or disables optional functions of the command. A special type of parameter that enables or disables optional functions of the command. The /P switch with the DIR command displays the directory one screen at a time. The /P switch with the DIR command displays the directory one screen at a time. The /W switch with the DIR command displays the directory in the wide format (five columns wide). The /W switch with the DIR command displays the directory in the wide format (five columns wide).

11 11 Two Common Forms of Commands: KeywordDrive/FilesSwitches Or KeywordSource FilesSwitchesTarget Files

12 12 DEL SALES95.DOC Keyword File

13 13 DEL A:\SALES95.DOC Keyword File

14 14 COPY FILE13.TXT A: Keyword Source Target or Destination

15 15 COPY FILE13.TXT A: Space

16 16 COPY FILE13.TXT A: /V Keyword Source Target or Destination Switch

17 17 Backslash Vs. Forward Slash \ Backslashes are used as separators when specifying directory or file information. \ Backslashes are used as separators when specifying directory or file information. / Forward slashes are used to notify DOS that the next character is a command line switch. / Forward slashes are used to notify DOS that the next character is a command line switch.

18 18 Bad command or file name.

19 19 Getting Help. Type HELP followed by the command you want to know about. Type HELP followed by the command you want to know about. Type the command and then follow it with the switch /?. Type the command and then follow it with the switch /?.


Download ppt "1 Lab 1-1 Using the Command Line Copyright © 2006 Heathkit Company, Inc. All Rights Reserved."

Similar presentations


Ads by Google