home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft_Programmers_Library.7z / MPL / os2 / os2lrn.txt < prev    next >
Encoding:
Text File  |  2013-11-08  |  183.0 KB  |  4,693 lines

  1.  Microsoft Operating System/2: Learning Guide
  2.  
  3.  
  4.  ══════════════════════════════════════════════════════════════════════════
  5.  
  6.  
  7.  Microsoft(R) Operating System/2: Learning Guide
  8.  
  9.  Version 1.1
  10.  
  11.  
  12.  ══════════════════════════════════════════════════════════════════════════
  13.  
  14.  
  15.    Information in this document is subject to change without notice and does
  16.    not represent a commitment on the part of Microsoft Corporation. The
  17.    software and/or databases described in this document are furnished under a
  18.    license agreement or nondisclosure agreement. The software and/or
  19.    databases may be used or copied only in accordance with the terms of the
  20.    agreement. The purchaser may make one copy of the software for backup
  21.    purposes. No part of this manual and/or database may be reproduced or
  22.    transmitted in any form or by any means, electronic or mechanical,
  23.    including photocopying, recording, or information storage and retrieval
  24.    systems, for any purpose other than the purchaser's personal use, without
  25.    the written permission of Microsoft Corporation.
  26.  
  27.    (C) Copyright Microsoft Corporation, 1989. All rights reserved.
  28.    Simultaneously published in the United States and Canada.
  29.  
  30.    Printed in the United States of America.
  31.  
  32.    Microsoft(R), MS(R), MS-DOS(R), and the Microsoft logo are registered
  33.    trademarks of Microsoft Corporation.
  34.  
  35.    Document No. SY0704-110-O00-1288
  36.  
  37.  
  38.  
  39.  ────────────────────────────────────────────────────────────────────────────
  40.  Contents
  41.  
  42.    Welcome
  43.      About This Guide
  44.      Notational Conventions
  45.      Using a Mouse with MS OS/2
  46.      Going On
  47.  
  48.    Chapter 1  Learning Presentation Manager Skills
  49.      Introduction
  50.      The MS OS/2 Presentation Manager Screen
  51.      Exercise 1: Getting Help
  52.        Scrolling the Help Window
  53.        Closing the Help Window
  54.      Exercise 2: Starting an Application
  55.      Exercise 3: Shrinking a Window to an Icon
  56.      Exercise 4: Changing Groups in Start Programs
  57.      Exercise 5: Starting and Shrinking Control Panel
  58.      Exercise 6: Switching Among Applications with Task Manager
  59.        Displaying Task Manager
  60.        Switching to the DOS Session
  61.        Returning to the Presentation Manager Session
  62.        Switching to File System
  63.        Switching to Control Panel
  64.      Exercise 7: Arranging Windows with Task Manager
  65.      Exercise 8: Moving and Sizing Windows
  66.        Moving Windows
  67.        Sizing Windows
  68.      Exercise 9: Quitting Applications
  69.        Quitting Control Panel
  70.        Quitting File System
  71.      Exercise 10: Shutting Down MS OS/2
  72.      Summary
  73.  
  74.    Chapter 2  Using a Presentation Manager Application
  75.      Introduction
  76.      Exercise 1: Starting and Playing Bricks
  77.        Starting Bricks
  78.        Game Rules
  79.        Setting Options
  80.        Playing a Game Yourself
  81.        Stopping and Resuming a Game
  82.      Exercise 2: Opening Files
  83.        Using a Dialog Box
  84.      Exercise 3: Learning About Multitasking
  85.      Exercise 4: Creating New Files
  86.        Adding Bricks
  87.          Using the Add Bricks Dialog Box
  88.          Adding a Brick to Your Game
  89.          Correcting Mistakes
  90.        Removing Bricks
  91.        Completing Your Game
  92.      Exercise 5: Saving Files
  93.      Quitting Bricks
  94.        Shutting Down MS OS/2
  95.      Summary
  96.  
  97.    Chapter 3  Learning File System
  98.      Introduction
  99.      Exercise 1: Starting File System
  100.        Looking at the Directory Tree Window
  101.      Exercise 2: Opening a Directory Window
  102.        Looking at the Directory Window
  103.        Changing the Display in a Directory Window
  104.      Exercise 3: Managing Files and Directories
  105.        Creating and Opening Subdirectories
  106.        Arranging File System Windows
  107.        Switching Between Directory Windows
  108.        Copying Files
  109.        Moving Files
  110.        Renaming Files
  111.        Deleting Files
  112.      Exercise 4: Closing Directory Windows
  113.      Exercise 5: Quitting File System
  114.        Shutting Down MS OS/2
  115.      Summary
  116.  
  117.    Chapter 4  Learning the MS OS/2 and DOS Command Interpreters
  118.      Introduction
  119.        Typing Commands
  120.        Controlling the Screen's Contents
  121.        Using the Copy Command
  122.          Using Editing Keys
  123.        Starting an Application
  124.        Using the System Menu in Cmd
  125.          Changing the Font Size
  126.          Scrolling the Contents of the Screen
  127.        Quitting Cmd and Closing the Window
  128.      Exercise 2: Running Cmd in a Full-Screen OS/2 Session
  129.        Using Cmd in a Full-Screen OS/2 Session
  130.        Starting an Application
  131.        Quitting Cmd in a Full-Screen OS/2 Session
  132.      Exercise 3: Running the DOS Command Interpreter
  133.        Starting the DOS Command Interpreter
  134.        Typing Commands
  135.        Starting a DOS Application
  136.      Shutting Down MS OS/2
  137.      Going On
  138.  
  139.    Appendix  Computer Basics
  140.  
  141.  
  142.  
  143.  ────────────────────────────────────────────────────────────────────────────
  144.  Welcome
  145.  
  146.    About This Guide
  147.    Notational Conventions
  148.    Using a Mouse with MS OS/2
  149.    Going On
  150.  
  151.  
  152.    Microsoft(R) Operating System/2 is a powerful and flexible tool that
  153.    allows you to perform several tasks on your computer at the same time. The
  154.    way you work with MS(R) OS/2 is entirely up to you. Presentation Manager
  155.    offers you a graphical way of working with MS OS/2 by providing windows
  156.    you can work in and menus from which you can choose commands. In addition,
  157.    the MS OS/2 and DOS command interpreters offer you a way of working with
  158.    MS OS/2 that more closely resembles DOS.
  159.  
  160.    This guide is designed as a tutorial (a series of exercises) to help you
  161.    learn about the different ways you can work with MS OS/2. It will give you
  162.    hands-on experience using Presentation Manager and the MS OS/2 and DOS
  163.    command interpreters to perform basic tasks, such as starting applications
  164.    and managing files and directories. Also, the appendix to this tutorial
  165.    provides an overview of basic computer terms and concepts, which you might
  166.    find helpful in working through the exercises.
  167.  
  168.    If you would prefer to experiment with MS OS/2 on your own, you may find
  169.    Microsoft Operating System/2 Getting Started helpful. There you will find
  170.    information on setting up MS OS/2 on your computer, followed by a brief
  171.    tour of the system. If you want to start using MS OS/2 right away, see the
  172.    Microsoft Operating System/2 User's Guide for instructions on how to
  173.    perform specific tasks. For a complete reference to all of the commands,
  174.    applications, and programs that come with MS OS/2, see the Microsoft
  175.    Operating System/2 Desktop Reference.
  176.  
  177.  
  178.  About This Guide
  179.  
  180.    This guide consists of four chapters. Each chapter presents exercises that
  181.    explain how to use a particular MS OS/2 operating environment or
  182.    application:
  183.  
  184.    ■  Chapter 1, "Learning Presentation Manager Skills," teaches the basic
  185.       skills you need to use windows and to start and quit applications.
  186.  
  187.    ■  Chapter 2, "Using a Presentation Manager Application," demonstrates a
  188.       sample game application called Bricks to teach basic techniques for
  189.       working with Presentation Manager applications.
  190.  
  191.    ■  Chapter 3, "Learning File System," describes how to use File System to
  192.       create a subdirectory and to move, copy, and delete files.
  193.  
  194.    ■  Chapter 4, "Learning the MS OS/2 and DOS Command Interpreters,"
  195.       describes some basic techniques for using the MS OS/2 and DOS command
  196.       interpreters, cmd and command. Here, you'll learn about typing commands
  197.       and about an alternate way to manage your files and directories.
  198.  
  199.    If you've never used a personal computer before or are new to graphical
  200.    operating environments such as Microsoft Windows, it's a good idea to work
  201.    through the exercises in these chapters before you start using MS OS/2 to
  202.    do your work. When you finish the set of exercises in each chapter, you
  203.    can proceed to the next one or take a break.
  204.  
  205.    It is highly recommended that you use a mouse while working through the
  206.    exercises──having a mouse makes Presentation Manager fast and easy to use.
  207.    (For more information about the mouse, see "Using a Mouse with MS OS/2"
  208.    in this chapter.)
  209.  
  210.    Textured bars in the left margin point out procedures for performing a
  211.    particular task.
  212.  
  213.    The procedures for performing a task by using a mouse are marked by a
  214.    mouse icon in the margin. If you don't have a mouse, you can still work
  215.    through the exercises by using your keyboard. Keyboard procedures
  216.    immediately follow the mouse procedures and are also marked by an icon in
  217.    the margin. If you have a mouse, feel free to try both methods. This will
  218.    give you an idea of the variety of ways you can accomplish tasks in the
  219.    Presentation Manager session and will help you discover the method that is
  220.    most comfortable for you.
  221.  
  222.    When the procedure may be performed by using either a mouse or keyboard,
  223.    or by using both a mouse and keyboard in a combination of steps, the
  224.    textured bar appears by itself in the margin.
  225.  
  226.  
  227.  Notational Conventions
  228.  
  229.    To help you locate and interpret information easily, this guide uses
  230.    specific typographic conventions and terminology. The following
  231.    typographic conventions are used in this guide:
  232.  
  233.    Convention        Used for
  234.    ──────────────────────────────────────────────────────────────────────────
  235.    bold              Bold letters indicate anything you must type exactly as
  236.                      it appears in this guide.
  237.  
  238.    this type         Sample command lines, program code, program output, and
  239.                      examples.
  240.  
  241.    ALL CAPITALS      Filenames, directory names, and acronyms.
  242.  
  243.                      Names of keys on your keyboard.
  244.  
  245.    Initial Capitals  Presentation Manager commands and menu names.
  246.    ──────────────────────────────────────────────────────────────────────────
  247.  
  248.    Key combinations and key sequences appear in the following format:
  249.  
  250.    Notation        Meaning
  251.    ──────────────────────────────────────────────────────────────────────────
  252.    KEY+KEY         A plus sign (+) between key names means you must press the
  253.                    keys at the same time; for example, "Press ALT+ESC" means
  254.                    that you press the ALT key and hold it down while you
  255.                    press the ESC key.
  256.  
  257.    KEY, KEY        A comma (,) between key names means you must press the
  258.                    keys in sequence; for example, "Press ALT, SPACEBAR" means
  259.                    that you press the ALT key and release it, and then press
  260.                    the SPACEBAR and release it.
  261.  
  262.    DIRECTION keys  Arrow keys on your computer keypad indicate DIRECTION
  263.                    keys. The names refer to the direction the key points: UP,
  264.                    DOWN, RIGHT, and LEFT.
  265.    ──────────────────────────────────────────────────────────────────────────
  266.  
  267.  
  268.  Using a Mouse with MS OS/2
  269.  
  270.    A mouse is a small pointing device that you can use with MS OS/2. Moving
  271.    the mouse across a flat surface, such as a table or a desktop, moves the
  272.    pointer, which appears as an arrow on the screen. With a mouse, there's no
  273.    need to memorize keystrokes or key sequences to perform common
  274.    Presentation Manager tasks. You can use it to choose commands, select
  275.    files and directories, and start applications by simply pointing on the
  276.    screen and clicking the mouse button. You can use either a single-button
  277.    or a multiple-button mouse with Presentation Manager applications. If you
  278.    have a mouse with more than one button, use the left button. Other
  279.    applications you use may respond to the other buttons, but the
  280.    applications that come with MS OS/2 recognize the left button. (You can
  281.    change which button Presentation Manager recognizes. See Part 1, "Using
  282.    Presentation Manager," of the Microsoft Operating System/2 User's Guide
  283.    for more information.)
  284.  
  285.    If you run out of room while moving the mouse (for example, by running off
  286.    the edge of your desk), lift the mouse and put it back down where you have
  287.    more room. Lifting the mouse does not move the pointer on the screen.
  288.  
  289.    The following list describes the mouse actions you will use in this guide:
  290.  
  291.    Term                Action
  292.    ──────────────────────────────────────────────────────────────────────────
  293.    Point               Move the mouse until the tip of the pointer rests on
  294.                        the object on the screen that you want to point to.
  295.  
  296.    Click               Quickly press and release the mouse button. To click
  297.                        an object means to point to that object (for example,
  298.                        an icon or a menu name) and press the mouse button.
  299.  
  300.    Double-click        Click the mouse button twice in rapid succession.
  301.  
  302.    Drag                Press the mouse button and hold it down while moving
  303.                        the mouse.
  304.    ──────────────────────────────────────────────────────────────────────────
  305.  
  306.  
  307.  Going On
  308.  
  309.    When you are ready, go on to Chapter 1, "Learning Presentation Manager
  310.    Skills." Make sure you have installed and started MS OS/2 on your
  311.    computer. If you have not installed MS OS/2 yet, or if you need a reminder
  312.    on how to start it, see Microsoft Operating System/2 Getting Started
  313.    before beginning the exercises in Chapter 1.
  314.  
  315.  
  316.  
  317.  ────────────────────────────────────────────────────────────────────────────
  318.  Chapter 1  Learning Presentation Manager Skills
  319.  
  320.    Introduction
  321.    The MS OS/2 Presentation Manager Screen
  322.    Exercise 1: Getting Help
  323.      Scrolling the Help Window
  324.      Closing the Help Window
  325.    Exercise 2: Starting an Application
  326.    Exercise 3: Shrinking a Window to an Icon
  327.    Exercise 4: Changing Groups in Start Programs
  328.    Exercise 5: Starting and Shrinking Control Panel
  329.    Exercise 6: Switching Among Applications with Task Manager
  330.      Displaying Task Manager
  331.      Switching to the DOS Session
  332.      Returning to the Presentation Manager Session
  333.      Switching to File System
  334.      Switching to Control Panel
  335.    Exercise 7: Arranging Windows with Task Manager
  336.    Exercise 8: Moving and Sizing Windows
  337.      Moving Windows
  338.      Sizing Windows
  339.    Exercise 9: Quitting Applications
  340.      Quitting Control Panel
  341.      Quitting File System
  342.    Exercise 10: Shutting Down MS OS/2
  343.    Summary
  344.  
  345.  
  346.  Introduction
  347.  
  348.    Microsoft Operating System/2 includes several different applications and
  349.    programs that you can use to perform a variety of tasks. Presentation
  350.    Manager is the graphical environment that provides you with a visual way
  351.    of working with your computer, by displaying windows and menus on your
  352.    screen.
  353.  
  354.    This chapter contains ten exercises that will give you hands-on experience
  355.    performing basic Presentation Manager tasks. While working through the
  356.    exercises, you will learn and practice the following skills:
  357.  
  358.    ■  Using Help information
  359.  
  360.    ■  Selecting and starting applications
  361.  
  362.    ■  Shrinking application windows to icons
  363.  
  364.    ■  Switching between applications
  365.  
  366.    ■  Arranging windows
  367.  
  368.    ■  Moving and sizing windows
  369.  
  370.    ■  Quitting applications
  371.  
  372.    ■  Shutting down MS OS/2
  373.  
  374.    Before beginning the exercises, make sure you have set up and started MS
  375.    OS/2 on your computer. If you have not set up MS OS/2 or if you need a
  376.    review on how to start MS OS/2, see Microsoft Operating System/2 Getting
  377.    Started.
  378.  
  379.  
  380.  The MS OS/2 Presentation Manager Screen
  381.  
  382.    ┌────────────────────────────────────┐
  383.    │                                    │
  384.    │   This screen can be viewed on     │
  385.    │   page 10 of the printed manual.   │
  386.    │                                    │
  387.    └────────────────────────────────────┘
  388.  
  389.    When you start MS OS/2, the Start Programs application appears on your
  390.    screen, running in the Presentation Manager session (a special graphical
  391.    environment). Here are some terms that describe the elements of the
  392.    Presentation Manager screen:
  393.  
  394.    ■  The work area is where a list of applications, directories, or the
  395.       contents of a file are displayed. For example, in the Start Programs
  396.       work area, you can see a list of applications that you can start by
  397.       using Start Programs.
  398.  
  399.    ■  An arrow-shaped pointer shows your position on the screen, if you are
  400.       using a mouse.
  401.  
  402.    ■  Scroll bars may appear in a window when it contains more information
  403.       than can fit in the work area. If you are using a mouse, you use scroll
  404.       bars to bring the information that does not fit in the work area into
  405.       view. Clicking one of the scroll bars moves information in the work
  406.       area up or down one line.
  407.  
  408.    ■  The border defines the boundaries of a window and determines its size.
  409.       You can change the size and location of a window on your screen by
  410.       adjusting the position of its borders.
  411.  
  412.    ■  The title bar displays the name of the application that is currently
  413.       running in a window or, if you are using File System, the directory
  414.       path of an open directory.
  415.  
  416.    ■  The System-menu box is used to display the System menu. The System menu
  417.       is common to all applications that run in a window, and it can be used
  418.       to move and size windows and to quit applications.
  419.  
  420.    ■  The menu bar displays the names of the menus in a Presentation Manager
  421.       application.
  422.  
  423.    ■  The Minimize box can shrink a window to an icon, if you are using a
  424.       mouse. If you are not using a mouse, you can use the Minimize command
  425.       on the System menu to do this.
  426.  
  427.    ■  The Maximize box can enlarge a window, if you are using a mouse. If you
  428.       are not using a mouse, you can use the Maximize command on the System
  429.       menu to do this.
  430.  
  431.    ■  An icon represents a window that has been shrunk by using the Minimize
  432.       command or the Minimize box. When you start MS OS/2, icons for Task
  433.       Manager, Spooler Queue Manager, and the DOS session (the environment
  434.       used to run DOS applications) automatically appear in the icon area
  435.       located at the bottom of your screen.
  436.  
  437.    ■  The Help key reminds you that you can display Help information at any
  438.       time by pressing the F1 function key.
  439.  
  440.  
  441.  Exercise 1: Getting Help
  442.  
  443.    If you get stuck at any time while working in the Presentation Manager
  444.    session, you can get help for the task you are performing. To display Help
  445.    information, use the F1 function key. Do this now:
  446.  
  447.    1.  Press F1.
  448.  
  449.    Help information for Start Programs appears in a window on your screen.
  450.  
  451.    ┌────────────────────────────────────┐
  452.    │                                    │
  453.    │   This screen can be viewed on     │
  454.    │   page 12 of the printed manual.   │
  455.    │                                    │
  456.    └────────────────────────────────────┘
  457.  
  458.    Scrolling the Help Window
  459.  
  460.    The scroll bar at the right shows you that there's more Help information
  461.    available than can fit in the window. If you are using a mouse, you can
  462.    use the scroll bars to display more of the information:
  463.  
  464.    1.  Point to the scroll box in the scroll bar.
  465.  
  466.        ┌────────────────────────────────────┐
  467.        │                                    │
  468.        │   This screen can be viewed on     │
  469.        │   page 13 of the printed manual.   │
  470.        │                                    │
  471.        └────────────────────────────────────┘
  472.  
  473.    2.  Press and hold down the left mouse button, then drag the scroll box
  474.        down towards the bottom of the scroll bar. More of the text appears in
  475.        the window as you drag the scroll box.
  476.  
  477.    If you are using your keyboard, you can scroll the Help information one
  478.    window at a time by using the PAGE UP and PAGE DOWN keys. If you are using
  479.    your keyboard, try scrolling the text down one screen:
  480.  
  481.    1.  Press the PAGE DOWN key to display more Help text.
  482.  
  483.    Practice scrolling through the Help information by using your mouse or
  484.    keyboard until you've reached the end. You'll know that you're at the end
  485.    of the text when the scroll box reaches the bottom of the scroll bar.
  486.  
  487.    ┌────────────────────────────────────┐
  488.    │                                    │
  489.    │   This screen can be viewed on     │
  490.    │   page 14 of the printed manual.   │
  491.    │                                    │
  492.    └────────────────────────────────────┘
  493.  
  494.    Closing the Help Window
  495.  
  496.    To close the Help window, do the following:
  497.  
  498.    1.  Press the ESC key.
  499.  
  500.    The Help window disappears from your screen. For more detailed information
  501.    on using Help, see Part 1, "Using Presentation Manager," of the Microsoft
  502.    Operating System/2 User's Guide.
  503.  
  504.  
  505.  Exercise 2: Starting an Application
  506.  
  507.    When you start MS OS/2, the first application you see is Start Programs.
  508.    Start Programs is a Presentation Manager application that you can use to
  509.    start other applications. The applications you start are categorized into
  510.    different groups. When you start MS OS/2, the titles of the applications
  511.    in the Main Group are listed in the Start Programs window.
  512.  
  513.    ┌────────────────────────────────────┐
  514.    │                                    │
  515.    │   This screen can be viewed on     │
  516.    │   page 15 of the printed manual.   │
  517.    │                                    │
  518.    └────────────────────────────────────┘
  519.  
  520.    Starting an application is easy by using a mouse; you just point to the
  521.    title of the application you want to start and then double-click the left
  522.    mouse button. Start File System by using your mouse:
  523.  
  524.    1.  Point to File System in the application list.
  525.  
  526.        ┌────────────────────────────────────┐
  527.        │                                    │
  528.        │   This screen can be viewed on     │
  529.        │   page 15 of the printed manual.   │
  530.        │                                    │
  531.        └────────────────────────────────────┘
  532.  
  533.    2.  Double-click the left mouse button to start File System.
  534.  
  535.    When you start File System by using a mouse, the pointer becomes a small
  536.    hourglass to let you know that File System is being started. After a short
  537.    pause, File System appears in a window on your screen.
  538.    If you don't have a  mouse, select and start File System by using your
  539.    keyboard:
  540.  
  541.    1.  If File System is not already selected, press the UP or DOWN key until
  542.        File System is highlighted.
  543.  
  544.        ┌────────────────────────────────────┐
  545.        │                                    │
  546.        │   This screen can be viewed on     │
  547.        │   page 16 of the printed manual.   │
  548.        │                                    │
  549.        └────────────────────────────────────┘
  550.  
  551.    2.  Press the ENTER key.
  552.  
  553.        ┌────────────────────────────────────┐
  554.        │                                    │
  555.        │   This screen can be viewed on     │
  556.        │   page 17 of the printed manual.   │
  557.        │                                    │
  558.        └────────────────────────────────────┘
  559.  
  560.  
  561.    File System is a Presentation Manager application you can use to manage
  562.    your files and directories on any disk you choose. You will learn some
  563.    basic techniques for using File System in Chapter 3, "Learning File
  564.    System."
  565.  
  566.  
  567.  Exercise 3: Shrinking a Window to an Icon
  568.  
  569.    Whenever you're not currently using an application that is running in a
  570.    window, you can shrink the application window to an icon without having to
  571.    quit the application. Since you won't be using File System in this
  572.    chapter, you'll shrink the File System window to an icon.
  573.  
  574.    You shrink a window to an icon with the mouse by using the Minimize
  575.    box in the upper-right corner of the window. If you have a mouse,
  576.    shrink the File System window to an icon:
  577.  
  578.    1.  Point to the Minimize box in the upper-right corner of the File System
  579.        window.
  580.  
  581.        ┌────────────────────────────────────┐
  582.        │                                    │
  583.        │   This screen can be viewed on     │
  584.        │   page 18 of the printed manual.   │
  585.        │                                    │
  586.        └────────────────────────────────────┘
  587.  
  588.    2.  Click the left mouse button.
  589.  
  590.    To shrink a window to an icon by using your keyboard, you use the Minimize
  591.    command on the System menu:
  592.  
  593.    1.  Press and hold down the SHIFT key.
  594.  
  595.    2.  While holding down the SHIFT key, press the ESC key to display the
  596.        System menu (SHIFT+ESC). The System menu appears on your screen with
  597.        the first command, Restore, highlighted to show that it is selected.
  598.  
  599.        ┌────────────────────────────────────┐
  600.        │                                    │
  601.        │   This screen can be viewed on     │
  602.        │   page 19 of the printed manual.   │
  603.        │                                    │
  604.        └────────────────────────────────────┘
  605.  
  606.        The System menu contains commands that let you size, move, and close
  607.        windows. The Minimize command shrinks the File System window to an
  608.        icon.
  609.  
  610.    3.  Press the N key to choose the Minimize command.
  611.  
  612.    File System is now represented by an icon in the lower-left corner of your
  613.    screen. The Start Programs window appears at the front of your screen.
  614.  
  615.    ┌────────────────────────────────────┐
  616.    │                                    │
  617.    │   This screen can be viewed on     │
  618.    │   page 20 of the printed manual.   │
  619.    │                                    │
  620.    └────────────────────────────────────┘
  621.  
  622.    File System is still running, but it doesn't take up as much space on your
  623.    screen.
  624.  
  625.    In this exercise, you've learned how to shrink a window to an icon. Next,
  626.    you will learn how to change groups in Start Programs so that you can
  627.    start other applications in other groups.
  628.  
  629.  
  630.  Exercise 4: Changing Groups in Start Programs
  631.  
  632.    In addition to the applications listed in the Main Group, MS OS/2 includes
  633.    other applications listed in two other groups──the Utility Programs group
  634.    and the Demonstration Programs group.
  635.  
  636.    If you have a mouse, change to the Utility Programs group:
  637.  
  638.    1.  Point to the Group menu.
  639.  
  640.        ┌────────────────────────────────────┐
  641.        │                                    │
  642.        │   This screen can be viewed on     │
  643.        │   page 21 of the printed manual.   │
  644.        │                                    │
  645.        └────────────────────────────────────┘
  646.  
  647.    2.  Click the left mouse button. The commands and groups on the Group menu
  648.        appear on your screen.
  649.  
  650.        ┌────────────────────────────────────┐
  651.        │                                    │
  652.        │   This screen can be viewed on     │
  653.        │   page 21 of the printed manual.   │
  654.        │                                    │
  655.        └────────────────────────────────────┘
  656.  
  657.        The check mark next to the Main Group shows you that the applications
  658.        in the Main Group are those currently displayed in the Start Programs
  659.        window.
  660.  
  661.    3.  Point to the second group, Utility Programs.
  662.  
  663.        ┌────────────────────────────────────┐
  664.        │                                    │
  665.        │   This screen can be viewed on     │
  666.        │   page 22 of the printed manual.   │
  667.        │                                    │
  668.        └────────────────────────────────────┘
  669.  
  670.    4.  Click the left mouse button.
  671.  
  672.    If you don't have a mouse, you can change to the Utility Programs group by
  673.    using your keyboard:
  674.  
  675.    1.  Press the ALT key. The Program-menu name is then highlighted, showing
  676.        you the menu is ready to use.
  677.  
  678.        ┌────────────────────────────────────┐
  679.        │                                    │
  680.        │   This screen can be viewed on     │
  681.        │   page 22 of the printed manual.   │
  682.        │                                    │
  683.        └────────────────────────────────────┘
  684.  
  685.    2.  Press the G key. The Group menu appears on your screen.
  686.  
  687.        ┌────────────────────────────────────┐
  688.        │                                    │
  689.        │   This screen can be viewed on     │
  690.        │   page 23 of the printed manual.   │
  691.        │                                    │
  692.        └────────────────────────────────────┘
  693.  
  694.        The check mark next to the Main Group shows you that the applications
  695.        in the Main Group are those currently displayed in the Start Programs
  696.        window.
  697.  
  698.    3.  Press the 2 key to change to the Utility Programs group.
  699.  
  700.    When you change to the Utility Programs group, the titles of the
  701.    applications in the group appear in the Start Programs window.
  702.  
  703.    ┌────────────────────────────────────┐
  704.    │                                    │
  705.    │   This screen can be viewed on     │
  706.    │   page 23 of the printed manual.   │
  707.    │                                    │
  708.    └────────────────────────────────────┘
  709.  
  710.    Notice that the Utility Programs group includes Control Panel. Now that
  711.    Control Panel is selected in the Start Programs window, you can easily
  712.    start it.
  713.  
  714.  
  715.  Exercise 5: Starting and Shrinking Control Panel
  716.  
  717.    If you have a mouse, follow these steps to start Control Panel:
  718.  
  719.    1.  Point to Control Panel in the applications list.
  720.  
  721.        ┌────────────────────────────────────┐
  722.        │                                    │
  723.        │   This screen can be viewed on     │
  724.        │   page 24 of the printed manual.   │
  725.        │                                    │
  726.        └────────────────────────────────────┘
  727.  
  728.    2.  Double-click the left mouse button.
  729.  
  730.    If you are using your keyboard, here's how to start Control Panel:
  731.  
  732.    1.  If Control Panel is not already selected, press the UP or DOWN key to
  733.        select Control Panel.
  734.  
  735.        ┌────────────────────────────────────┐
  736.        │                                    │
  737.        │   This screen can be viewed on     │
  738.        │   page 24 of the printed manual.   │
  739.        │                                    │
  740.        └────────────────────────────────────┘
  741.  
  742.    2.  Press the ENTER key.
  743.  
  744.    Control Panel appears in a window on your screen.
  745.  
  746.    ┌────────────────────────────────────┐
  747.    │                                    │
  748.    │   This screen can be viewed on     │
  749.    │   page 25 of the printed manual.   │
  750.    │                                    │
  751.    └────────────────────────────────────┘
  752.  
  753.    Control Panel is a Presentation Manager application you can use to
  754.    customize MS OS/2 to your specific needs. Part 1, "Using Presentation
  755.    Manager," of the Microsoft Operating System/2 User's Guide, describes in
  756.    detail how to use Control Panel.
  757.  
  758.    Since you won't be using Control Panel in this chapter, you'll shrink
  759.    the Control Panel window to an icon. If you are using a mouse, the
  760.    following steps will shrink the Control Panel window:
  761.  
  762.    1.  Point to the Minimize box in the upper-right corner of the window.
  763.  
  764.        ┌────────────────────────────────────┐
  765.        │                                    │
  766.        │   This screen can be viewed on     │
  767.        │   page 26 of the printed manual.   │
  768.        │                                    │
  769.        └────────────────────────────────────┘
  770.  
  771.    2.  Click the left mouse button.
  772.  
  773.    If you are using your keyboard, shrink the Control Panel window by
  774.    choosing the Minimize command from the System menu:
  775.  
  776.    1.  Press and hold down the SHIFT key.
  777.  
  778.    2.  While holding down the SHIFT key, press the ESC key to display the
  779.        System menu.
  780.  
  781.    3.  Press the N key to choose the Minimize command.
  782.  
  783.    Control Panel appears as an icon in the lower-left corner of your screen,
  784.    next to the File System icon. Once again, the Start Programs window
  785.    appears at the front of your screen.
  786.  
  787.    ┌────────────────────────────────────┐
  788.    │                                    │
  789.    │   This screen can be viewed on     │
  790.    │   page 27 of the printed manual.   │
  791.    │                                    │
  792.    └────────────────────────────────────┘
  793.  
  794.    Just like File System, Control Panel is still running, but it occupies
  795.    less space on your screen than before.
  796.  
  797.    You now have several application windows and the DOS session, Spooler
  798.    Queue Manager, and Task Manager icons displayed on your screen at once.
  799.    Start Programs is running in a window at the front of your screen; File
  800.    System and Control Panel are running in icons at the bottom of your
  801.    screen. In the next exercise, you'll learn how to use Task Manager to
  802.    switch between these applications.
  803.  
  804.  
  805.  Exercise 6: Switching Among Applications with Task Manager
  806.  
  807.    In MS OS/2, you can have several applications running at once, but you can
  808.    work with only one application at a time. The application you are
  809.    currently working with is the active application.
  810.  
  811.    When a Presentation Manager application becomes active, it appears at the
  812.    front of your screen and its window borders and title bar change colors.
  813.    For example, since Start Programs is now at the front of your screen and
  814.    its window borders and title bar have changed colors, it is the active
  815.    application.
  816.  
  817.    ┌────────────────────────────────────┐
  818.    │                                    │
  819.    │   This screen can be viewed on     │
  820.    │   page 28 of the printed manual.   │
  821.    │                                    │
  822.    └────────────────────────────────────┘
  823.  
  824.    If you want to use an application other than the one that is currently
  825.    active, you need to switch to it. The most direct way to switch to another
  826.    application is by using Task Manager. To switch to another application,
  827.    you first display Task Manager and then choose the application you want to
  828.    switch to from the list of applications displayed in the Task Manager
  829.    window.
  830.  
  831.    Displaying Task Manager
  832.  
  833.    Since Task Manager is currently running in an icon, you need to restore it
  834.    before you can switch to another application. Restoring Task Manager by
  835.    using the mouse is easy; point to the Task Manager icon in the lower-right
  836.    corner of your screen and then double-click the left mouse button.
  837.  
  838.    If you are using a mouse, follow these steps to restore Task Manager:
  839.  
  840.    1.  Point to the Task Manager icon.
  841.  
  842.        ┌────────────────────────────────────┐
  843.        │                                    │
  844.        │   This screen can be viewed on     │
  845.        │   page 29 of the printed manual.   │
  846.        │                                    │
  847.        └────────────────────────────────────┘
  848.  
  849.    2.  Double-click the left mouse button.
  850.  
  851.    If you are using your keyboard, press CTRL+ESC to restore Task Manager. Do
  852.    this now:
  853.  
  854.    1.  Press and hold down the CTRL key.
  855.  
  856.    2.  Press the ESC key.
  857.  
  858.    3.  Release both keys.
  859.  
  860.    When you restore Task Manager, it appears at the front of your screen,
  861.    displaying a list of applications that are currently running.
  862.  
  863.    ┌────────────────────────────────────┐
  864.    │                                    │
  865.    │   This screen can be viewed on     │
  866.    │   page 30 of the printed manual.   │
  867.    │                                    │
  868.    └────────────────────────────────────┘
  869.  
  870.    Switching to the DOS Session
  871.  
  872.    The way you switch to another application with Task Manager is similar to
  873.    the way you start an application with Start Programs──you point to the
  874.    application and then double-click the left mouse button. If you are using
  875.    the keyboard, use the UP or DOWN key to select the application and then
  876.    press the ENTER key.
  877.  
  878.    To practice switching to another application, switch to the DOS session
  879.    (the environment used to run DOS applications). If you are using a mouse,
  880.    do the following:
  881.  
  882.    1.  Point to DOS Command Prompt in the Task Manager window.
  883.  
  884.        ┌────────────────────────────────────┐
  885.        │                                    │
  886.        │   This screen can be viewed on     │
  887.        │   page 31 of the printed manual.   │
  888.        │                                    │
  889.        └────────────────────────────────────┘
  890.  
  891.    2.  Double-click the left mouse button.
  892.  
  893.    If you are using your keyboard, do the following to switch to the DOS
  894.    session:
  895.  
  896.    1.  Press the UP or DOWN key to select the DOS Command Prompt.
  897.  
  898.        ┌────────────────────────────────────┐
  899.        │                                    │
  900.        │   This screen can be viewed on     │
  901.        │   page 31 of the printed manual.   │
  902.        │                                    │
  903.        └────────────────────────────────────┘
  904.  
  905.    2.  Press the ENTER key.
  906.  
  907.    The Presentation Manager screen temporarily disappears and you are
  908.    switched to the DOS session. Switching to the DOS session automatically
  909.    starts the DOS command interpreter, command, as shown by the DOS prompt in
  910.    the upper-left corner of your screen.
  911.  
  912.    ┌────────────────────────────────────┐
  913.    │                                    │
  914.    │   This screen can be viewed on     │
  915.    │   page 32 of the printed manual.   │
  916.    │                                    │
  917.    └────────────────────────────────────┘
  918.  
  919.    Command is the program you use to run your DOS applications.
  920.    You'll learn more about using command in Chapter 4, "Learning the MS OS/2
  921.    and DOS Command Interpreters."
  922.  
  923.    Returning to the Presentation Manager Session
  924.  
  925.    When you are using an application that is running in the DOS session or
  926.    in the full-screen OS/2 session, you can quickly return to the
  927.    Presentation Manager session and Task Manager at any time. Here's how:
  928.  
  929.    1.  Press CTRL+ESC.
  930.  
  931.    The Presentation Manager screen reappears, with Task Manager displayed.
  932.  
  933.    ┌────────────────────────────────────┐
  934.    │                                    │
  935.    │   This screen can be viewed on     │
  936.    │   page 33 of the printed manual.   │
  937.    │                                    │
  938.    └────────────────────────────────────┘
  939.  
  940.    Switching to File System
  941.  
  942.    To give yourself more practice using Task Manager, switch to File System.
  943.    If you are using a mouse, do the following:
  944.  
  945.    1.  Point to File System in the list of applications displayed in the Task
  946.        Manager window.
  947.  
  948.    2.  Double-click the left mouse button.
  949.  
  950.    If you are using your keyboard, you switch to File System in this way:
  951.  
  952.    1.  Press the UP or DOWN key to select File System.
  953.  
  954.    2.  Press the ENTER key.
  955.  
  956.    When you switch to File System, the File System icon is automatically
  957.    restored to a window and appears at the front of your screen. The window
  958.    borders and title bar change colors, showing you that File System is now
  959.    active.
  960.  
  961.    ┌────────────────────────────────────┐
  962.    │                                    │
  963.    │   This screen can be viewed on     │
  964.    │   page 34 of the printed manual.   │
  965.    │                                    │
  966.    └────────────────────────────────────┘
  967.  
  968.    Switching to Control Panel
  969.  
  970.    Next, you'll use Task Manager to switch to Control Panel. Before you can
  971.    switch to Control Panel, you need to make Task Manager active. You can
  972.    make Task Manager active at any time──here's how:
  973.  
  974.    1.  Press CTRL+ESC.
  975.  
  976.    The Task Manager window appears at the front of your screen.
  977.  
  978.    ┌────────────────────────────────────┐
  979.    │                                    │
  980.    │   This screen can be viewed on     │
  981.    │   page 35 of the printed manual.   │
  982.    │                                    │
  983.    └────────────────────────────────────┘
  984.  
  985.    You can now switch to Control Panel. If you are using a mouse, follow
  986.    these steps:
  987.  
  988.    1.  Point to Control Panel in the list of applications displayed in the
  989.        Task Manager window.
  990.  
  991.    2.  Double-click the left mouse button.
  992.  
  993.    If you are using your keyboard, follow these steps to switch to Control
  994.    Panel:
  995.  
  996.    1.  Press the UP or DOWN key to select Control Panel.
  997.  
  998.    2.  Press the ENTER key.
  999.  
  1000.    The Control Panel icon is automatically restored to a window on your
  1001.    screen.
  1002.  
  1003.    ┌────────────────────────────────────┐
  1004.    │                                    │
  1005.    │   This screen can be viewed on     │
  1006.    │   page 36 of the printed manual.   │
  1007.    │                                    │
  1008.    └────────────────────────────────────┘
  1009.  
  1010.    The Control Panel window appears in front of the File System window and
  1011.    its title bar changes color, showing you that Control Panel is active.
  1012.  
  1013.    You now have several application windows on your screen at the same time──
  1014.    the Start Programs window, the File System window, the Control Panel
  1015.    window, and the Task Manager window. The Control Panel, File System, and
  1016.    Task Manager windows are all partially visible. The Start Programs window
  1017.    is hidden behind the File System window.
  1018.  
  1019.  
  1020.  Exercise 7: Arranging Windows with Task Manager
  1021.  
  1022.    When you have several windows on your screen at once, it's useful to be
  1023.    able to arrange them so that each is at least partially visible. This
  1024.    helps you to keep track of where your applications are and lets you view
  1025.    several windows on your screen at the same time.
  1026.  
  1027.    Task Manager provides you with a convenient way to arrange windows on your
  1028.    screen by using the Cascade or the Tile command on the Arrange menu. The
  1029.    Cascade command arranges your windows so that they overlap and so that
  1030.    their title bars are visible. The Tile command arranges your windows so
  1031.    that they appear side-by-side on your screen.
  1032.  
  1033.    To see how this works, use the Cascade command to arrange the windows.
  1034.    To do this, you need to make Task Manager active:
  1035.  
  1036.    1.  Press CTRL+ESC.
  1037.  
  1038.    Task Manager becomes the active application. You now can use the Cascade
  1039.    command to arrange the windows on your screen. If you have a mouse, follow
  1040.    these steps:
  1041.  
  1042.    1.  Point to the Arrange menu in the Task Manager menu bar and click the
  1043.        left mouse button. The Arrange menu appears on your screen.
  1044.  
  1045.        ┌────────────────────────────────────┐
  1046.        │                                    │
  1047.        │   This screen can be viewed on     │
  1048.        │   page 37 of the printed manual.   │
  1049.        │                                    │
  1050.        └────────────────────────────────────┘
  1051.  
  1052.    2.  Point to the Cascade command and click the left mouse button.
  1053.  
  1054.    If you are using your keyboard, follow these steps to arrange your
  1055.    windows:
  1056.  
  1057.    1.  Press the ALT key and then the A key to select the Arrange Menu.
  1058.  
  1059.    2.  Press the C key to choose the Cascade command.
  1060.  
  1061.    Presentation Manager arranges the windows so that they overlap and so that
  1062.    their title bars are visible.
  1063.  
  1064.    ┌────────────────────────────────────┐
  1065.    │                                    │
  1066.    │   This screen can be viewed on     │
  1067.    │   page 38 of the printed manual.   │
  1068.    │                                    │
  1069.    └────────────────────────────────────┘
  1070.  
  1071.    The Control Panel window is in front of the other application windows,
  1072.    showing you that Control Panel is now active.
  1073.  
  1074.  
  1075.  Exercise 8: Moving and Sizing Windows
  1076.  
  1077.    In addition to using Task Manager to arrange your windows, you can also
  1078.    move and size them. By sizing your windows, you can make them as small or
  1079.    as large as you want. By moving them, you can place them anywhere on your
  1080.    screen.
  1081.  
  1082.    Moving Windows
  1083.  
  1084.    To move a window by using a mouse, you point to its title bar and then
  1085.    drag its borders to where you want it on your screen. To try this, move
  1086.    the Task Manager window to the lower-right area of your screen.
  1087.  
  1088.    Before you can move a window, you must first make it active. Make
  1089.    Task Manager active:
  1090.  
  1091.    1.  Press CTRL+ESC.
  1092.  
  1093.    The Task Manager window, now active, moves to the front. If you have a
  1094.    mouse, follow these steps to move the Task Manager window to the
  1095.    lower-right area of your screen:
  1096.  
  1097.    1.  Point to the title bar of the Task Manager window.
  1098.  
  1099.        ┌────────────────────────────────────┐
  1100.        │                                    │
  1101.        │   This screen can be viewed on     │
  1102.        │   page 39 of the printed manual.   │
  1103.        │                                    │
  1104.        └────────────────────────────────────┘
  1105.  
  1106.    2.  Press and hold down the left mouse button. When you press the left
  1107.        mouse button, the window borders turn gray.
  1108.  
  1109.    3.  While holding down the left mouse button, drag the window borders to
  1110.        the lower-right area of your screen.
  1111.  
  1112.        ┌────────────────────────────────────┐
  1113.        │                                    │
  1114.        │   This screen can be viewed on     │
  1115.        │   page 40 of the printed manual.   │
  1116.        │                                    │
  1117.        └────────────────────────────────────┘
  1118.  
  1119.    4.  Release the mouse button.
  1120.  
  1121.    If you are using your keyboard, you can move the Task Manager
  1122.    window with the Move command on the System menu, together
  1123.    with the DIRECTION keys. Do the following:
  1124.  
  1125.    1.  Press SHIFT+ESC to display the System menu.
  1126.  
  1127.        ┌────────────────────────────────────┐
  1128.        │                                    │
  1129.        │   This screen can be viewed on     │
  1130.        │   page 41 of the printed manual.   │
  1131.        │                                    │
  1132.        └────────────────────────────────────┘
  1133.  
  1134.    2.  Press the M key to choose the Move command. The borders around the
  1135.        Task Manager window turn gray.
  1136.  
  1137.    3.  Press the DOWN key several times until the bottom border rests just
  1138.        above the DOS and Spool Queue Manager icons.
  1139.  
  1140.        ┌────────────────────────────────────┐
  1141.        │                                    │
  1142.        │   This screen can be viewed on     │
  1143.        │   page 42 of the printed manual.   │
  1144.        │                                    │
  1145.        └────────────────────────────────────┘
  1146.  
  1147.    4.  Press and hold down the RIGHT key until the right border touches the
  1148.        right edge of your screen.
  1149.  
  1150.        ┌────────────────────────────────────┐
  1151.        │                                    │
  1152.        │   This screen can be viewed on     │
  1153.        │   page 43 of the printed manual.   │
  1154.        │                                    │
  1155.        └────────────────────────────────────┘
  1156.  
  1157.    5.  Release the RIGHT key.
  1158.  
  1159.    6.  Press the ENTER key.
  1160.  
  1161.    The Task Manager window now appears in the lower-right area of your
  1162.    screen.
  1163.  
  1164.    ┌────────────────────────────────────┐
  1165.    │                                    │
  1166.    │   This screen can be viewed on     │
  1167.    │   page 44 of the printed manual.   │
  1168.    │                                    │
  1169.    └────────────────────────────────────┘
  1170.  
  1171.    Sizing Windows
  1172.  
  1173.    Besides being able to move application windows around on your screen, you
  1174.    can also change their size. You change the size of a window by expanding
  1175.    or contracting its borders.
  1176.  
  1177.    To see how this works, try making the Task Manager window smaller. If
  1178.    you have a mouse, try this now:
  1179.  
  1180.    1.  Point to the left border of the Task Manager window. The pointer turns
  1181.        into a two-headed arrow.
  1182.  
  1183.        ┌────────────────────────────────────┐
  1184.        │                                    │
  1185.        │   This screen can be viewed on     │
  1186.        │   page 45 of the printed manual.   │
  1187.        │                                    │
  1188.        └────────────────────────────────────┘
  1189.  
  1190.    2.  Press and hold down the left mouse button. The window borders turn
  1191.        gray.
  1192.  
  1193.    3.  While holding down the left mouse button, drag the border to a
  1194.        position about halfway inside the work area.
  1195.  
  1196.        ┌────────────────────────────────────┐
  1197.        │                                    │
  1198.        │   This screen can be viewed on     │
  1199.        │   page 46 of the printed manual.   │
  1200.        │                                    │
  1201.        └────────────────────────────────────┘
  1202.  
  1203.    4.  Release the mouse button.
  1204.  
  1205.    5.  Point to the bottom border. Once again, the pointer turns into
  1206.        a two-headed arrow.
  1207.  
  1208.        ┌────────────────────────────────────┐
  1209.        │                                    │
  1210.        │   This screen can be viewed on     │
  1211.        │   page 47 of the printed manual.   │
  1212.        │                                    │
  1213.        └────────────────────────────────────┘
  1214.  
  1215.    6.  Press and hold down the left mouse button. The window borders turn
  1216.        gray.
  1217.  
  1218.    7.  While holding down the left mouse button, drag the border upward to a
  1219.        position just below the title of the last application displayed
  1220.        in the work area.
  1221.  
  1222.        ┌────────────────────────────────────┐
  1223.        │                                    │
  1224.        │   This screen can be viewed on     │
  1225.        │   page 48 of the printed manual.   │
  1226.        │                                    │
  1227.        └────────────────────────────────────┘
  1228.  
  1229.    8.  Release the mouse button.
  1230.  
  1231.    If you are using your keyboard, you use the Size command on the
  1232.    System menu, together with the DIRECTION keys, to size a window. Try
  1233.    sizing the Task Manager window:
  1234.  
  1235.    1.  Press SHIFT+ESC to display the System menu.
  1236.  
  1237.    2.  Press the S key to choose the Size command. The borders around the
  1238.        Task Manager window turn gray.
  1239.  
  1240.    3.  Press the LEFT key to indicate that you want to move the left border.
  1241.  
  1242.    4.  Press and hold down the RIGHT key until the left border is at a
  1243.        position halfway inside the work area.
  1244.  
  1245.        ┌────────────────────────────────────┐
  1246.        │                                    │
  1247.        │   This screen can be viewed on     │
  1248.        │   page 49 of the printed manual.   │
  1249.        │                                    │
  1250.        └────────────────────────────────────┘
  1251.  
  1252.    5.  Press the DOWN key to indicate that you now want to move the bottom
  1253.        border.
  1254.  
  1255.    6.  Press and hold down the UP key until the bottom border is at a
  1256.        position just below the title of the last application listed in the
  1257.        work area.
  1258.  
  1259.        ┌────────────────────────────────────┐
  1260.        │                                    │
  1261.        │   This screen can be viewed on     │
  1262.        │   page 50 of the printed manual.   │
  1263.        │                                    │
  1264.        └────────────────────────────────────┘
  1265.  
  1266.    7.  Press the ENTER key.
  1267.  
  1268.    The Task Manager window becomes smaller, occupying the new space defined
  1269.    by its borders.
  1270.  
  1271.    ┌────────────────────────────────────┐
  1272.    │                                    │
  1273.    │   This screen can be viewed on     │
  1274.    │   page 51 of the printed manual.   │
  1275.    │                                    │
  1276.    └────────────────────────────────────┘
  1277.  
  1278.    Now that you have had some practice starting applications, shrinking
  1279.    application windows, switching between applications, and arranging,
  1280.    moving, and sizing windows, the final steps are to quit each of the
  1281.    applications you have started and then shut down MS OS/2.
  1282.  
  1283.  
  1284.  Exercise 9: Quitting Applications
  1285.  
  1286.    You quit a Presentation Manager application by double-clicking the
  1287.    System-menu box or by using the Close command on the System menu. This
  1288.    quits the application by closing the application window.
  1289.  
  1290.    Quitting Control Panel
  1291.  
  1292.    Before you can quit an application, you must make it active. If you have a
  1293.    mouse, switch to Control Panel now:
  1294.  
  1295.    1.  Point to Control Panel in the Task Manager window and double-click the
  1296.        left mouse button.
  1297.  
  1298.    If you are using your keyboard, here's how to switch to Control Panel:
  1299.  
  1300.    1.  Use the UP or DOWN key to select Control Panel.
  1301.  
  1302.    2.  Press the ENTER key.
  1303.  
  1304.    Control Panel moves to the front of your screen and becomes the
  1305.    active application.
  1306.  
  1307.    ┌────────────────────────────────────┐
  1308.    │                                    │
  1309.    │   This screen can be viewed on     │
  1310.    │   page 53 of the printed manual.   │
  1311.    │                                    │
  1312.    └────────────────────────────────────┘
  1313.  
  1314.    You can now quit Control Panel. If you are using a mouse, do the
  1315.    following:
  1316.  
  1317.    1.  Point to the System-menu box in the Control Panel window and
  1318.        double-click the left mouse button.
  1319.  
  1320.    If you are using your keyboard, use the Close command in the System menu
  1321.    to close Control Panel. Here's how:
  1322.  
  1323.    1.  Press SHIFT+ESC to display the System menu for Control Panel.
  1324.  
  1325.        ┌────────────────────────────────────┐
  1326.        │                                    │
  1327.        │   This screen can be viewed on     │
  1328.        │   page 54 of the printed manual.   │
  1329.        │                                    │
  1330.        └────────────────────────────────────┘
  1331.  
  1332.    2.  Press the C key to choose the Close command.
  1333.  
  1334.    When you double-click the System-menu box or choose the Close
  1335.    command, the Control Panel window disappears, showing you that
  1336.    Control Panel is no longer running. Start Programs becomes the active
  1337.    application.
  1338.  
  1339.    ┌────────────────────────────────────┐
  1340.    │                                    │
  1341.    │   This screen can be viewed on     │
  1342.    │   page 55 of the printed manual.   │
  1343.    │                                    │
  1344.    └────────────────────────────────────┘
  1345.  
  1346.    Quitting File System
  1347.  
  1348.    Now quit File System. Remember, before you can do anything with an
  1349.    application, you need to switch to it first. Switch to File System:
  1350.  
  1351.    1.  Press CTRL+ESC to make Task Manager active.
  1352.  
  1353.    2.  Choose File System from the list of applications that is displayed
  1354.        in the Task Manager window.
  1355.  
  1356.        (Point to File System and double-click with the mouse or, if you are
  1357.        using the keyboard, select File System with the UP or DOWN key and
  1358.        press the ENTER key.)
  1359.  
  1360.    The File System window moves to the front of your screen and is now
  1361.    active.
  1362.  
  1363.    ┌────────────────────────────────────┐
  1364.    │                                    │
  1365.    │   This screen can be viewed on     │
  1366.    │   page 56 of the printed manual.   │
  1367.    │                                    │
  1368.    └────────────────────────────────────┘
  1369.  
  1370.    If you are using a mouse, quit File System the same way as you quit
  1371.    Control Panel:
  1372.  
  1373.    1.  Point to the System-menu box and double-click the left mouse
  1374.        button. A message appears, asking you to confirm your decision
  1375.        to quit File System.
  1376.  
  1377.        ┌────────────────────────────────────┐
  1378.        │                                    │
  1379.        │   This screen can be viewed on     │
  1380.        │   page 56 of the printed manual.   │
  1381.        │                                    │
  1382.        └────────────────────────────────────┘
  1383.  
  1384.    2.  Point to the Yes button and click the left mouse button.
  1385.  
  1386.    If you are using your keyboard, use the Close command on the System menu.
  1387.    Follow these steps:
  1388.  
  1389.    1.  Press SHIFT+ESC to display the System menu.
  1390.  
  1391.    2.  Press the C key. A message appears, asking you to confirm your
  1392.        decision to quit File System.
  1393.  
  1394.        ┌────────────────────────────────────┐
  1395.        │                                    │
  1396.        │   This screen can be viewed on     │
  1397.        │   page 57 of the printed manual.   │
  1398.        │                                    │
  1399.        └────────────────────────────────────┘
  1400.  
  1401.    3.  Press the ENTER key.
  1402.  
  1403.    When you quit File System, Start Programs moves to the front of
  1404.    your screen and becomes the active application.
  1405.  
  1406.    ┌────────────────────────────────────┐
  1407.    │                                    │
  1408.    │   This screen can be viewed on     │
  1409.    │   page 58 of the printed manual.   │
  1410.    │                                    │
  1411.    └────────────────────────────────────┘
  1412.  
  1413.    Now, you are almost back to where you began──the DOS session and Spooler
  1414.    Queue Manager are represented by icons and Start Programs
  1415.    is the active application. Task Manager is running in a window behind
  1416.    Start Programs. Start Programs, Task Manager, Spooler Queue Manager, and
  1417.    the DOS session are always present on your screen; you
  1418.    can't close them and they won't go away. If you don't have any other
  1419.    applications running in windows or in icons, it is safe to shut down
  1420.    MS OS/2.
  1421.  
  1422.  
  1423.  Exercise 10: Shutting Down MS OS/2
  1424.  
  1425.    At this point, you either can begin the exercises in the next chapter,
  1426.    or you can take a break and return to the next chapter later.
  1427.  
  1428.    If you decide to take a break and will be away from your computer for a
  1429.    while, it's a good idea to shut down MS OS/2 and turn off your computer.
  1430.    You shut down MS OS/2 by using the Shutdown Now command in Task Manager.
  1431.    When you shut down MS OS/2, each application that is still running
  1432.    displays a message, asking you to confirm your decision to quit the
  1433.    application and to continue the shutdown process.
  1434.  
  1435.    Try shutting down MS OS/2:
  1436.  
  1437.    1.  Switch to Task Manager (press CTRL+ESC).
  1438.  
  1439.    2.  Select the Shutdown menu (point to it and then click the left mouse
  1440.        button or press the ALT key and then the S key).
  1441.  
  1442.        The Shutdown menu appears on your screen with the Shutdown Now command
  1443.        highlighted, showing you that it is already selected.
  1444.  
  1445.        ┌────────────────────────────────────┐
  1446.        │                                    │
  1447.        │   This screen can be viewed on     │
  1448.        │   page 59 of the printed manual.   │
  1449.        │                                    │
  1450.        └────────────────────────────────────┘
  1451.  
  1452.    3.  Press the ENTER key to carry out the Shutdown Now command.
  1453.  
  1454.        A message appears, asking you to confirm your decision to quit
  1455.        the applications that are still running and to continue shutting down
  1456.        MS OS/2.
  1457.  
  1458.        ┌────────────────────────────────────┐
  1459.        │                                    │
  1460.        │   This screen can be viewed on     │
  1461.        │   page 60 of the printed manual.   │
  1462.        │                                    │
  1463.        └────────────────────────────────────┘
  1464.  
  1465.    4.  Choose the Yes button (point to it and then click the left mouse
  1466.        button or press the LEFT key and then the ENTER key).
  1467.  
  1468.        A message appears to let you know that all your applications are
  1469.        closed and that it is now safe to turn off your computer.
  1470.  
  1471.    5.  If you will be leaving your computer for a while, turn it off. If you
  1472.        decide to continue working and want to restart MS OS/2, press
  1473.        the ENTER key.
  1474.  
  1475.  
  1476.  Summary
  1477.  
  1478.    The exercises in this chapter provided you with hands-on experience
  1479.    performing basic Presentation Manager skills, such as starting
  1480.    applications, shrinking windows to icons, switching between applications,
  1481.    arranging, moving and sizing windows, and quitting applications. If you
  1482.    want more detailed information about these features of the system before
  1483.    going to the next chapter, see Part 1, "Using Presentation Manager," of
  1484.    the Microsoft Operating System/2 User's Guide.
  1485.  
  1486.    In the next chapter, you will use a sample application called Bricks
  1487.    to learn how to use dialog boxes and to open, create, and save files.
  1488.    The sample application is an entertaining way to learn new skills and
  1489.    to sharpen some of the skills you've already learned in this chapter.
  1490.    When you are ready, go on to Chapter 2, "Using a Presentation
  1491.    Manager Application."
  1492.  
  1493.  
  1494.  
  1495.  ────────────────────────────────────────────────────────────────────────────
  1496.  Chapter 2  Using a Presentation Manager Application
  1497.  
  1498.    Introduction
  1499.    Exercise 1: Starting and Playing Bricks
  1500.      Starting Bricks
  1501.      Game Rules
  1502.      Setting Options
  1503.      Playing a Game Yourself
  1504.      Stopping and Resuming a Game
  1505.    Exercise 2: Opening Files
  1506.      Using a Dialog Box
  1507.    Exercise 3: Learning About Multitasking
  1508.    Exercise 4: Creating New Files
  1509.      Adding Bricks
  1510.        Using the Add Bricks Dialog Box
  1511.        Adding a Brick to Your Game
  1512.        Correcting Mistakes
  1513.      Removing Bricks
  1514.      Completing Your Game
  1515.    Exercise 5: Saving Files
  1516.    Quitting Bricks
  1517.      Shutting Down MS OS/2
  1518.    Summary
  1519.  
  1520.  
  1521.  Introduction
  1522.  
  1523.    In this chapter, you will use the sample applications, Bricks and Alarm
  1524.    Clock, to learn some basic techniques for using all Presentation Manager
  1525.    applications. Although each Presentation Manager application is unique,
  1526.    all of them have several characteristics in common. For example, the way
  1527.    you open, create, and save files is basically the same in all Presentation
  1528.    Manager applications.
  1529.  
  1530.    Bricks has been designed to incorporate features that are common to many
  1531.    Presentation Manager applications. While playing Bricks and creating your
  1532.    own customized bricks games, you will learn, review,
  1533.    and practice the following skills:
  1534.  
  1535.    ■  Starting applications
  1536.  
  1537.    ■  Switching between applications
  1538.  
  1539.    ■  Using multitasking
  1540.  
  1541.    ■  Opening, creating, and saving files
  1542.  
  1543.    ■  Using dialog boxes
  1544.  
  1545.  
  1546.  Exercise 1: Starting and Playing Bricks
  1547.  
  1548.    In this exercise, you will review how to start a Presentation Manager
  1549.    application by starting Bricks. Then, you will play a game of Bricks to
  1550.    familiarize yourself with the game rules and the way the Bricks
  1551.    application works.
  1552.  
  1553.    Starting Bricks
  1554.  
  1555.    The Bricks game is located in the Demonstration Programs group,
  1556.    so you need to change groups in Start Programs before starting Bricks. You
  1557.    change groups in Start Programs by selecting the Group menu
  1558.    and then choosing the group that you want to change to.
  1559.  
  1560.    If you decided not to shut down MS OS/2 in the last chapter,
  1561.    the first thing you need to do is switch to Start Programs.
  1562.  
  1563.    1.  Choose Start Programs from the list of applications displayed in
  1564.        the Task Manager window (point to Start Programs and double-click with
  1565.        the mouse, or, if you are using your keyboard, select Start
  1566.        Programs with the UP or DOWN key and then press the ENTER key).
  1567.  
  1568.    Now, if you have a mouse, change to the Demonstration Programs group:
  1569.  
  1570.    1.  Point to the Group menu in the Start Programs menu bar and then click
  1571.        the left mouse button. The commands on the Group menu appear on your
  1572.        screen.
  1573.  
  1574.        ┌────────────────────────────────────┐
  1575.        │                                    │
  1576.        │   This screen can be viewed on     │
  1577.        │   page 10 of the printed manual.   │
  1578.        │                                    │
  1579.        └────────────────────────────────────┘
  1580.  
  1581.    2.  Point to Demonstration Programs and then click the left mouse
  1582.        button.
  1583.  
  1584.    If you are using the keyboard, change to the Demonstration Programs group:
  1585.  
  1586.    1.  Press the ALT key and then the G key to select the Group menu.
  1587.  
  1588.    2.  Press the 3 key.
  1589.  
  1590.    A list of applications in the Demonstration Group appears in the Start
  1591.    Programs window.
  1592.  
  1593.    ┌────────────────────────────────────┐
  1594.    │                                    │
  1595.    │   This screen can be viewed on     │
  1596.    │   page 12 of the printed manual.   │
  1597.    │                                    │
  1598.    └────────────────────────────────────┘
  1599.  
  1600.    Now, you can start Bricks. If you are using the mouse, here's how:
  1601.  
  1602.    1.  Point to Bricks and then double-click the left mouse button.
  1603.  
  1604.    If you are using the keyboard, do this to start Bricks:
  1605.  
  1606.    1.  Use the UP or DOWN key to select Bricks and then press
  1607.        the ENTER key.
  1608.  
  1609.    Bricks appears in a window on your screen, with the Paris game displayed
  1610.    in the work area.
  1611.  
  1612.    ┌────────────────────────────────────┐
  1613.    │                                    │
  1614.    │   This screen can be viewed on     │
  1615.    │   page 13 of the printed manual.   │
  1616.    │                                    │
  1617.    └────────────────────────────────────┘
  1618.  
  1619.    The title bar displays the name of the application (in this case, Bricks),
  1620.    the name of the file that is currently open (in this case, PARIS.BRK), and
  1621.    the score counter.
  1622.  
  1623.    The Paris game, as well as the other Bricks games, is composed of numerous
  1624.    rectangular objects, or "bricks," of different sizes and colors. The
  1625.    object of the game is to clear the screen by knocking away all
  1626.    of the bricks that compose the scene.
  1627.  
  1628.    Before you play a game of Bricks, take a few minutes to read the next two
  1629.    sections to learn the game rules and to familiarize yourself with how
  1630.    Bricks works.
  1631.  
  1632.    Game Rules
  1633.  
  1634.    There are two options for playing Bricks──you can use the Play command to
  1635.    play a game yourself or you can use the Self Play command
  1636.    to have Bricks play a game automatically. To get an idea of how Bricks
  1637.    works, start a self-play game of Bricks and then watch what happens.
  1638.  
  1639.    To start a self-play game of Bricks by using your mouse, follow these
  1640.    steps:
  1641.  
  1642.    1.  Point to the Game menu in the Bricks menu bar and then click
  1643.        the left mouse button. The Game menu appears on your screen.
  1644.  
  1645.        ┌────────────────────────────────────┐
  1646.        │                                    │
  1647.        │   This screen can be viewed on     │
  1648.        │   page 14 of the printed manual.   │
  1649.        │                                    │
  1650.        └────────────────────────────────────┘
  1651.  
  1652.    2.  Point to the Self Play command and then click the left mouse
  1653.        button.
  1654.  
  1655.    If you are using the keyboard, do this to start a self-play game:
  1656.  
  1657.    1.  Press the ALT key and then the G key to select the Game menu.
  1658.  
  1659.    2.  Press the DOWN key once to select Self Play and then press
  1660.        the ENTER key.
  1661.  
  1662.    A small white ball appears in the work area and starts moving toward the
  1663.    bricks.
  1664.  
  1665.    ┌────────────────────────────────────┐
  1666.    │                                    │
  1667.    │   This screen can be viewed on     │
  1668.    │   page 15 of the printed manual.   │
  1669.    │                                    │
  1670.    └────────────────────────────────────┘
  1671.  
  1672.    When the ball hits a brick, the brick is removed from the work area and
  1673.    you are awarded points, which are displayed by the score counter. The red
  1674.    paddle at the bottom of the window moves back and forth with the ball.
  1675.    When the ball hits the paddle, the ball bounces back into play.
  1676.  
  1677.    ┌────────────────────────────────────┐
  1678.    │                                    │
  1679.    │   This screen can be viewed on     │
  1680.    │   page 15 of the printed manual.   │
  1681.    │                                    │
  1682.    └────────────────────────────────────┘
  1683.  
  1684.    Setting Options
  1685.  
  1686.    When you first start a game of Bricks, the paddle size is set to Medium
  1687.    Paddle, the ball speed is set to Regular Ball, and the sound is turned on.
  1688.    If, while you are playing a game, you want to make the game easier or more
  1689.    challenging, you can adjust the paddle size and the ball speed yourself.
  1690.  
  1691.    You can also turn off the sound so that your computer won't beep each time
  1692.    the ball hits a brick. You adjust the ball speed, paddle size, and sound
  1693.    by using the commands on the Options menu. Many Presentation Manager
  1694.    applications have an Options menu that you can use to change the way your
  1695.    application runs.
  1696.  
  1697.    To see how this works, try making the ball move slower:
  1698.  
  1699.    1.  Select the Options menu (point to it and then click the left mouse
  1700.        button or press the ALT key and then the O key).
  1701.  
  1702.        The commands on the Options menu appear on your screen.
  1703.  
  1704.        ┌────────────────────────────────────┐
  1705.        │                                    │
  1706.        │   This screen can be viewed on     │
  1707.        │   page 16 of the printed manual.   │
  1708.        │                                    │
  1709.        └────────────────────────────────────┘
  1710.  
  1711.        Notice the check marks next to the Medium Paddle, Regular Ball, and
  1712.        Sound commands. A check mark next to a command shows you that it is
  1713.        currently active.
  1714.  
  1715.    2.  Choose the Slow Ball command to slow down the ball (point to it and
  1716.        then click the left mouse button or use the DOWN key to select it and
  1717.        then press the ENTER key).
  1718.  
  1719.    The ball now moves slower in the Bricks window. If you were to select the
  1720.    Options menu again, you would see a check mark next to the Slow Ball
  1721.    command, since it is now active.
  1722.  
  1723.    If you want to adjust the paddle size, just select the Options menu again
  1724.    and choose the paddle size you want to use. To turn the Sound off, select
  1725.    the Options menu one more time and then choose the Sound command.
  1726.  
  1727.    Playing a Game Yourself
  1728.  
  1729.    Now that you've seen how Bricks works, try playing a game yourself:
  1730.  
  1731.    1.  Select the Game menu (click the menu or press ALT, G).
  1732.  
  1733.        The commands on the Game menu appear on your screen.
  1734.  
  1735.        ┌────────────────────────────────────┐
  1736.        │                                    │
  1737.        │   This screen can be viewed on     │
  1738.        │   page 17 of the printed manual.   │
  1739.        │                                    │
  1740.        └────────────────────────────────────┘
  1741.  
  1742.    2.  Choose the Play command (click the command or, since it is already
  1743.        selected, press the ENTER key).
  1744.  
  1745.        The first ball appears in the window and starts moving toward
  1746.        the bricks.
  1747.  
  1748.    3.  Use the RIGHT and LEFT keys to move the paddle and keep
  1749.        the ball in play.
  1750.  
  1751.    If the ball misses the paddle, it is taken out of play. Bricks gives you
  1752.    three balls per game. When you've used up all three balls, a message
  1753.    appears, letting you know that the game is over. The message displays how
  1754.    many bricks you hit out of all the bricks possible.
  1755.  
  1756.    ┌────────────────────────────────────┐
  1757.    │                                    │
  1758.    │   This screen can be viewed on     │
  1759.    │   page 18 of the printed manual.   │
  1760.    │                                    │
  1761.    └────────────────────────────────────┘
  1762.  
  1763.    To delete the message from your screen, do the following:
  1764.  
  1765.    1.  Click the OK button or press the ENTER key.
  1766.  
  1767.    Stopping and Resuming a Game
  1768.  
  1769.    If you want to take a break in the middle of a game, you can stop it
  1770.    any time and then resume it when you are ready. Just choose the Stop
  1771.    command from the Game menu to stop the game. When you are ready
  1772.    to resume the game, choose the Continue command. Now try stopping and
  1773.    resuming your game:
  1774.  
  1775.    1.  Select the Game menu (click the menu or press ALT, G).
  1776.  
  1777.    2.  Choose the Stop command (click the command or press the S key).
  1778.  
  1779.        The ball and the paddle stop moving and the game pauses.
  1780.  
  1781.    3.  Select the Game menu again.
  1782.  
  1783.    4.  Choose the Continue command.
  1784.  
  1785.        The ball and the paddle start moving again.
  1786.  
  1787.    To start a new game at any time, just choose the Play command from the
  1788.    Game menu again. The Paris game will reappear in the window, with all its
  1789.    bricks in place. When you are ready, go on to the next
  1790.    exercise to learn how to open files.
  1791.  
  1792.  
  1793.  Exercise 2: Opening Files
  1794.  
  1795.    In this exercise, you'll learn how to open files and use dialog boxes
  1796.    in Presentation Manager applications. Because you just played a game
  1797.    of Bricks using the PARIS.BRK file, you'll open a different file called
  1798.    SEATTLE.BRK.
  1799.  
  1800.    You open files in most Presentation Manager applications with the Open
  1801.    command on the File menu. Choose the Open command
  1802.    by using either your mouse or your keyboard. The general procedure
  1803.    is the same:
  1804.  
  1805.    1.  Select the File menu (click the menu or press ALT, F).
  1806.  
  1807.        The commands on the File menu appear on your screen.
  1808.  
  1809.        ┌────────────────────────────────────┐
  1810.        │                                    │
  1811.        │   This screen can be viewed on     │
  1812.        │   page 19 of the printed manual.   │
  1813.        │                                    │
  1814.        └────────────────────────────────────┘
  1815.  
  1816.    2.  Choose the Open command (click the command or press
  1817.        the O key).
  1818.  
  1819.        The Open Brick File dialog box appears on your screen.
  1820.  
  1821.    Using a Dialog Box
  1822.  
  1823.    Some commands in Presentation Manager applications, such as
  1824.    the Open command, require additional information from you before
  1825.    the command can be carried out. If this is the case, the application
  1826.    displays a dialog box on your screen. The dialog box prompts you
  1827.    to select items, choose options, or type additional information needed
  1828.    to carry out the command.
  1829.  
  1830.    ┌────────────────────────────────────┐
  1831.    │                                    │
  1832.    │   This screen can be viewed on     │
  1833.    │   page 20 of the printed manual.   │
  1834.    │                                    │
  1835.    └────────────────────────────────────┘
  1836.  
  1837.    The Open Brick File dialog box includes three different types of areas──a
  1838.    text box, two list boxes, and two command buttons. The selection cursor
  1839.    shows you which area of the dialog box is currently selected. To specify
  1840.    the game file that you want to open, you can either select the filename
  1841.    from the list of files displayed in the list box or you can type the name
  1842.    of the file in the text box. The insertion point marks the place in the
  1843.    text box where you start typing, and as you type, it moves to the right.
  1844.    Once you've selected or typed the filename, choose the Open command button
  1845.    to carry out the Open command.
  1846.  
  1847.    If a file is already open (in this case, the PARIS.BRK file is open),
  1848.    the name of that file appears in the text box. Now open the file
  1849.    named SEATTLE.BRK by erasing PARIS.BRK and then typing SEATTLE.BRK in the
  1850.    text box:
  1851.  
  1852.    1.  Press the BACKSPACE key repeatedly to erase PARIS.BRK. The insertion
  1853.        point moves to the left as you press the BACKSPACE key.
  1854.  
  1855.    2.  Now type the following:
  1856.  
  1857.        seattle.brk
  1858.  
  1859.        The insertion point moves to the right as you type.
  1860.  
  1861.        ┌────────────────────────────────────┐
  1862.        │                                    │
  1863.        │   This screen can be viewed on     │
  1864.        │   page 21 of the printed manual.   │
  1865.        │                                    │
  1866.        └────────────────────────────────────┘
  1867.  
  1868.        If you make a mistake while typing, use the BACKSPACE key
  1869.        to erase it, and then continue typing.
  1870.  
  1871.    3.  When you've typed the filename correctly, point to the Open
  1872.        command button and then click the left mouse button. If you don't
  1873.        have a mouse, just press the ENTER key.
  1874.  
  1875.        ┌────────────────────────────────────┐
  1876.        │                                    │
  1877.        │   This screen can be viewed on     │
  1878.        │   page 21 of the printed manual.   │
  1879.        │                                    │
  1880.        └────────────────────────────────────┘
  1881.  
  1882.  
  1883.    The Seattle game appears in the work area of the Bricks window. Because
  1884.    the Seattle game is larger than the Paris game, the Bricks
  1885.    window expands to fill your entire screen.
  1886.  
  1887.    Now play another game of Bricks, or go on to the next step to learn how to
  1888.    use list boxes. Remember, you can stop and then resume
  1889.    your game at any time by using the Stop and Continue commands
  1890.    on the Game menu.
  1891.  
  1892.    When you've finished playing, try opening another file. This time, open
  1893.    the file that contains the Athens game by selecting it from the list
  1894.    of files in the list box. Do the following:
  1895.  
  1896.    1.  Select the File menu (click the menu or press ALT, F).
  1897.  
  1898.    2.  Choose the Open command (click the command or press the
  1899.        O key).
  1900.  
  1901.    The Open Brick File dialog box appears on your screen.
  1902.  
  1903.    ┌────────────────────────────────────┐
  1904.    │                                    │
  1905.    │   This screen can be viewed on     │
  1906.    │   page 22 of the printed manual.   │
  1907.    │                                    │
  1908.    └────────────────────────────────────┘
  1909.  
  1910.    If you are using a mouse, follow these steps to select the file:
  1911.  
  1912.    1.  Point to the file named ATHENS.BRK in the Filenames list box
  1913.        and then double-click the left mouse button.
  1914.  
  1915.    If you are using your keyboard, you use the TAB key to move around
  1916.    in a dialog box and the UP and DOWN keys to select items in an area. Move
  1917.    to the Filenames list box and select the ATHENS.BRK file:
  1918.  
  1919.    1.  Press the TAB key twice to move to the Filenames list box. The
  1920.        selection cursor appears in the list box, showing you that the list
  1921.        box is selected.
  1922.  
  1923.        ┌────────────────────────────────────┐
  1924.        │                                    │
  1925.        │   This screen can be viewed on     │
  1926.        │   page 22 of the printed manual.   │
  1927.        │                                    │
  1928.        └────────────────────────────────────┘
  1929.  
  1930.    2.  Press the UP key repeatedly until the file named ATHENS.BRK is
  1931.        selected.
  1932.  
  1933.    3.  Press the ENTER key.
  1934.  
  1935.    The Athens game appears in the window.
  1936.  
  1937.    ┌────────────────────────────────────┐
  1938.    │                                    │
  1939.    │   This screen can be viewed on     │
  1940.    │   page 23 of the printed manual.   │
  1941.    │                                    │
  1942.    └────────────────────────────────────┘
  1943.  
  1944.    Now go on to the next exercise to learn about multitasking.
  1945.  
  1946.  
  1947.  Exercise 3: Learning About Multitasking
  1948.  
  1949.    In MS OS/2 you can perform several related tasks or even several
  1950.    completely different tasks at the same time. This feature is called
  1951.    multitasking.
  1952.  
  1953.    To see how multitasking works in the Presentation Manager session, you'll
  1954.    start another application called Alarm Clock and run it at the same time
  1955.    you are running Bricks. Before you can start Alarm Clock, you need to
  1956.    switch to Start Programs.
  1957.  
  1958.    If you don't remember how to switch to another application with Task
  1959.    Manager, here's a review:
  1960.  
  1961.    1.  Press CTRL+ESC to make Task Manager active.
  1962.  
  1963.        ┌────────────────────────────────────┐
  1964.        │                                    │
  1965.        │   This screen can be viewed on     │
  1966.        │   page 23 of the printed manual.   │
  1967.        │                                    │
  1968.        └────────────────────────────────────┘
  1969.  
  1970.    2.  Choose Start Programs from the list of applications in the Task
  1971.        Manager window (double-click Start Programs or use the UP or DOWN key
  1972.        to select it and then press the ENTER key).
  1973.  
  1974.    Start Programs moves to the front of your screen, displaying the list
  1975.    of applications in the Demonstration Programs group.
  1976.  
  1977.    ┌────────────────────────────────────┐
  1978.    │                                    │
  1979.    │   This screen can be viewed on     │
  1980.    │   page 24 of the printed manual.   │
  1981.    │                                    │
  1982.    └────────────────────────────────────┘
  1983.  
  1984.    Now, you can start Alarm Clock:
  1985.  
  1986.    1.  Choose Alarm Clock from the list of applications displayed
  1987.        in the window.
  1988.  
  1989.    Alarm Clock appears in a window on your screen, displaying the time.
  1990.  
  1991.    ┌────────────────────────────────────┐
  1992.    │                                    │
  1993.    │   This screen can be viewed on     │
  1994.    │   page 24 of the printed manual.   │
  1995.    │                                    │
  1996.    └────────────────────────────────────┘
  1997.  
  1998.    You now have two application windows on your screen at the same time. Use
  1999.    Task Manager to switch to the Bricks window and start
  2000.    a self-play game:
  2001.  
  2002.    1.  Press CTRL+ESC to make Task Manager active.
  2003.  
  2004.    2.  Choose Bricks from the list of applications displayed in the Task
  2005.        Manager window.
  2006.  
  2007.    The Bricks window, with the Athens game displayed, moves to
  2008.    the front of your screen, showing you that Bricks is now the active
  2009.    application.
  2010.  
  2011.    Now start a self-play game of Bricks:
  2012.  
  2013.    1.  Select the Game menu.
  2014.  
  2015.    2.  Choose the Self Play command.
  2016.  
  2017.    The ball in the Bricks window starts moving.
  2018.  
  2019.    ┌────────────────────────────────────┐
  2020.    │                                    │
  2021.    │   This screen can be viewed on     │
  2022.    │   page 25 of the printed manual.   │
  2023.    │                                    │
  2024.    └────────────────────────────────────┘
  2025.  
  2026.    You now have Alarm Clock and a game of Bricks going on at once,
  2027.    illustrating the multitasking capabilities of MS OS/2.
  2028.  
  2029.    Now use Task Manager to switch to the Alarm Clock window so that you
  2030.    can quit Alarm Clock and close the window:
  2031.  
  2032.    1.  Press CTRL+ESC to display Task Manager.
  2033.  
  2034.    2.  Choose Alarm from the list of applications displayed in the Task
  2035.        Manager window.
  2036.  
  2037.    The Alarm Clock window becomes active, as shown by the colored
  2038.    title bar.
  2039.  
  2040.    ┌────────────────────────────────────┐
  2041.    │                                    │
  2042.    │   This screen can be viewed on     │
  2043.    │   page 26 of the printed manual.   │
  2044.    │                                    │
  2045.    └────────────────────────────────────┘
  2046.  
  2047.    Now quit Alarm Clock and close the window. If you are using a mouse, do
  2048.    the following:
  2049.  
  2050.    1.  Point to the System-menu box in the Alarm Clock window and
  2051.        double-click the left mouse button.
  2052.  
  2053.    If you are using your keyboard, here's how you quit Alarm Clock:
  2054.  
  2055.    1.  Press SHIFT+ESC to display the System menu.
  2056.  
  2057.    2.  Press the C key to choose the Close command.
  2058.  
  2059.    The Alarm Clock window disappears and the Start Programs window
  2060.    is now active.
  2061.  
  2062.    ┌────────────────────────────────────┐
  2063.    │                                    │
  2064.    │   This screen can be viewed on     │
  2065.    │   page 27 of the printed manual.   │
  2066.    │                                    │
  2067.    └────────────────────────────────────┘
  2068.  
  2069.    Now switch to the Bricks window with Task Manager:
  2070.  
  2071.    1.  Press CTRL+ESC to display Task Manager.
  2072.  
  2073.    2.  Choose Bricks from the list of applications displayed in
  2074.        the Task Manager window.
  2075.  
  2076.    Bricks moves to the front of your screen and becomes the active
  2077.    application.
  2078.  
  2079.    Now go on to the next exercise to learn how to create new files.
  2080.  
  2081.  
  2082.  Exercise 4: Creating New Files
  2083.  
  2084.    This exercise demonstrates how you can create new files by creating your
  2085.    own customized Bricks game.
  2086.  
  2087.    To create your own game, the first thing you need to do is clear the
  2088.    Athens game from the work area and create a new file for storing your
  2089.    game.
  2090.  
  2091.    In most Presentation Manager applications, you create new files by
  2092.    using the New command on the File menu. Try it now, using either your
  2093.    mouse or your keyboard. The general procedure is the same:
  2094.  
  2095.    1.  Select the File menu (click the menu or press ALT, F).
  2096.  
  2097.        The commands on the File menu appear on your screen.
  2098.  
  2099.        ┌────────────────────────────────────┐
  2100.        │                                    │
  2101.        │   This screen can be viewed on     │
  2102.        │   page 28 of the printed manual.   │
  2103.        │                                    │
  2104.        └────────────────────────────────────┘
  2105.  
  2106.    2.  Choose the New command (click the command or, since it is already
  2107.        selected, press the ENTER key).
  2108.  
  2109.    The Athens game is cleared from the work area and the word
  2110.    "untitled" appears in the title bar.
  2111.  
  2112.    ┌────────────────────────────────────┐
  2113.    │                                    │
  2114.    │   This screen can be viewed on     │
  2115.    │   page 29 of the printed manual.   │
  2116.    │                                    │
  2117.    └────────────────────────────────────┘
  2118.  
  2119.    The word "untitled" in the title bar lets you know that the file displayed
  2120.    in the window does not have a filename assigned to it. You'll learn how to
  2121.    assign names to new files later on. Now, you can begin creating your new
  2122.    game.
  2123.  
  2124.    Adding Bricks
  2125.  
  2126.    In Bricks, there are two ways that you can add bricks to create a new
  2127.    game──by using either the Random Bricks or the Add Bricks commands on the
  2128.    Bricks menu.
  2129.  
  2130.    With the Random Bricks command, Bricks clears whatever is currently
  2131.    displayed in the work area and replaces it with a stack of bricks of
  2132.    different colors and sizes. This lets you create a basic Bricks game
  2133.    quickly and easily. In this exercise, you won't be using the Random Bricks
  2134.    command. Instead, you will create your own Bricks game by using any size
  2135.    or color of bricks you'd like to make a scene or picture of your choice.
  2136.  
  2137.    With the Add Bricks command, you can specify the color and size
  2138.    of the bricks that you want to add to your game by selecting the brick
  2139.    color, height, and width from the color and size options in the Add Bricks
  2140.    dialog box.
  2141.  
  2142.    Start creating your game by specifying the first kind of brick you want
  2143.    to add to your game. To do this, choose the Add Bricks command:
  2144.  
  2145.    1.  Select the Bricks menu.
  2146.  
  2147.        ┌────────────────────────────────────┐
  2148.        │                                    │
  2149.        │   This screen can be viewed on     │
  2150.        │   page 30 of the printed manual.   │
  2151.        │                                    │
  2152.        └────────────────────────────────────┘
  2153.  
  2154.    2.  Choose the Add Bricks command.
  2155.  
  2156.    The Add Bricks dialog box appears on your screen.
  2157.  
  2158.    ┌────────────────────────────────────┐
  2159.    │                                    │
  2160.    │   This screen can be viewed on     │
  2161.    │   page 31 of the printed manual.   │
  2162.    │                                    │
  2163.    └────────────────────────────────────┘
  2164.  
  2165.    Using the Add Bricks Dialog Box
  2166.  
  2167.    The Add Bricks dialog box is a different kind of dialog box from the Open
  2168.    dialog box. Instead of a text box and list boxes, it contains three groups
  2169.    of round option buttons──one group for the brick color, one for the brick
  2170.    width, and one for the brick height. Like the Open dialog box, the Add
  2171.    Bricks dialog box also includes a selection cursor and two command
  2172.    buttons──Enter and Cancel.
  2173.  
  2174.    To specify the type of brick you want to add, you select the option
  2175.    button that corresponds to the color, width, and height of the brick.
  2176.    In most Presentation Manager applications, you select an option button
  2177.    by pointing to it and then clicking the left mouse button or, if you are
  2178.    using your keyboard, by pressing the TAB key to move to the group of
  2179.    options you want to use, and then using the UP and DOWN keys to select the
  2180.    option. A round mark appears inside the option button when the
  2181.    corresponding option is selected.
  2182.  
  2183.    Use the Add Bricks dialog box to specify the kind of brick you want
  2184.    to add. If you are using a mouse, do the following:
  2185.  
  2186.    1.  Click the option button in the Brick Colors group that corresponds to
  2187.        the brick color of your choice.
  2188.  
  2189.    2.  Click the option button in the Brick Width group that corresponds to
  2190.        the brick width of your choice.
  2191.  
  2192.    3.  Click the option button in the Brick Height group that corresponds to
  2193.        the brick height of your choice.
  2194.  
  2195.        The brick in the lower-right corner of the dialog box shows what
  2196.        the brick looks like with the options you've just selected.
  2197.  
  2198.    4.  Click the Enter command button to activate your selections.
  2199.  
  2200.    If you are using the keyboard, follow these steps to specify the brick you
  2201.    want to add:
  2202.  
  2203.    1.  Press the UP or DOWN key to select the option button that corresponds
  2204.        to the brick color of your choice.
  2205.  
  2206.    2.  Press the TAB key to move to the Brick Width group.
  2207.  
  2208.        The selection cursor appears around the second option button
  2209.        in the Brick Width group, showing you that the group is selected.
  2210.  
  2211.        ┌────────────────────────────────────┐
  2212.        │                                    │
  2213.        │   This screen can be viewed on     │
  2214.        │   page 31 of the printed manual.   │
  2215.        │                                    │
  2216.        └────────────────────────────────────┘
  2217.  
  2218.    3.  Press the UP or DOWN key to select the option button that corresponds
  2219.        to the brick width of your choice.
  2220.  
  2221.    4.  Press the TAB key to move to the Brick Height group.
  2222.  
  2223.        The selection cursor now appears around the first option in the
  2224.        Brick Height group.
  2225.  
  2226.    5.  Press the UP or DOWN key to select the option button that corresponds
  2227.        to the brick height of your choice.
  2228.  
  2229.        The brick in the lower-right corner of the dialog box shows what
  2230.        the brick looks like with the options you've just selected.
  2231.  
  2232.    6.  Press the ENTER key to activate your selections.
  2233.  
  2234.    After you've specified the kind of brick you want to add, the pointer
  2235.    turns into cross-hairs, showing you that you can now add the bricks
  2236.    you specified to your game.
  2237.  
  2238.    ┌────────────────────────────────────┐
  2239.    │                                    │
  2240.    │   This screen can be viewed on     │
  2241.    │   page 32 of the printed manual.   │
  2242.    │                                    │
  2243.    └────────────────────────────────────┘
  2244.  
  2245.    Adding a Brick to Your Game
  2246.  
  2247.    Now add the brick you just specified to your game. If you have a
  2248.    mouse, follow these steps:
  2249.  
  2250.    1.  Point to the place in the work area where you want the bottom-left
  2251.        corner of the brick to appear.
  2252.  
  2253.    2.  Click the left mouse button.
  2254.  
  2255.    If you are using your keyboard, follow these steps to add a brick:
  2256.  
  2257.    1.  Use the DIRECTION keys to move the pointer to the place in
  2258.        the work area where you want the bottom-left corner of the brick
  2259.        to appear.
  2260.  
  2261.    2.  Press the SPACEBAR to add the brick.
  2262.  
  2263.    The brick appears in the work area.
  2264.  
  2265.    If the brick you are about to add is on top of another brick, a message
  2266.    box appears, asking if you want to overlap bricks.
  2267.  
  2268.    ┌────────────────────────────────────┐
  2269.    │                                    │
  2270.    │   This screen can be viewed on     │
  2271.    │   page 33 of the printed manual.   │
  2272.    │                                    │
  2273.    └────────────────────────────────────┘
  2274.  
  2275.    If you want to create a solid mass of color by overlapping bricks, choose
  2276.    the Yes button by pointing to it and then clicking the left mouse button
  2277.    or press the LEFT key to select it and then press the ENTER key. If you
  2278.    don't want to overlap bricks, just press the ENTER key.
  2279.  
  2280.    You can now continue adding bricks of the same size and color to your new
  2281.    game, or you can use the Add Bricks dialog box to specify a new kind of
  2282.    brick.
  2283.  
  2284.    To specify a new kind of brick, choose the Add Bricks command from the
  2285.    Bricks menu and then select the color, width, and height for the new brick
  2286.    you want to add. Continue to repeat these steps, specifying and placing as
  2287.    many kinds of bricks as you want.
  2288.  
  2289.    Correcting Mistakes
  2290.  
  2291.    If you make a mistake and put a brick in the wrong place, you can clear it
  2292.    from the work area by using the Undo command on the Edit menu. In most
  2293.    Presentation Manager applications, choosing the Undo command cancels the
  2294.    last action (such as adding or removing a brick) that you performed.
  2295.  
  2296.    Here's how to cancel your last action:
  2297.  
  2298.    1.  Select the Edit menu.
  2299.  
  2300.    2.  Choose the Undo command.
  2301.  
  2302.    The work area looks the same as it did before you performed your
  2303.    last action. You can now add the brick again so that it appears in the
  2304.    correct place.
  2305.  
  2306.    Removing Bricks
  2307.  
  2308.    You can remove bricks at any time from any game file. If you put
  2309.    a brick in the wrong place while creating your game, or if you just
  2310.    want to remove it, use the Remove Bricks command. Here's how:
  2311.  
  2312.    1.  Select the Bricks menu.
  2313.  
  2314.    2.  Choose the Remove Bricks command.
  2315.  
  2316.    The pointer turns into a moving hammer with a nail underneath it,
  2317.    your tool for removing unwanted bricks.
  2318.  
  2319.    If you have a mouse, here's how to remove a brick:
  2320.  
  2321.    1.  Point to the brick you want to remove so that the nail is on top
  2322.        of it.
  2323.  
  2324.    2.  Click the left mouse button.
  2325.  
  2326.    If you are using your keyboard, follow these steps to remove a brick:
  2327.  
  2328.    1.  Use the DIRECTION keys to move the nail over the brick you want
  2329.        to remove.
  2330.  
  2331.    2.  Press the SPACEBAR.
  2332.  
  2333.    When you click the left mouse button or press the SPACEBAR, the brick
  2334.    disappears.
  2335.  
  2336.    If, directly after removing a brick, you decide that you want
  2337.    to keep it after all, you can use the Undo command to restore it. Here's
  2338.    how:
  2339.  
  2340.    1.  Select the Edit menu and choose the Undo command.
  2341.  
  2342.    The brick you removed reappears in its previous place in the work area.
  2343.  
  2344.    Completing Your Game
  2345.  
  2346.    To switch back to adding bricks, just choose the Add Bricks command from
  2347.    the Bricks menu and then specify the type of brick you want
  2348.    to add.
  2349.  
  2350.    If you are using a mouse, here's a quick method for adding the rest
  2351.    of the bricks to your game:
  2352.  
  2353.    1.  Use the Add Bricks command to specify the color of brick you want to
  2354.        add. (With this method, you don't need to specify the brick height or
  2355.        width.)
  2356.  
  2357.    2.  Point to the place where you want the brick to appear.
  2358.  
  2359.    3.  Press and hold down the right mouse button.
  2360.  
  2361.    4.  Drag the cross-hairs. As you drag the cross-hairs, the brick changes
  2362.        size.
  2363.  
  2364.        ┌────────────────────────────────────┐
  2365.        │                                    │
  2366.        │   This screen can be viewed on     │
  2367.        │   page 34 of the printed manual.   │
  2368.        │                                    │
  2369.        └────────────────────────────────────┘
  2370.  
  2371.    5.  When the brick is the size you want it, release the right mouse
  2372.        button.
  2373.  
  2374.    Using this method, you can add bricks of any size. If you put a brick in
  2375.    the wrong place, use either the Undo command or the Remove Bricks command
  2376.    to correct your mistake.
  2377.  
  2378.    When you are finished creating your new game, go on to the next
  2379.    exercise to learn how to save it.
  2380.  
  2381.  
  2382.  Exercise 5: Saving Files
  2383.  
  2384.    Once your game is complete, you can save it in a separate file by using
  2385.    the Save or Save As command on the File menu.
  2386.  
  2387.    If you've modified a game file that already exists, you can use the Save
  2388.    command to save your modified file and overwrite the original file, or you
  2389.    can use the Save As command to keep the original file and save
  2390.    the modified file under a new filename.
  2391.  
  2392.    For example, suppose you added some bricks to the Seattle game.
  2393.    You could either use the Save command to overwrite the original
  2394.    SEATTLE.BRK file, or you could use the Save As command to store the
  2395.    modified Seattle game in a separate file with its own filename,
  2396.    such as NEWFILE.BRK, leaving the original SEATTLE.BRK file unchanged.
  2397.  
  2398.    If you are saving a new file that does not yet have a name assigned
  2399.    to it (such as the new game file you just created), use the Save As
  2400.    command. To save your new game, do the following:
  2401.  
  2402.    1.  Select the File menu.
  2403.  
  2404.    2.  Choose the Save As command.
  2405.  
  2406.        A dialog box appears, prompting you for a name for the new file.
  2407.  
  2408.        ┌────────────────────────────────────┐
  2409.        │                                    │
  2410.        │   This screen can be viewed on     │
  2411.        │   page 35 of the printed manual.   │
  2412.        │                                    │
  2413.        └────────────────────────────────────┘
  2414.  
  2415.    3.  In the text box, type a descriptive name for your new game file,
  2416.        including the .BRK extension.
  2417.  
  2418.        For example, suppose you have created a scene of your favorite city.
  2419.        You might name the file MYCITY.BRK.
  2420.  
  2421.    4.  Choose the Save button (click it or press the TAB key and then
  2422.        the ENTER key).
  2423.  
  2424.    Bricks stores your game in a file and assigns it the filename you typed.
  2425.  
  2426.    You may want to play the game you just created, or you may want
  2427.    to try your hand at the Tokyo or Atlantis game (TOKYO.BRK or
  2428.    ATLANTIS.BRK).
  2429.  
  2430.    You can play any of the Bricks games as they are, or you can modify them
  2431.    by adding or removing bricks.
  2432.  
  2433.    If you decide to modify an existing game, use the Save As command to save
  2434.    your modified game in a separate file. Otherwise, you will lose the
  2435.    original game by overwriting the existing file with the modified game.
  2436.  
  2437.  
  2438.  Quitting Bricks
  2439.  
  2440.    When you are finished using Bricks, quit Bricks and close the Bricks
  2441.    window. Here's a reminder on how to quit an application and close
  2442.    a window with the mouse:
  2443.  
  2444.    1.  Double-click the System-menu box. If you modified the current game
  2445.        file, a message appears, asking if you want to save your
  2446.        changes.
  2447.  
  2448.        ┌────────────────────────────────────┐
  2449.        │                                    │
  2450.        │   This screen can be viewed on     │
  2451.        │   page 36 of the printed manual.   │
  2452.        │                                    │
  2453.        └────────────────────────────────────┘
  2454.  
  2455.    2.  If you want to save your changes, double-click the Yes button.
  2456.        Otherwise, press the ENTER key to choose the No button.
  2457.  
  2458.    If you are using your keyboard, follow these steps to quit Bricks:
  2459.  
  2460.    1.  Press SHIFT+ESC to select the System menu.
  2461.  
  2462.    2.  Press the C key to choose the Close command. If you modified
  2463.        the current game file, a message appears, asking if you want to
  2464.        save your changes.
  2465.  
  2466.    3.  If you want to save your changes, press the LEFT key to select
  2467.        the Yes button and then press the ENTER key. Otherwise, just press
  2468.        the ENTER key to choose the No button.
  2469.  
  2470.    The Bricks window disappears.
  2471.  
  2472.    Shutting Down MS OS/2
  2473.  
  2474.    If you want to take a break before going on to the next chapter, you
  2475.    might want to shut down MS OS/2 if you're going to be away from your
  2476.    computer for a while.
  2477.  
  2478.    Here's a review of how to shutdown MS OS/2:
  2479.  
  2480.    1.  Switch to Task Manager (press CTRL+ESC).
  2481.  
  2482.    2.  Choose the Shutdown Now command from the Shutdown menu.
  2483.  
  2484.        A message appears, asking if you want to quit the applications
  2485.        that are still running and continue shutting down MS OS/2.
  2486.  
  2487.    3.  Choose the Yes button.
  2488.  
  2489.        A message appears to let you know that it is now safe to turn off your
  2490.        computer.
  2491.  
  2492.    You can now safely turn off your computer or you can press the ENTER key
  2493.    to restart MS OS/2.
  2494.  
  2495.  
  2496.  Summary
  2497.  
  2498.    This chapter has described some basic techniques for using Presentation
  2499.    Manager applications and has introduced you to the multitasking feature of
  2500.    MS OS/2. The methods for performing certain tasks, such as using dialog
  2501.    boxes, and opening, creating, and saving files are similar, regardless of
  2502.    the Presentation Manager application you are using.
  2503.  
  2504.    Although Presentation Manager applications are similar in some ways, keep
  2505.    in mind that each one is unique and is designed for performing specific
  2506.    kinds of tasks. To learn how to best use a specific Presentation Manager
  2507.    application, see the user's instructions that accompany it.
  2508.  
  2509.    When you are ready, go on to Chapter 3, "Learning File System,"
  2510.    to learn how you can use File System to help you manage your files
  2511.    and directories.
  2512.  
  2513.  
  2514.  
  2515.  ────────────────────────────────────────────────────────────────────────────
  2516.  Chapter 3  Learning File System
  2517.  
  2518.    Introduction
  2519.    Exercise 1: Starting File System
  2520.      Looking at the Directory Tree Window
  2521.    Exercise 2: Opening a Directory Window
  2522.      Looking at the Directory Window
  2523.      Changing the Display in a Directory Window
  2524.    Exercise 3: Managing Files and Directories
  2525.      Creating and Opening Subdirectories
  2526.      Arranging File System Windows
  2527.      Switching Between Directory Windows
  2528.      Copying Files
  2529.      Moving Files
  2530.      Renaming Files
  2531.      Deleting Files
  2532.    Exercise 4: Closing Directory Windows
  2533.    Exercise 5: Quitting File System
  2534.      Shutting Down MS OS/2
  2535.    Summary
  2536.  
  2537.  
  2538.  Introduction
  2539.  
  2540.    File System is a Presentation Manager application you can use to manage
  2541.    your files and directories. With File System, you can view the directory
  2542.    structure of any drive you choose and look at the contents of your
  2543.    directories. To help you keep your files and directories organized and
  2544.    up-to-date, File System provides you with easy ways to perform several
  2545.    file-management tasks, such as copying, moving, renaming,
  2546.    and deleting files and directories.
  2547.  
  2548.    While working through the exercises in this chapter, you will use
  2549.    the Bricks game files that you used in the previous chapter to learn
  2550.    and practice these skills:
  2551.  
  2552.    ■  Viewing the directory structure on your disk
  2553.  
  2554.    ■  Opening directory windows
  2555.  
  2556.    ■  Creating subdirectories
  2557.  
  2558.    ■  Arranging File System windows
  2559.  
  2560.    ■  Copying, moving, renaming, and deleting files
  2561.  
  2562.    ■  Closing directory windows
  2563.  
  2564.  
  2565.  Exercise 1: Starting File System
  2566.  
  2567.    To begin learning File System, start File System from Start Programs.
  2568.  
  2569.    If you decided not to shut down MS OS/2 in the last chapter, the first
  2570.    thing you need to do is switch to Start Programs. Here's a reminder:
  2571.  
  2572.    1.  Choose Start Programs from the list of applications displayed
  2573.        in the Task Manager window.
  2574.  
  2575.    To start File System, you need to be in the Main Group. If you are not in
  2576.    the Main Group, change to it now:
  2577.  
  2578.    1.  Choose Main Group from the Group menu.
  2579.  
  2580.    Now, to start File System with the mouse, do the following:
  2581.  
  2582.    1.  Double-click File System in the work area of the Start Programs
  2583.        window.
  2584.  
  2585.    To start File System by using your keyboard, follow these steps:
  2586.  
  2587.    1.  If File System is not already selected, press the UP or DOWN key
  2588.        to select it.
  2589.  
  2590.    2.  Press the ENTER key.
  2591.  
  2592.    The File System window appears on your screen, with the Directory Tree
  2593.    window displayed in it.
  2594.  
  2595.    ┌────────────────────────────────────┐
  2596.    │                                    │
  2597.    │   This screen can be viewed on     │
  2598.    │   page 98 of the printed manual.   │
  2599.    │                                    │
  2600.    └────────────────────────────────────┘
  2601.  
  2602.    Looking at the Directory Tree Window
  2603.  
  2604.    The Directory Tree window makes it easy for you to view the layout,
  2605.    or directory structure, of the directories and subdirectories on any disk
  2606.    or drive you choose. The directory structure is arranged like a "tree"
  2607.    in the Directory Tree window. The root directory appears at the top
  2608.    of the tree, with the names of the other directories listed underneath
  2609.    the root directory in alphabetical order. (For definitions of computer
  2610.    terminology, see the appendix, "Computer Basics," in this manual.)
  2611.  
  2612.    The root directory is automatically created when you format a disk.
  2613.    All other directories you create are simply subdirectories of the root
  2614.    directory. Note that the Directory Tree window displays only the
  2615.    directory structure, and not the files in each directory.
  2616.  
  2617.    The Directory Tree window looks similar to other Presentation Manager
  2618.    windows──it has borders, a title bar, and a System-menu box. Below the
  2619.    title bar are the drive icons. They represent the disk drives on your
  2620.    computer. The current drive is the one that is highlighted. The structure
  2621.    of your directories and subdirectories on the current drive is shown in
  2622.    the work area.
  2623.  
  2624.    ┌────────────────────────────────────┐
  2625.    │                                    │
  2626.    │   This screen can be viewed on     │
  2627.    │   page 99 of the printed manual.   │
  2628.    │                                    │
  2629.    └────────────────────────────────────┘
  2630.  
  2631.    Unlike a Presentation Manager application window, the Directory Tree
  2632.    window does not have a menu bar and it does not have Minimize or Maximize
  2633.    boxes. The size of the Directory Tree window is limited to the size of the
  2634.    File System work area, so you cannot enlarge it to fill the entire screen,
  2635.    nor can you shrink it to an icon.
  2636.  
  2637.    Since the Directory Tree window has its own System menu, you can use the
  2638.    Size and Move commands to size the Directory Tree window and move it
  2639.    around within the File System work area. The Directory Tree does not have
  2640.    its own menus and commands because it is not a separate application. These
  2641.    characteristics apply to all windows that appear in the work area of an
  2642.    application window.
  2643.  
  2644.    From the Directory Tree window, you can open another window that lists the
  2645.    contents (subdirectories and files) of the directory you want to view. You
  2646.    can have several directory windows open at once, allowing you to view the
  2647.    contents of several different directories at the same time and carry out
  2648.    tasks that involve more than one directory.
  2649.  
  2650.  
  2651.  Exercise 2: Opening a Directory Window
  2652.  
  2653.    To practice opening a directory, open the OS2\INTRO directory, which
  2654.    contains the Bricks game files you used in the previous chapter. If you
  2655.    are using a mouse, do the following:
  2656.  
  2657.    1.  Point to OS2\INTRO in the directory tree.
  2658.  
  2659.        ┌────────────────────────────────────┐
  2660.        │                                    │
  2661.        │   This screen can be viewed on     │
  2662.        │   page 100 of the printed manual.  │
  2663.        │                                    │
  2664.        └────────────────────────────────────┘
  2665.  
  2666.    2.  Double-click the left mouse button.
  2667.  
  2668.    If you are using your keyboard, you can open the OS2\INTRO directory by
  2669.    using the UP and DOWN keys to select OS2\INTRO from
  2670.    the Directory Tree. Here's how:
  2671.  
  2672.    1.  Press the DOWN or UP key several times until OS2\INTRO is selected.
  2673.  
  2674.    2.  Press the ENTER key.
  2675.  
  2676.    Looking at the Directory Window
  2677.  
  2678.    Like the Directory Tree window, the OS2\INTRO directory window is a window
  2679.    within the File System window──it has a System-menu box, but no menu bar
  2680.    and no Maximize or Minimize boxes. You can move and size the OS2\INTRO
  2681.    directory window, but you cannot enlarge it to fill the entire screen and
  2682.    you cannot shrink it to an icon.
  2683.  
  2684.    ┌────────────────────────────────────┐
  2685.    │                                    │
  2686.    │   This screen can be viewed on     │
  2687.    │   page 101 of the printed manual.  │
  2688.    │                                    │
  2689.    └────────────────────────────────────┘
  2690.  
  2691.    The drive letter and the directory path for the OS2\INTRO directory appear
  2692.    in the title bar. The directory path shows the OS2\INTRO directory's
  2693.    location in relation to the root directory. The wildcard characters *.*
  2694.    tell you that the entire contents of the OS2\INTRO directory are displayed
  2695.    in the directory window. (When you are specifying filenames, the wildcard
  2696.    characters can take the place of any other
  2697.    characters, allowing you to find several related files at once.)
  2698.  
  2699.    The files in the OS2\INTRO directory are marked with a file icon and the
  2700.    program files (files you use to start applications) are marked with
  2701.    a program icon. Both types of icons appear to the left of the filename.
  2702.  
  2703.    Changing the Display in a Directory Window
  2704.  
  2705.    You can view the contents of an open directory in several different ways.
  2706.    For example, you can display full details about the files and
  2707.    subdirectories, including their sizes in bytes and the dates and times
  2708.    they were created or last modified.
  2709.  
  2710.    To do this, use the Full File Details command on the Options menu:
  2711.  
  2712.    1.  Select the Options menu (click the menu or press ALT, O).
  2713.  
  2714.        ┌────────────────────────────────────┐
  2715.        │                                    │
  2716.        │   This screen can be viewed on     │
  2717.        │   page 102 of the printed manual.  │
  2718.        │                                    │
  2719.        └────────────────────────────────────┘
  2720.  
  2721.    2.  Choose the Full File Details command (click the command or press the F
  2722.        key).
  2723.  
  2724.    The file information displayed in the OS2\INTRO directory window changes
  2725.    to show the size of each file and the date and time it was created or last
  2726.    modified.
  2727.  
  2728.    ┌────────────────────────────────────┐
  2729.    │                                    │
  2730.    │   This screen can be viewed on     │
  2731.    │   page 103 of the printed manual.  │
  2732.    │                                    │
  2733.    └────────────────────────────────────┘
  2734.  
  2735.    If you select the Options menu again, you'll see a check mark next to the
  2736.    Full File Details command. The check mark shows you that the command is
  2737.    active.
  2738.  
  2739.    ┌────────────────────────────────────┐
  2740.    │                                    │
  2741.    │   This screen can be viewed on     │
  2742.    │   page 103 of the printed manual.  │
  2743.    │                                    │
  2744.    └────────────────────────────────────┘
  2745.  
  2746.  
  2747.  Exercise 3: Managing Files and Directories
  2748.  
  2749.    Once you have opened a directory window, you can perform several tasks
  2750.    with File System to organize and keep track of your files and
  2751.    subdirectories. For example, you can easily rename and delete files, as
  2752.    well as copy and move files within a directory or from one directory to
  2753.    another. With File System, you can also create subdirectories in
  2754.    the open directory.
  2755.  
  2756.    In this exercise, you'll create a subdirectory in the OS2\INTRO directory,
  2757.    and then you'll copy and move some of your Bricks game files to that
  2758.    subdirectory. You'll also learn how to rename files, as well as how to
  2759.    delete old files you no longer need.
  2760.  
  2761.    Creating and Opening Subdirectories
  2762.  
  2763.    With File System, you can create subdirectories in an open directory
  2764.    window. To see how to do this, you'll create a subdirectory named OLDGAMES
  2765.    in the OS2\INTRO directory. Follow these steps:
  2766.  
  2767.    1.  Select the File menu.
  2768.  
  2769.        ┌────────────────────────────────────┐
  2770.        │                                    │
  2771.        │   This screen can be viewed on     │
  2772.        │   page 104 of the printed manual.  │
  2773.        │                                    │
  2774.        └────────────────────────────────────┘
  2775.  
  2776.    2.  Choose the Create Directory command. The Create Directory
  2777.        dialog box appears on your screen.
  2778.  
  2779.        ┌────────────────────────────────────┐
  2780.        │                                    │
  2781.        │   This screen can be viewed on     │
  2782.        │   page 105 of the printed manual.  │
  2783.        │                                    │
  2784.        └────────────────────────────────────┘
  2785.  
  2786.    3.  In the text box, type the following:
  2787.  
  2788.        oldgames
  2789.  
  2790.        If you make a mistake while typing, use the BACKSPACE key
  2791.        to erase it and then continue typing.
  2792.  
  2793.        ┌────────────────────────────────────┐
  2794.        │                                    │
  2795.        │   This screen can be viewed on     │
  2796.        │   page 105 of the printed manual.  │
  2797.        │                                    │
  2798.        └────────────────────────────────────┘
  2799.  
  2800.    4.  Choose the Create button (click it or press the ENTER key).
  2801.  
  2802.    OLDGAMES is added to the list of files and subdirectories shown in the
  2803.    work area of the OS2\INTRO directory window. The directory icon appears to
  2804.    the left of OLDGAMES. The directory icon lets you know that OLDGAMES is a
  2805.    subdirectory of the OS2\INTRO directory.
  2806.  
  2807.    ┌────────────────────────────────────┐
  2808.    │                                    │
  2809.    │   This screen can be viewed on     │
  2810.    │   page 106 of the printed manual.  │
  2811.    │                                    │
  2812.    └────────────────────────────────────┘
  2813.  
  2814.    Now, you'll open the OLDGAMES subdirectory from the OS2\INTRO directory
  2815.    window. You open a subdirectory from a directory window
  2816.    by using the mouse the same way as you open a directory from the
  2817.    Directory Tree window:
  2818.  
  2819.    1.  Point to OLDGAMES in the OS2\INTRO directory window and double-click
  2820.        the left mouse button.
  2821.  
  2822.    If you are using your keyboard, do the following to open the
  2823.    OLDGAMES directory:
  2824.  
  2825.    1.  If OLDGAMES is not already selected, press the UP or DOWN key to
  2826.        select it.
  2827.  
  2828.    2.  Press the ENTER key.
  2829.  
  2830.    The OLDGAMES directory window appears in front of the OS2\INTRO directory
  2831.    window with the path for OLDGAMES displayed in the title bar.
  2832.  
  2833.    ┌────────────────────────────────────┐
  2834.    │                                    │
  2835.    │   This screen can be viewed on     │
  2836.    │   page 107 of the printed manual.  │
  2837.    │                                    │
  2838.    └────────────────────────────────────┘
  2839.  
  2840.    Note that, since there are no files or subdirectories in the OLDGAMES
  2841.    subdirectory, nothing is listed in the work area
  2842.    of the OLDGAMES directory window.
  2843.  
  2844.    Arranging File System Windows
  2845.  
  2846.    When you have several windows displayed on top of each other at the same
  2847.    time, you can arrange them so that they do not overlap in the File System
  2848.    work area. Arranging directory windows with File System is similar to
  2849.    arranging application windows with Task Manager──you use the commands on
  2850.    the Arrange menu.
  2851.  
  2852.    To see how this works, use the Tile command on the Arrange menu to arrange
  2853.    the Directory Tree, OS2\INTRO, and OLDGAMES windows so that they do
  2854.    not overlap:
  2855.  
  2856.    1.  Select the Arrange menu and choose the Tile command.
  2857.  
  2858.    File System arranges the windows in the work area so that they do not
  2859.    overlap, making it easy for you to view the directory tree and the
  2860.    contents of each open directory at the same time.
  2861.  
  2862.    ┌────────────────────────────────────┐
  2863.    │                                    │
  2864.    │   This screen can be viewed on     │
  2865.    │   page 108 of the printed manual.  │
  2866.    │                                    │
  2867.    └────────────────────────────────────┘
  2868.  
  2869.    Switching Between Directory Windows
  2870.  
  2871.    When you have several directory windows open at the same time, only one of
  2872.    them is active. Right now the OLDGAMES directory window
  2873.    is active, as you can see by its colored borders and title bar. Since you
  2874.    will be performing tasks on files in the OS2\INTRO directory, you need to
  2875.    switch to the OS2\INTRO directory window to make it active.
  2876.  
  2877.    If you are using a mouse, make the OS2\INTRO directory window active:
  2878.  
  2879.    1.  Point to a place anywhere in the background of the OS2\INTRO directory
  2880.        window. (Make sure that the pointer is not touching
  2881.        a filename, a directory name, or an icon.)
  2882.  
  2883.        ┌────────────────────────────────────┐
  2884.        │                                    │
  2885.        │   This screen can be viewed on     │
  2886.        │   page 109 of the printed manual.  │
  2887.        │                                    │
  2888.        └────────────────────────────────────┘
  2889.  
  2890.    2.  Click the left mouse button.
  2891.  
  2892.    If you are using your keyboard, you can switch to the OS2\INTRO directory
  2893.    window by using the Window menu. Do the following:
  2894.  
  2895.    1.  Press ALT, W to select the Window menu. The list of directory
  2896.        windows that are currently open appears on the Windows menu.
  2897.  
  2898.        ┌────────────────────────────────────┐
  2899.        │                                    │
  2900.        │   This screen can be viewed on     │
  2901.        │   page 110 of the printed manual.  │
  2902.        │                                    │
  2903.        └────────────────────────────────────┘
  2904.  
  2905.        The check mark next to the OLDGAMES directory tells you that the
  2906.        OLDGAMES directory window is active.
  2907.  
  2908.    2.  Press the 2 key to choose C:\OS2\INTRO.
  2909.  
  2910.    When you switch to the OS2\INTRO directory window, the bor-
  2911.    ders and title bar of the window change colors, showing you that
  2912.    OS2\INTRO is now the active window.
  2913.  
  2914.    Now that the OS2\INTRO directory window is active, you'll learn how to
  2915.    perform a few basic file-management tasks by using some of the files in
  2916.    the OS2\INTRO directory.
  2917.  
  2918.    Copying Files
  2919.  
  2920.    With File System, you can easily copy and move files from one
  2921.    directory to another with your mouse. If you are using a mouse, try
  2922.    copying the ATHENS.BRK file from the OS2\INTRO directory to
  2923.    the OLDGAMES directory:
  2924.  
  2925.    1.  Point to ATHENS.BRK in the OS2\INTRO directory window.
  2926.  
  2927.    2.  Press and hold down the left mouse button.
  2928.  
  2929.    3.  While holding down the mouse button, drag the pointer to a place
  2930.        anywhere in the work area of the OLDGAMES directory window. When you
  2931.        start dragging the mouse, the pointer changes to a file icon.
  2932.  
  2933.        ┌────────────────────────────────────┐
  2934.        │                                    │
  2935.        │   This screen can be viewed on     │
  2936.        │   page 111 of the printed manual.  │
  2937.        │                                    │
  2938.        └────────────────────────────────────┘
  2939.  
  2940.    4.  When the pointer is in the work area of the OLDGAMES directory window,
  2941.        release the mouse button.
  2942.  
  2943.    If you are using your keyboard, you use the Copy command on the File menu
  2944.    to copy a file from one directory to another. Here's how to copy the
  2945.    ATHENS.BRK file with your keyboard:
  2946.  
  2947.    1.  Press the UP or DOWN key to select ATHENS.BRK.
  2948.  
  2949.    2.  Select the File menu.
  2950.  
  2951.    3.  Choose the Copy command. The Copy dialog box appears, with the
  2952.        name of the file you just selected displayed in the From text box.
  2953.  
  2954.        ┌────────────────────────────────────┐
  2955.        │                                    │
  2956.        │   This screen can be viewed on     │
  2957.        │   page 112 of the printed manual.  │
  2958.        │                                    │
  2959.        └────────────────────────────────────┘
  2960.  
  2961.    4.  In the To text box, type the following:
  2962.  
  2963.        c:\os2\intro\oldgames
  2964.  
  2965.        ┌────────────────────────────────────┐
  2966.        │                                    │
  2967.        │   This screen can be viewed on     │
  2968.        │   page 112 of the printed manual.  │
  2969.        │                                    │
  2970.        └────────────────────────────────────┘
  2971.  
  2972.    5.  Choose the Copy button (press the ENTER key).
  2973.  
  2974.    The ATHENS.BRK file is now listed both in the OS2\INTRO directory window
  2975.    and in the OLDGAMES directory window. This tells you that two copies of
  2976.    ATHENS.BRK exist in two different directories. The borders and title bar
  2977.    of the OS2\INTRO directory window are still colored, showing you that
  2978.    OS2\INTRO is still the active directory window.
  2979.  
  2980.    ┌────────────────────────────────────┐
  2981.    │                                    │
  2982.    │   This screen can be viewed on     │
  2983.    │   page 113 of the printed manual.  │
  2984.    │                                    │
  2985.    └────────────────────────────────────┘
  2986.  
  2987.    Moving Files
  2988.  
  2989.    You may want to move a file into another directory without making
  2990.    a copy of it. If you are using a mouse, try this method now to move
  2991.    the file named APLTREE.BRK from the OS2\INTRO directory to
  2992.    the OLDGAMES directory:
  2993.  
  2994.    1.  Point to the file named APLTREE.BRK in the OS2\INTRO
  2995.        directory window.
  2996.  
  2997.    2.  Press and hold down the ALT key.
  2998.  
  2999.    3.  While holding down the ALT key, press and hold down the left mouse
  3000.        button.
  3001.  
  3002.    4.  While holding down the left mouse button, release the ALT key and then
  3003.        drag the pointer to a place anywhere within the work area of the
  3004.        OLDGAMES directory window. When you begin dragging,
  3005.        the pointer turns into a file icon.
  3006.  
  3007.        ┌────────────────────────────────────┐
  3008.        │                                    │
  3009.        │   This screen can be viewed on     │
  3010.        │   page 114 of the printed manual.  │
  3011.        │                                    │
  3012.        └────────────────────────────────────┘
  3013.  
  3014.    5.  Release the left mouse button.
  3015.  
  3016.    If you are using your keyboard, you use the Move command on the
  3017.    File menu to move a file from one directory to another. Moving a file
  3018.    with the keyboard is similar to copying a file. Try this method to move
  3019.    the APLTREE.BRK file from the OS2\INTRO directory to the OLDGAMES
  3020.    directory:
  3021.  
  3022.    1.  Press the UP or DOWN key to select APLTREE.BRK from the list
  3023.        of files in the OS2\INTRO directory window.
  3024.  
  3025.    2.  Select the File menu.
  3026.  
  3027.    3.  Choose the Move command. The Move dialog box appears,
  3028.        with the name of the selected file in the From text box.
  3029.  
  3030.        ┌────────────────────────────────────┐
  3031.        │                                    │
  3032.        │   This screen can be viewed on     │
  3033.        │   page 115 of the printed manual.  │
  3034.        │                                    │
  3035.        └────────────────────────────────────┘
  3036.  
  3037.    4.  In the To text box, type the following:
  3038.  
  3039.        c:\os2\intro\oldgames
  3040.  
  3041.        Because you won't be changing the name of the file, you do not need to
  3042.        include a filename with the directory path.
  3043.  
  3044.        ┌────────────────────────────────────┐
  3045.        │                                    │
  3046.        │   This screen can be viewed on     │
  3047.        │   page 115 of the printed manual.  │
  3048.        │                                    │
  3049.        └────────────────────────────────────┘
  3050.  
  3051.    5.  Choose the Move button (press the ENTER key).
  3052.  
  3053.    The file APLTREE.BRK now appears in its alphabetical place in
  3054.    the OLDGAMES directory window and is gone from the OS2\INTRO
  3055.    directory window. The OS2\INTRO directory window is still active.
  3056.  
  3057.    ┌────────────────────────────────────┐
  3058.    │                                    │
  3059.    │   This screen can be viewed on     │
  3060.    │   page 116 of the printed manual.  │
  3061.    │                                    │
  3062.    └────────────────────────────────────┘
  3063.  
  3064.    Renaming Files
  3065.  
  3066.    The Rename command on the File menu makes it easy to change the name of a
  3067.    file. The general procedure for renaming files is the same, regardless of
  3068.    whether you are using the mouse or the keyboard.
  3069.  
  3070.    Try giving the file named ATHENS.BRK in the OLDGAMES directory the new
  3071.    name ATHENS.OLD. Remember, before you can
  3072.    perform a task on a file, the directory window in which that file is
  3073.    located must be active. Since you will be renaming the copy of
  3074.    the ATHENS.BRK file that is located in the OLDGAMES directory,
  3075.    you first need to switch to the OLDGAMES directory window.
  3076.  
  3077.    If you are using a mouse, here's how:
  3078.  
  3079.    1.  Click the OLDGAMES directory window.
  3080.  
  3081.    If you are using your keyboard, do the following to switch to
  3082.    the OLDGAMES directory window:
  3083.  
  3084.    1.  Select the Window menu.
  3085.  
  3086.    2.  Choose the OLDGAMES directory window.
  3087.  
  3088.    The borders and title bar of the OLDGAMES directory window change colors,
  3089.    showing you that the OLDGAMES directory window is active.
  3090.  
  3091.    You now can rename the ATHENS.BRK file to ATHENS.OLD:
  3092.  
  3093.    1.  Select ATHENS.BRK from the list of files in the OLDGAMES directory
  3094.        window.
  3095.  
  3096.    2.  Select the File menu.
  3097.  
  3098.    3.  Choose the Rename command. The Rename dialog box appears, with
  3099.        ATHENS.BRK displayed in the From text box.
  3100.  
  3101.        ┌────────────────────────────────────┐
  3102.        │                                    │
  3103.        │   This screen can be viewed on     │
  3104.        │   page 117 of the printed manual.  │
  3105.        │                                    │
  3106.        └────────────────────────────────────┘
  3107.  
  3108.    4.  In the To text box, type the following:
  3109.  
  3110.        athens.old
  3111.  
  3112.    5.  Choose the Rename button.
  3113.  
  3114.    File System changes the name of ATHENS.BRK to ATHENS.OLD.
  3115.  
  3116.    ┌────────────────────────────────────┐
  3117.    │                                    │
  3118.    │   This screen can be viewed on     │
  3119.    │   page 118 of the printed manual.  │
  3120.    │                                    │
  3121.    └────────────────────────────────────┘
  3122.  
  3123.    Now practice renaming files by changing the name of the APLTREE.BRK file
  3124.    to APLTREE.OLD. Follow these steps:
  3125.  
  3126.    1.  Select APLTREE.BRK from the list of files in the OLDGAMES directory
  3127.        window.
  3128.  
  3129.    2.  Select the File menu.
  3130.  
  3131.    3.  Choose the Rename command. The Rename dialog box appears, with
  3132.        APLTREE.BRK displayed in the From text box.
  3133.  
  3134.    4.  In the To text box, type the following:
  3135.  
  3136.        apltree.old
  3137.  
  3138.    5.  Choose the Rename button.
  3139.  
  3140.    File System changes the name of APLTREE.BRK to the new name, APLTREE.OLD.
  3141.  
  3142.    ┌────────────────────────────────────┐
  3143.    │                                    │
  3144.    │   This screen can be viewed on     │
  3145.    │   page 119 of the printed manual.  │
  3146.    │                                    │
  3147.    └────────────────────────────────────┘
  3148.  
  3149.    Deleting Files
  3150.  
  3151.    It's a good idea to clean up your disk regularly by deleting files you no
  3152.    longer need. Deleting unwanted files frees up storage space on your disk
  3153.    so that you have more room for additional software and data files.
  3154.  
  3155.    With File System, you can delete a single file or you can delete multiple
  3156.    files at once. If you are deleting multiple files that are not related,
  3157.    you can select all the files you want to delete from the directory window,
  3158.    or you can type their filenames in the text box of the Delete dialog box.
  3159.  
  3160.    If you are deleting multiple files that are related (for example, the
  3161.    files have the same filename or extension), you can use wildcard
  3162.    characters when specifying the files in the Delete dialog box.
  3163.  
  3164.    Try using wildcard characters to delete the ATHENS.OLD and APLTREE.OLD
  3165.    files from the OLDGAMES directory:
  3166.  
  3167.    1.  Select the file ATHENS.OLD from the list of files in the
  3168.        OLDGAMES directory window.
  3169.  
  3170.    2.  Select the File menu.
  3171.  
  3172.    3.  Choose the Delete command. The Delete dialog box appears,
  3173.        with ATHENS.OLD displayed in the Delete text box.
  3174.  
  3175.        ┌────────────────────────────────────┐
  3176.        │                                    │
  3177.        │   This screen can be viewed on     │
  3178.        │   page 120 of the printed manual.  │
  3179.        │                                    │
  3180.        └────────────────────────────────────┘
  3181.  
  3182.    4.  Select the Delete text box (point somewhere to the right of the
  3183.        filename in the text box and then click the left mouse button or press
  3184.        SHIFT+TAB).
  3185.  
  3186.    5.  Use the BACKSPACE key to erase ATHENS.OLD, then type the
  3187.        following:
  3188.  
  3189.        *.old
  3190.  
  3191.        ┌────────────────────────────────────┐
  3192.        │                                    │
  3193.        │   This screen can be viewed on     │
  3194.        │   page 120 of the printed manual.  │
  3195.        │                                    │
  3196.        └────────────────────────────────────┘
  3197.  
  3198.    6.  Choose the Delete button.
  3199.  
  3200.        A message appears, asking you to confirm your decision to delete the
  3201.        ATHENS.OLD file.
  3202.  
  3203.        ┌────────────────────────────────────┐
  3204.        │                                    │
  3205.        │   This screen can be viewed on     │
  3206.        │   page 121 of the printed manual.  │
  3207.        │                                    │
  3208.        └────────────────────────────────────┘
  3209.  
  3210.    7.  Choose the Yes button.
  3211.  
  3212.        Another message appears, asking you to confirm your decision
  3213.        to delete the APLTREE.OLD file.
  3214.  
  3215.    8.  For each message you see, choose the Yes button.
  3216.  
  3217.    The files with the extension .OLD no longer appear in the OLDGAMES
  3218.    directory window, showing you that they have been deleted.
  3219.  
  3220.    Now that you've deleted your old Bricks game files, you have almost
  3221.    reached the end of this set of exercises. The last things you'll do are
  3222.    close the OS2\INTRO and OLDGAMES directory windows and then quit File
  3223.    System.
  3224.  
  3225.  
  3226.  Exercise 4: Closing Directory Windows
  3227.  
  3228.    When you are finished working in a directory, you can close the
  3229.    directory window to make more room in the File System work area.
  3230.    To close a directory window with the mouse, just double-click
  3231.    the System-menu box.
  3232.  
  3233.    If you are using a mouse, do the following:
  3234.  
  3235.    1.  Point to the System-menu box in the OLDGAMES directory
  3236.        window.
  3237.  
  3238.        Make sure that you don't accidentally point to the System-menu box in
  3239.        the File System window. Otherwise, you will close File System instead
  3240.        of the OLDGAMES directory window.
  3241.  
  3242.        ┌────────────────────────────────────┐
  3243.        │                                    │
  3244.        │   This screen can be viewed on     │
  3245.        │   page 122 of the printed manual.  │
  3246.        │                                    │
  3247.        └────────────────────────────────────┘
  3248.  
  3249.    2.  Double-click the left mouse button.
  3250.  
  3251.    If you are using your keyboard, you can close a directory window easily by
  3252.    using the Close command on the System menu.
  3253.  
  3254.    You select the System menu in a directory window differently from the way
  3255.    you select the System menu in an application window. Instead of pressing
  3256.    SHIFT+ESC, you press CTRL+- (the CTRL key and the hyphen key). Pressing
  3257.    SHIFT+ESC selects the System menu in the File System window, whereas
  3258.    pressing CTRL+- selects the System menu in the active directory window.
  3259.    This allows you to select either System menu and use its commands quickly
  3260.    and easily.
  3261.  
  3262.    If you are using your keyboard, close the OLDGAMES directory window:
  3263.  
  3264.    1.  Press CTRL+- to display the System menu in the OLDGAMES directory
  3265.        window.
  3266.  
  3267.        ┌────────────────────────────────────┐
  3268.        │                                    │
  3269.        │   This screen can be viewed on     │
  3270.        │   page 123 of the printed manual.  │
  3271.        │                                    │
  3272.        └────────────────────────────────────┘
  3273.  
  3274.    2.  Press C to choose the Close command.
  3275.  
  3276.        ┌────────────────────────────────────┐
  3277.        │                                    │
  3278.        │   This screen can be viewed on     │
  3279.        │   page 124 of the printed manual.  │
  3280.        │                                    │
  3281.        └────────────────────────────────────┘
  3282.  
  3283.  
  3284.    The OLDGAMES directory window no longer appears in the work area of the
  3285.    File System window. The OS2\INTRO directory window
  3286.    is now active.
  3287.  
  3288.    Now close the OS2\INTRO directory window the same way you closed the
  3289.    OLDGAMES directory window. If you have a mouse, do the following:
  3290.  
  3291.    1.  Double-click the System-menu box in the OS2\INTRO directory window.
  3292.  
  3293.        ┌────────────────────────────────────┐
  3294.        │                                    │
  3295.        │   This screen can be viewed on     │
  3296.        │   page 125 of the printed manual.  │
  3297.        │                                    │
  3298.        └────────────────────────────────────┘
  3299.  
  3300.  
  3301.    If you are using your keyboard, follow these steps to close the
  3302.    OS2\INTRO directory window:
  3303.  
  3304.    1.  Select the System menu in the OS2\INTRO directory window
  3305.        (press CTRL+-).
  3306.  
  3307.    2.  Choose the Close command.
  3308.  
  3309.    The OS2\INTRO directory no longer appears in the File System
  3310.    work area.
  3311.  
  3312.    ┌────────────────────────────────────┐
  3313.    │                                    │
  3314.    │   This screen can be viewed on     │
  3315.    │   page 126 of the printed manual.  │
  3316.    │                                    │
  3317.    └────────────────────────────────────┘
  3318.  
  3319.  
  3320.  Exercise 5: Quitting File System
  3321.  
  3322.    Now that you have closed the directory windows, you are ready to quit File
  3323.    System. If you are using a mouse, follow these steps:
  3324.  
  3325.    1.  Double-click the System-menu box.
  3326.  
  3327.        A message appears, asking you to confirm your decision to quit
  3328.        File System.
  3329.  
  3330.        ┌────────────────────────────────────┐
  3331.        │                                    │
  3332.        │   This screen can be viewed on     │
  3333.        │   page 126 of the printed manual.  │
  3334.        │                                    │
  3335.        └────────────────────────────────────┘
  3336.  
  3337.        (The message dialog box also gives you an opportunity to save any
  3338.        settings you have made on the Options menu, but you don't need
  3339.        to change this now. For more information about changing and
  3340.        saving settings, see Part 1, "Using Presentation Manager," of
  3341.        the Microsoft Operating System/2 User's Guide.)
  3342.  
  3343.    2.  Choose the Yes button.
  3344.  
  3345.    Here's a review of how to quit File System by using your keyboard:
  3346.  
  3347.    1.  Select the System menu (press SHIFT+ESC).
  3348.  
  3349.    2.  Choose the Close command.
  3350.  
  3351.        A message appears, asking you to confirm your decision to quit
  3352.        File System.
  3353.  
  3354.        ┌────────────────────────────────────┐
  3355.        │                                    │
  3356.        │   This screen can be viewed on     │
  3357.        │   page 127 of the printed manual.  │
  3358.        │                                    │
  3359.        └────────────────────────────────────┘
  3360.  
  3361.        (The message dialog box also gives you an opportunity to save any
  3362.        settings you have made on the Options menu, but you don't need
  3363.        to change this now. For more information about changing and
  3364.        saving settings, see Part 1, "Using Presentation Manager," of
  3365.        the Microsoft Operating System/2 User's Guide.)
  3366.  
  3367.    3.  Choose the Yes button.
  3368.  
  3369.    The File System window disappears and Start Programs becomes
  3370.    the active window.
  3371.  
  3372.    Shutting Down MS OS/2
  3373.  
  3374.    You can now go on to the exercises in Chapter 4 or, if you want to take a
  3375.    break, you can shut down MS OS/2. If you want to shut down MS OS/2, switch
  3376.    to Task Manager and then choose the Shutdown Now command from the Shutdown
  3377.    menu, as described in Chapters 1 and 2 of this manual.
  3378.  
  3379.  
  3380.  Summary
  3381.  
  3382.    So far, you've learned some basic techniques for working with
  3383.    Presentation Manager applications in the Presentation Manager
  3384.    session. In Chapter 1, you learned how to start applications, shrink
  3385.    application windows to icons, and arrange application windows on
  3386.    your screen. In Chapter 2, you were introduced to multitasking and
  3387.    several features that are common to most Presentation Manager
  3388.    applications.
  3389.  
  3390.    In this chapter, you've learned about using File System to view the
  3391.    directory structure on any drive you choose and the contents of any
  3392.    directory you choose. In addition, you've practiced some basic
  3393.    file-management tasks, such as creating subdirectories and copying
  3394.    and moving files.
  3395.  
  3396.    If you've worked through the exercises up to this point, you should have
  3397.    all the information you need to begin working in the Presentation Manager
  3398.    session of MS OS/2 on your own. If, while working in the Presentation
  3399.    Manager session, you need more detailed information
  3400.    to perform a specific task, see Part 1, "Using Presentation Manager,"
  3401.    of the Microsoft Operating System/2 User's Guide.
  3402.  
  3403.    Chapter 4, "Learning the MS OS/2 and DOS Command Interpreters,"
  3404.    introduces you to two other kinds of sessions in MS OS/2──the full-screen
  3405.    OS/2 session and the DOS session. Chapter 4 also describes some basic
  3406.    techniques for using the MS OS/2 and DOS command interpreters──cmd and
  3407.    command. Cmd and command are the programs you use to perform some advanced
  3408.    tasks with MS OS/2, such as configuring your system and running utilities
  3409.    for maintaining your disks.
  3410.  
  3411.    If you have never used DOS and are unfamiliar with typing commands, it is
  3412.    recommended that you work through the exercises in Chapter 4. There you
  3413.    will learn and practice some basic techniques of typing
  3414.    commands by performing some of the same tasks you've performed in
  3415.    the previous chapters. For example, you'll learn how to type commands
  3416.    to start applications, view the contents of a directory, and copy files.
  3417.  
  3418.    If you are familiar with DOS and know how to type commands and start DOS
  3419.    applications, you may want to skip Chapter 4 and see Part 2, "Using Cmd
  3420.    and the DOS Session," of the Microsoft Operating
  3421.    System/2 User's Guide and the Microsoft Operating System/2 Desktop
  3422.    Reference for instructions on how to perform specific tasks with cmd
  3423.    and command.
  3424.  
  3425.  
  3426.  
  3427.  ────────────────────────────────────────────────────────────────────────────
  3428.  Chapter 4  Learning the MS OS/2 and DOS Command Interpreters
  3429.  
  3430.    Introduction
  3431.      Typing Commands
  3432.      Controlling the Screen's Contents
  3433.      Using the Copy Command
  3434.        Using Editing Keys
  3435.      Starting an Application
  3436.      Using the System Menu in Cmd
  3437.        Changing the Font Size
  3438.        Scrolling the Contents of the Screen
  3439.      Quitting Cmd and Closing the Window
  3440.    Exercise 2: Running Cmd in a Full-Screen OS/2 Session
  3441.      Using Cmd in a Full-Screen OS/2 Session
  3442.      Starting an Application
  3443.      Quitting Cmd in a Full-Screen OS/2 Session
  3444.    Exercise 3: Running the DOS Command Interpreter
  3445.      Starting the DOS Command Interpreter
  3446.      Typing Commands
  3447.      Starting a DOS Application
  3448.    Shutting Down MS OS/2
  3449.    Going On
  3450.  
  3451.  
  3452.  Introduction
  3453.  
  3454.    The MS OS/2 command interpreter, cmd, is another program you can use to
  3455.    perform the same kinds of tasks that you can perform with Start Programs
  3456.    and File System. With cmd, you can start both Presentation
  3457.    Manager and full-screen OS/2 applications, as well as manage your files
  3458.    and directories.
  3459.  
  3460.    The DOS command interpreter, command, is the program you use to run your
  3461.    applications that were designed for MS-DOS or a computer manufacturer's
  3462.    version of DOS. In addition to running your DOS
  3463.    applications, you can also use command to perform some file- and
  3464.    directory-management tasks. (If you are familiar with how to use DOS, you
  3465.    may want to do only the exercises that demonstrate cmd.)
  3466.  
  3467.    With cmd and command, instead of choosing commands from menus, you type
  3468.    them in yourself by using your keyboard. In addition, cmd is the program
  3469.    you use to run utilities for maintaining your disks and configuring your
  3470.    system. (For more detailed information on using utilities, see the
  3471.    Microsoft Operating System/2 User's Guide. Also, if you feel an overview
  3472.    of computer terms and concepts would be helpful, see the appendix,
  3473.    "Computer Basics," in this tutorial.)
  3474.  
  3475.    The exercises in this chapter will give you hands-on experience using cmd
  3476.    and command, while you learn and practice the following skills:
  3477.  
  3478.    ■  Running cmd in both the Presentation Manager and the full-screen OS/2
  3479.       sessions
  3480.  
  3481.    ■  Running the DOS command interpreter in the DOS session
  3482.  
  3483.    ■  Typing commands
  3484.  
  3485.    ■  Using editing keys
  3486.  
  3487.    ■  Starting applications
  3488.  
  3489.    ■  Quitting cmd and command
  3490.  
  3491.    When you run cmd in the Presentation Manager session, it runs in
  3492.    a window that you can move, size, and shrink to an icon. This exercise
  3493.    shows you how to run cmd in a window, how to type commands,
  3494.    control the movement of text on the screen, and use the commands
  3495.    on the System menu that are unique to full-screen OS/2 applications
  3496.    that can run in the Presentation Manager session.
  3497.  
  3498.    If you decided not to shut down MS OS/2 in the last chapter, the
  3499.    first thing you need to do is switch to Start Programs:
  3500.  
  3501.    1.  Choose Start Programs from the list of applications displayed
  3502.        in the Task Manager window.
  3503.  
  3504.    To start cmd, you need to be in the Main Group. If you are not in the Main
  3505.    Group, change to it now:
  3506.  
  3507.    1.  Choose Main Group from the Group menu.
  3508.  
  3509.    Now start cmd so that it runs in the Presentation Manager session.
  3510.    If you are using a mouse, do the following:
  3511.  
  3512.    1.  Point to OS/2 Windowed Command Prompt in the Start Programs window.
  3513.  
  3514.    2.  Double-click the left mouse button.
  3515.  
  3516.    If you are using your keyboard, do the following to start cmd:
  3517.  
  3518.    1.  Use the UP or DOWN key to select OS/2 Windowed Command Prompt from the
  3519.        list of applications displayed in the Start Programs window.
  3520.  
  3521.    2.  Press the ENTER key.
  3522.  
  3523.    Cmd appears in a window on your screen.
  3524.  
  3525.    ┌────────────────────────────────────┐
  3526.    │                                    │
  3527.    │   This screen can be viewed on     │
  3528.    │   page 133 of the printed manual.  │
  3529.    │                                    │
  3530.    └────────────────────────────────────┘
  3531.  
  3532.    The MS OS/2 prompt is located in the upper-left corner of the work area,
  3533.    followed by a cursor. The cursor indicates where the command line is. The
  3534.    command line is the place where you type information, such as commands or
  3535.    text, for cmd to process.
  3536.  
  3537.    Typing Commands
  3538.  
  3539.    Cmd has its own commands that you can use to manage files and
  3540.    directories, maintain disks, and customize MS OS/2 for your needs.
  3541.    When you communicate with an application by using cmd, you type
  3542.    commands instead of choosing them from menus.
  3543.  
  3544.    To practice typing commands, you'll use the commands cd and dir to change
  3545.    to the OS2\INTRO directory (the directory that contains your Bricks game
  3546.    files) and then list its contents. When you type commands, make sure you
  3547.    include one space between the command and the directory path or filename.
  3548.    Also, it makes no difference whether you type the letters in uppercase or
  3549.    lowercase; the system doesn't distinguish between them.
  3550.  
  3551.    Here's how to change to the OS2\INTRO directory:
  3552.  
  3553.    1.  Type the following:
  3554.  
  3555.        cd \os2\intro
  3556.  
  3557.        The cursor moves to the right as you type. If you make a mistake while
  3558.        typing, use the BACKSPACE key to erase it, then continue
  3559.        typing the command correctly.
  3560.  
  3561.    2.  Press the ENTER key.
  3562.  
  3563.    The command prompt changes to show you that OS2\INTRO is now the current
  3564.    directory.
  3565.  
  3566.    C:\OS2\INTRO
  3567.  
  3568.    Now list the contents of the OS2\INTRO directory by using the dir
  3569.    command:
  3570.  
  3571.    1.  Type the following:
  3572.  
  3573.        dir
  3574.  
  3575.    2.  Press the ENTER key.
  3576.  
  3577.    A list of the subdirectories and files in the OS2\INTRO directory appears
  3578.    on your screen.
  3579.  
  3580.  
  3581.     The volume label in drive C is RALPH.
  3582.     Directory of C:\OS2\INTRO
  3583.  
  3584.    .            <DIR>     10-31-88   2:32p
  3585.    ..           <DIR>     10-31-88   2:32p
  3586.    OLDGAMES     <DIR>     11-09-88  12:19p
  3587.    ACLOCK   EXE    11264  10-27-88   6:53a
  3588.    APLTREE  BRK      738  10-26-88   1:53a
  3589.    ATHENS   BRK     6878  10-28-88   8:49a
  3590.    ATLANTIS BRK    17098  10-26-88   1:54p
  3591.    BRICKS   EXE    36864  11-02-88   4:25a
  3592.    PARIS    BRK     8818  10-28-88   8:36a
  3593.    SEATTLE  BRK    21578  10-26-88   1:55p
  3594.    TOKYO    BRK     9058  10-26-88   1:55p
  3595.         11 File(s)   7643136 bytes free
  3596.  
  3597.  
  3598.    Controlling the Screen's Contents
  3599.  
  3600.    Often, the list of files and subdirectories in a directory is too long to
  3601.    fit on your screen. With the CTRL key and the S key, you can stop the list
  3602.    from scrolling by pressing CTRL+S. To resume scrolling, press CTRL+S
  3603.    again.
  3604.  
  3605.    Now use the dir command again to redisplay the contents of the
  3606.    OS2\INTRO directory, but this time practice controlling the contents of
  3607.    the screen:
  3608.  
  3609.    1.  Type the following:
  3610.  
  3611.        dir
  3612.  
  3613.    2.  Press the ENTER key.
  3614.  
  3615.    3.  While the list is scrolling, quickly press CTRL+S.
  3616.  
  3617.    If you reached the end of the list before you were able to press CTRL+S,
  3618.    repeat the previous procedure and try again.
  3619.  
  3620.    Now resume scrolling the list to display the rest of the files in
  3621.    the directory:
  3622.  
  3623.    1.  Press CTRL+S again.
  3624.  
  3625.    The list continues scrolling until the entire contents of the OS2\INTRO
  3626.    directory have been displayed. You can scroll and stop the contents of
  3627.    your screen by pressing CTRL+S as many times as you like, until you reach
  3628.    the end of the list.
  3629.  
  3630.    Using the Copy Command
  3631.  
  3632.    Just like the Copy command on the File menu in File System, the copy
  3633.    command in cmd lets you copy files and directories to the same directory
  3634.    or to other directories.
  3635.  
  3636.    To practice using the copy command, copy the SEATTLE.BRK file
  3637.    to a new file, which you'll name SEATTLE.OLD:
  3638.  
  3639.    1.  Type the following:
  3640.  
  3641.        copy seattle.brk seattle.old
  3642.  
  3643.    2.  Press the ENTER key.
  3644.  
  3645.    Cmd copies the SEATTLE.BRK file to a new file named SEATTLE.OLD and stores
  3646.    it in the current directory (in this case,
  3647.    the OS2\INTRO directory). When the copy operation is complete,
  3648.    a message appears in the work area that tells you how many files have been
  3649.    copied.
  3650.  
  3651.    1 file(s) copied.
  3652.  
  3653.    Using Editing Keys
  3654.  
  3655.    If you want to carry out the same command on different files or want to
  3656.    modify a command slightly, you don't have to type the entire command over
  3657.    again. Cmd remembers the last command you typed, so you can use an editing
  3658.    key to redisplay a command. With editing keys, you can redisplay the
  3659.    entire command or only the part that you specify, in just one keystroke.
  3660.  
  3661.    Next, you'll copy three more files, to practice using three of the MS OS/2
  3662.    editing keys. With the F1 key, you can redisplay the previous
  3663.    command, one character at a time:
  3664.  
  3665.    1.  Press the F1 key once.
  3666.  
  3667.    The "c" from "copy" appears on the command line. Now redisplay the
  3668.    remaining characters in "copy":
  3669.  
  3670.    1.  Press the F1 key three more times to redisplay the "o," the "p,"
  3671.        and the "y."
  3672.  
  3673.    Now copy the PARIS.BRK file to a new file named PARIS.OLD
  3674.    by typing the filenames after the copy command:
  3675.  
  3676.    1.  After the "y" in "copy," press the SPACEBAR once.
  3677.  
  3678.    2.  Type the following:
  3679.  
  3680.        paris.brk paris.old
  3681.  
  3682.    3.  Press the ENTER key.
  3683.  
  3684.    Cmd copies PARIS.BRK to a new file named PARIS.OLD and stores it in the
  3685.    OS2\INTRO directory. When the copy operation is complete, the message that
  3686.    the file has been copied appears in the work area.
  3687.  
  3688.    Now use the F3 key to copy the TOKYO.BRK file to a new file named
  3689.    TOKYO.OLD. The F3 key redisplays the entire previous command, including
  3690.    the names of the files you typed. Try the following:
  3691.  
  3692.    1.  Press the F3 key. The copy command and the names of the files
  3693.        you previously specified reappear on the command line.
  3694.  
  3695.        copy paris.brk paris.old
  3696.  
  3697.    2.  Press the BACKSPACE key several times to erase the names of
  3698.        the two files you specified, leaving a blank space after the "y"
  3699.        in "copy."
  3700.  
  3701.        copy
  3702.  
  3703.    3.  Type the following:
  3704.  
  3705.        tokyo.brk tokyo.old
  3706.  
  3707.    4.  Press the ENTER key.
  3708.  
  3709.    Cmd copies TOKYO.BRK to a new file named TOKYO.OLD and stores it in the
  3710.    OS2\INTRO directory.
  3711.  
  3712.    Now try using one more editing key to copy the ATHENS.BRK file. This time,
  3713.    use the F2 key to redisplay the previous command up to the first letter you
  3714.   specify. Follow these steps:
  3715.  
  3716.    1.  Press the F2 key. Nothing appears on your screen until you specify
  3717.        a character from the previous command.
  3718.  
  3719.    2.  Type the following:
  3720.  
  3721.        t
  3722.  
  3723.        The letters and spaces in the previous command up to the "t"
  3724.        in "tokyo" reappear on the command line.
  3725.  
  3726.        copy
  3727.  
  3728.    3.  Type the following:
  3729.  
  3730.        athens.brk athens.old
  3731.  
  3732.    4.  Press the ENTER key.
  3733.  
  3734.    Cmd copies the file and displays a message when the copy is complete.
  3735.  
  3736.    At this point, you have copied four files using the copy command and the
  3737.    editing keys. Since you won't be using the copies you've just made, you'll
  3738.    use the del command to delete them from your disk.
  3739.  
  3740.    Delete the copy of the first file:
  3741.  
  3742.    1.  Type the following:
  3743.  
  3744.        del seattle.old
  3745.  
  3746.        Since you cannot recover any files that you've deleted, make sure that
  3747.        you type the filename exactly as shown. If you make a mistake, use the
  3748.        BACKSPACE key to erase it and then type the del command and the
  3749.        filename correctly.
  3750.  
  3751.    2.  Press the ENTER key.
  3752.  
  3753.    When you press the ENTER key, cmd deletes the file you specified. You can
  3754.    use the dir command to see whether the file was deleted correctly. Try it
  3755.    now:
  3756.  
  3757.    1.  Type the following:
  3758.  
  3759.        dir seattle.old
  3760.  
  3761.    2.  Press the ENTER key.
  3762.  
  3763.    If the file was deleted correctly, you'll see the message "The system
  3764.    cannot find the file specified" on your screen.
  3765.  
  3766.    With the del command, you can delete a single file or several files
  3767.    at the same time. To see how this works, delete the three files PARIS.OLD,
  3768.    TOKYO.OLD and ATHENS.OLD:
  3769.  
  3770.    1.  Type the following:
  3771.  
  3772.        del paris.old tokyo.old athens.old
  3773.  
  3774.        Remember, once you delete a file you cannot restore it, so make sure
  3775.        that you type the filenames exactly as they are shown.
  3776.  
  3777.    2.  Press the ENTER key.
  3778.  
  3779.    Now use the dir command to make sure that the files were deleted
  3780.    correctly:
  3781.  
  3782.    1.  Type the following:
  3783.  
  3784.        dir paris.old tokyo.old athens.old
  3785.  
  3786.    2.  Press the ENTER key.
  3787.  
  3788.    If the files were deleted, you'll see the message "The system cannot find
  3789.    the file specified" on your screen. If, instead of the message, you see
  3790.    information for any of the files you just specified, then the files were
  3791.    not deleted correctly. If this is the case, try repeating the procedure
  3792.    with the undeleted files by using the del command.
  3793.  
  3794.    Starting an Application
  3795.  
  3796.    You start an application with cmd by typing the command that starts the
  3797.    application you want to use. To practice starting an application, start
  3798.    the Bricks application that you used in Chapter 2:
  3799.  
  3800.    1.  At the MS OS/2 prompt, type the following:
  3801.  
  3802.        bricks
  3803.  
  3804.    2.  Press the ENTER key.
  3805.  
  3806.    The Bricks game appears in a window on your screen. The window where cmd
  3807.    is running shrinks to an icon.
  3808.  
  3809.    ┌────────────────────────────────────┐
  3810.    │                                    │
  3811.    │   This screen can be viewed on     │
  3812.    │   page 140 of the printed manual.  │
  3813.    │                                    │
  3814.    └────────────────────────────────────┘
  3815.  
  3816.    You can start any kind of application with cmd, regardless of whether
  3817.    it runs in the Presentation Manager session or in a full-screen OS/2
  3818.    session. Your screen changes to reflect the type of application you start.
  3819.    When you are ready to quit Bricks, do the following:
  3820.  
  3821.    1.  Select the System menu.
  3822.  
  3823.    2.  Choose the Close command.
  3824.  
  3825.    Bricks disappears and cmd is automatically restored to a window
  3826.    on your screen.
  3827.  
  3828.    Using the System Menu in Cmd
  3829.  
  3830.    The System menu for cmd running in a window differs slightly from
  3831.    the System menu in Presentation Manager applications──it contains
  3832.    additional commands at the bottom of the menu.
  3833.  
  3834.    You display the System menu for cmd running in a window the same way as
  3835.    you display the System menu in Presentation Manager applications.
  3836.  
  3837.    If you are using a mouse, display the System menu:
  3838.  
  3839.    1.  Point to the System-menu box in the cmd window and click
  3840.        the left mouse button.
  3841.  
  3842.    If you are using your keyboard, do the following to display
  3843.    the System menu:
  3844.  
  3845.    1.  Press SHIFT+ESC.
  3846.  
  3847.    The System menu appears on your screen, with four additional
  3848.    commands listed at the bottom of the menu.
  3849.  
  3850.    ┌────────────────────────────────────┐
  3851.    │                                    │
  3852.    │   This screen can be viewed on     │
  3853.    │   page 142 of the printed manual.  │
  3854.    │                                    │
  3855.    └────────────────────────────────────┘
  3856.  
  3857.    Choosing the Help command is similar to pressing the F1 key──a window of
  3858.    Help information appears on your screen for the task you are performing.
  3859.    The Next Window command makes another window active. The following
  3860.    sections will show you how to use the Small Font command to adjust the
  3861.    font size of the characters on your screen and how to use the Scroll
  3862.    command to bring information not currently visible in the window into
  3863.    view.
  3864.  
  3865.    Changing the Font Size
  3866.  
  3867.    Use the Small Font command to change the size of the characters displayed
  3868.    in the work area of the cmd window. Here's how:
  3869.  
  3870.    1.  With the System menu displayed, choose the Small Font command (click
  3871.        Small Font by using your mouse or press the F key).
  3872.  
  3873.    The font size of the characters in the work area becomes smaller.
  3874.  
  3875.    Displaying information in a smaller font lets you fit more information
  3876.    in the work area.
  3877.  
  3878.    Now change the screen characters back to the larger font:
  3879.  
  3880.    1.  Select the System menu (click the System-menu box or press SHIFT+ESC).
  3881.  
  3882.        When the information in the work area is displayed in the smaller
  3883.        font, the Small Font command changes to the Large Font
  3884.        command.
  3885.  
  3886.        ┌────────────────────────────────────┐
  3887.        │                                    │
  3888.        │   This screen can be viewed on     │
  3889.        │   page 143 of the printed manual.  │
  3890.        │                                    │
  3891.        └────────────────────────────────────┘
  3892.  
  3893.    2.  Choose the Large Font command (click Large Font or press
  3894.        the F key).
  3895.  
  3896.    The characters in the work area reappear in the larger font.
  3897.  
  3898.    Scrolling the Contents of the Screen
  3899.  
  3900.    If you are using a mouse, you can use the vertical and horizontal scroll
  3901.    bars at the right and at the bottom of the cmd window to scroll the
  3902.    contents of the screen.
  3903.  
  3904.    ┌────────────────────────────────────┐
  3905.    │                                    │
  3906.    │   This screen can be viewed on     │
  3907.    │   page 143 of the printed manual.  │
  3908.    │                                    │
  3909.    └────────────────────────────────────┘
  3910.  
  3911.    See how this works by using the mouse and the horizontal scroll bar to
  3912.    scroll the contents of the screen to the right:
  3913.  
  3914.    1.  Click the right scroll arrow in the horizontal scroll bar.
  3915.  
  3916.        ┌────────────────────────────────────┐
  3917.        │                                    │
  3918.        │   This screen can be viewed on     │
  3919.        │   page 144 of the printed manual.  │
  3920.        │                                    │
  3921.        └────────────────────────────────────┘
  3922.  
  3923.        The contents move to the left.
  3924.  
  3925.    2.  Click the left scroll arrow.
  3926.  
  3927.        The contents move back to their original position.
  3928.  
  3929.    If you are using your keyboard, you can scroll the contents of the screen
  3930.    by using the Scroll command, together with the DIRECTION keys. Choose the
  3931.    Scroll command:
  3932.  
  3933.    1.  Press SHIFT+ESC to display the System menu.
  3934.  
  3935.    2.  Press the L key to choose the Scroll command.
  3936.  
  3937.    You now can scroll the contents of the screen by using the DIRECTION keys
  3938.    on your keyboard. Press the RIGHT key to move the contents
  3939.    to the left and then the LEFT key to move the contents to the right.
  3940.    Here's how:
  3941.  
  3942.    1.  Press the RIGHT key several times to move the contents of the screen
  3943.        to the left. Notice that the scroll box in the horizontal scroll bar
  3944.        also moves as you press the RIGHT key.
  3945.  
  3946.    2.  Press the LEFT key several times to move the contents back to
  3947.        its original position.
  3948.  
  3949.    To scroll the contents of the screen by using the keyboard, the Scroll
  3950.    command must be active. The Scroll command is active if there is
  3951.    a small check mark next to the command on the System menu.
  3952.  
  3953.    ┌────────────────────────────────────┐
  3954.    │                                    │
  3955.    │   This screen can be viewed on     │
  3956.    │   page 145 of the printed manual.  │
  3957.    │                                    │
  3958.    └────────────────────────────────────┘
  3959.  
  3960.    To make the Scroll command inactive, just choose it again
  3961.    from the System menu. Do the following:
  3962.  
  3963.    1.  Press SHIFT+ESC to display the System menu.
  3964.  
  3965.    2.  Press the L key to choose the Scroll command.
  3966.  
  3967.    Since the Scroll command is now inactive, pressing the DIRECTION keys will
  3968.    not scroll the contents of the screen.
  3969.  
  3970.    In this exercise, you've been introduced to two commands that appear on
  3971.    the System menu when you run full-screen OS/2 applications in
  3972.    a window──the Small Font command and the Scroll command. Part 1, "Using
  3973.    Presentation Manager," of the Microsoft Operating System/2 User's Guide,
  3974.    describes the other commands in detail.
  3975.  
  3976.    Quitting Cmd and Closing the Window
  3977.  
  3978.    To quit cmd and close the window, you use the exit command.
  3979.    Do this now:
  3980.  
  3981.    1.  At the MS OS/2 prompt, type the following:
  3982.  
  3983.        exit
  3984.  
  3985.    2.  Press the ENTER key.
  3986.  
  3987.    The cmd window disappears from your screen and Start Programs becomes the
  3988.    active application.
  3989.  
  3990.    ┌────────────────────────────────────┐
  3991.    │                                    │
  3992.    │   This screen can be viewed on     │
  3993.    │   page 146 of the printed manual.  │
  3994.    │                                    │
  3995.    └────────────────────────────────────┘
  3996.  
  3997.    In this exercise, you've learned and practiced some techniques for running
  3998.    cmd in a window in the Presentation Manager session. In the next exercise,
  3999.    you'll learn how to run cmd in a full-screen OS/2 session.
  4000.  
  4001.  
  4002.  Exercise 2: Running Cmd in a Full-Screen OS/2 Session
  4003.  
  4004.    Using cmd while it is running in a full-screen OS/2 session is easy. The
  4005.    way you type commands, control the contents of the screen, use editing
  4006.    keys, and start applications is identical to the way you perform these
  4007.    tasks when cmd is running in the Presentation Manager session.
  4008.  
  4009.    First, start cmd so that it runs in a full-screen OS/2 session.
  4010.    If you are using a mouse, do the following:
  4011.  
  4012.    1.  Point to OS/2 Full-Screen Command Prompt in the Start Programs window.
  4013.  
  4014.    2.  Double-click the left mouse button.
  4015.  
  4016.    If you are using the keyboard, do the following:
  4017.  
  4018.    1.  Use the UP or DOWN key to select OS/2 Full-Screen Command Prompt.
  4019.  
  4020.    2.  Press the ENTER key.
  4021.  
  4022.    The Presentation Manager window disappears and cmd appears on your screen,
  4023.    running in a full-screen OS/2 session. The MS OS/2 prompt appears in the
  4024.    upper-left corner of your screen, with the cursor next
  4025.    to it.
  4026.  
  4027.    ┌────────────────────────────────────┐
  4028.    │                                    │
  4029.    │   This screen can be viewed on     │
  4030.    │   page 147 of the printed manual.  │
  4031.    │                                    │
  4032.    └────────────────────────────────────┘
  4033.  
  4034.    Using Cmd in a Full-Screen OS/2 Session
  4035.  
  4036.    When you run cmd in a full-screen OS/2 session, it looks different from
  4037.    when you run it in a window in the Presentation Manager session. In a
  4038.    full-screen OS/2 session, cmd occupies your entire screen and there is no
  4039.    System-menu box, no Maximize or Minimize boxes, no title bar,
  4040.    and no borders.
  4041.  
  4042.    Even though cmd looks different when it is running in a full-screen
  4043.    session, it is the same program and you use it the same way as when
  4044.    it is running in a window.
  4045.  
  4046.    Now change to the OS2\INTRO directory, and then list its contents
  4047.    the same way as you did in the previous exercise──by using the cd and
  4048.    dir commands. Here's how:
  4049.  
  4050.    1.  To change to the OS2\INTRO directory, type the following:
  4051.  
  4052.        cd \os2\intro
  4053.  
  4054.    2.  Press the ENTER key.
  4055.  
  4056.        The name of the current directory appears as part of the MS OS/2
  4057.        prompt.
  4058.  
  4059.    3.  To list the contents of the OS2\INTRO directory, type
  4060.        the following:
  4061.  
  4062.        dir
  4063.  
  4064.    4.  Press the ENTER key.
  4065.  
  4066.    A list of the files and subdirectories in the current directory appears
  4067.    on your screen.
  4068.  
  4069.    Starting an Application
  4070.  
  4071.    You start an application when cmd is running in a full-screen OS/2 session
  4072.    the same way as when it is running in the Presentation Manager session.
  4073.  
  4074.    To see how this works, start the Bricks game again:
  4075.  
  4076.    1.  At the MS OS/2 prompt, type the following:
  4077.  
  4078.        bricks
  4079.  
  4080.    2.  Press the ENTER key.
  4081.  
  4082.    Because Bricks is a Presentation Manager application, cmd automatically
  4083.    switches to the Presentation Manager session, and Bricks appears in a
  4084.    window on your screen.
  4085.  
  4086.    ┌────────────────────────────────────┐
  4087.    │                                    │
  4088.    │   This screen can be viewed on     │
  4089.    │   page 149 of the printed manual.  │
  4090.    │                                    │
  4091.    └────────────────────────────────────┘
  4092.  
  4093.    To quit Bricks, do the following:
  4094.  
  4095.    1.  Select the System menu.
  4096.  
  4097.    2.  Choose the Close command.
  4098.  
  4099.    Bricks disappears and cmd returns, running in a full-screen session, just
  4100.    as cmd running in a window returned when you quit Bricks
  4101.    in the previous exercise.
  4102.  
  4103.    Quitting Cmd in a Full-Screen OS/2 Session
  4104.  
  4105.    You use the exit command to quit cmd when it is running in a full-screen
  4106.    OS/2 session, just as you did when it was running in a window. Try it now:
  4107.  
  4108.    1.  At the MS OS/2 prompt, type the following:
  4109.  
  4110.        exit
  4111.  
  4112.    2.  Press the ENTER key.
  4113.  
  4114.    Cmd disappears and Start Programs becomes the active application
  4115.    in the Presentation Manager session.
  4116.  
  4117.    ┌────────────────────────────────────┐
  4118.    │                                    │
  4119.    │   This screen can be viewed on     │
  4120.    │   page 151 of the printed manual.  │
  4121.    │                                    │
  4122.    └────────────────────────────────────┘
  4123.  
  4124.    In this exercise, you were introduced to cmd running in a full-screen OS/2
  4125.    session. When using cmd, keep in mind that it is the same
  4126.    program, whether you run it in the Presentation Manager session or
  4127.    in a full-screen OS/2 session. There is no difference in the way you
  4128.    type commands, use editing keys, control the movement of text on
  4129.    the screen, or start applications.
  4130.  
  4131.    The only difference, when you run cmd in the Presentation Manager session,
  4132.    is that it is running in a window that you can move, size, and shrink to
  4133.    an icon. You can also use the additional commands located
  4134.    at the bottom of the System menu.
  4135.  
  4136.    In the next exercise, you will run the DOS command interpreter,
  4137.    command, in the DOS session. Then, you'll learn how to use it to start
  4138.    your DOS applications and perform some file-management tasks.
  4139.  
  4140.  
  4141.  Exercise 3: Running the DOS Command Interpreter
  4142.  
  4143.    The DOS command interpreter, command, is the program that you
  4144.    use to run applications that were designed for the MS-DOS operating
  4145.    system, or a computer manufacturer's own version of DOS.
  4146.  
  4147.    Starting the DOS Command Interpreter
  4148.  
  4149.    When you start MS OS/2, the Presentation Manager session appears, with
  4150.    Start Programs running in a window and command represented as a DOS icon
  4151.    in the lower-left corner of your screen. The DOS icon lets you know that
  4152.    command is available to use whenever you want to start a DOS application.
  4153.  
  4154.    ┌────────────────────────────────────┐
  4155.    │                                    │
  4156.    │   This screen can be viewed on     │
  4157.    │   page 152 of the printed manual.  │
  4158.    │                                    │
  4159.    └────────────────────────────────────┘
  4160.  
  4161.    Unlike other applications that have been shrunk to icons, command doesn't
  4162.    actually run until you restore it or until you switch to it by using Task
  4163.    Manager. If you are using the mouse, do the following to run command:
  4164.  
  4165.    1.  Click the DOS icon.
  4166.  
  4167.    If you are using your keyboard, follow these steps to start command:
  4168.  
  4169.    1.  Press CTRL+ESC to display Task Manager.
  4170.  
  4171.    2.  Use the UP or DOWN key to select DOS Command Prompt from
  4172.        the list of applications displayed in the Task Manager window.
  4173.  
  4174.    3.  Press the ENTER key.
  4175.  
  4176.    The Presentation Manager window disappears and command appears
  4177.    as a darkened background on your screen. The DOS prompt appears in the
  4178.    upper-left corner, followed by a cursor, indicating that you are now in
  4179.    the DOS session.
  4180.  
  4181.    ┌────────────────────────────────────┐
  4182.    │                                    │
  4183.    │   This screen can be viewed on     │
  4184.    │   page 154 of the printed manual.  │
  4185.    │                                    │
  4186.    └────────────────────────────────────┘
  4187.  
  4188.    Unlike cmd, command cannot run in the Presentation Manager or
  4189.    full-screen OS/2 session. It can only run in the DOS session.
  4190.  
  4191.    Typing Commands
  4192.  
  4193.    Like cmd, command has its own set of commands that help you manage your
  4194.    files and maintain your disks. Several of these commands are identical to
  4195.    those in cmd. Some of these commands function a little differently from
  4196.    the same commands in cmd, and others are unique
  4197.    to command. For a list and a complete description of command commands, see
  4198.    the Microsoft Operating System/2 Desktop Reference and, for more detailed
  4199.    information on the DOS session, see Part 2, "Using Cmd and the DOS
  4200.    Session," of the Microsoft Operating System/2
  4201.    User's Guide.
  4202.  
  4203.    The way you type commands, use editing keys, start applications, and
  4204.    control the contents of the screen in command is exactly the same as the
  4205.    way you perform these tasks in cmd. For example, you type the cd and dir
  4206.    commands to change to a new directory and to display its
  4207.    contents in the same way.
  4208.  
  4209.    Starting a DOS Application
  4210.  
  4211.    Starting a DOS application with command is exactly like starting
  4212.    an MS OS/2 application with cmd──you type the command that starts
  4213.    the application. (If the application you want is not in your current
  4214.    directory, you may have to switch to the directory that contains
  4215.    the application.)
  4216.  
  4217.    For example, to start Microsoft Word, you do the following:
  4218.  
  4219.    1.  At the DOS prompt, type the following:
  4220.  
  4221.        word
  4222.  
  4223.    2.  Press the ENTER key.
  4224.  
  4225.    If you have Microsoft Word on your system, Word will appear on
  4226.    your screen.
  4227.  
  4228.    ┌────────────────────────────────────┐
  4229.    │                                    │
  4230.    │   This screen can be viewed on     │
  4231.    │   page 155 of the printed manual.  │
  4232.    │                                    │
  4233.    └────────────────────────────────────┘
  4234.  
  4235.    When you are using MS OS/2 to run applications, keep in mind that you must
  4236.    use command to run DOS applications. DOS applications will not run with
  4237.    cmd or in a Presentation Manager session. Similarly, applications designed
  4238.    for MS OS/2 will run with Presentation Manager or cmd, but they will not
  4239.    run with command.
  4240.  
  4241.    Now quit command and switch to Task Manager:
  4242.  
  4243.    1.  Press CTRL+ESC.
  4244.  
  4245.    The Presentation Manager window reappears with Task Manager displayed.
  4246.    Command is represented as an icon at the bottom of
  4247.    your screen, just as it was when you first started MS OS/2.
  4248.  
  4249.    ┌────────────────────────────────────┐
  4250.    │                                    │
  4251.    │   This screen can be viewed on     │
  4252.    │   page 156 of the printed manual.  │
  4253.    │                                    │
  4254.    └────────────────────────────────────┘
  4255.  
  4256.  
  4257.  Shutting Down MS OS/2
  4258.  
  4259.    You have now reached the end of the MS OS/2 tutorial. If you want to leave
  4260.    your computer or turn it off for a while, it is recommended that you shut
  4261.    down MS OS/2. To do this, switch to Task Manager and then choose the
  4262.    Shutdown Now command from the Shutdown menu.
  4263.  
  4264.  
  4265.  Going On
  4266.  
  4267.    In this guide, you've been introduced to Presentation Manager and
  4268.    the MS OS/2 and DOS command interpreters, cmd and command. For more
  4269.    information and instructions on how to use Presentation Manager and the
  4270.    Presentation Manager applications, Start Programs, Task Manager, Control
  4271.    Panel, File Manager, and Spooler Queue Manager, see Part 1, "Using
  4272.    Presentation Manager," of the Microsoft Operating System/2 User's Guide.
  4273.  
  4274.    For more detailed information and instructions on how to use the MS OS/2
  4275.    and DOS command interpreters, cmd and command, see Part 2, "Using Cmd and
  4276.    the DOS Session," of the Microsoft Operating
  4277.    System/2 User's Guide. For advanced information on customizing
  4278.    MS OS/2 to your needs, see Part 3, "Configuring and Maintaining
  4279.    Your System," of the Microsoft Operating System/2 User's Guide.
  4280.  
  4281.  
  4282.  
  4283.  ────────────────────────────────────────────────────────────────────────────
  4284.  Appendix  Computer Basics
  4285.  
  4286.    This section describes some of the basic computer terms you will need to
  4287.    know in order to work with MS OS/2. In the descriptions, italicized words
  4288.    are defined elsewhere in the appendix.
  4289.  
  4290.  A
  4291.  
  4292.    Application  A computer program that is used for a particular purpose,
  4293.    such as word processing or data management. For example, if you want to
  4294.    organize your company's financial records, you can work with a spreadsheet
  4295.    application.
  4296.  
  4297.  B
  4298.  
  4299.    Byte  A unit of measure used to indicate an amount of information on a
  4300.    computer. One byte usually represents one character; for example, one
  4301.    letter or a single-digit number. See also Kilobyte.
  4302.  
  4303.  C
  4304.  
  4305.    Command  A word or phrase you choose from a menu listing that carries out
  4306.    a certain action. For example, choosing the Copy command allows you to
  4307.    copy a file, and the Rename command allows you to give the file a
  4308.    different name. In some cases, rather than choosing a command from a menu,
  4309.    you type it at the command prompt. For example, typing dir
  4310.    gives you a list of the contents of your directory.
  4311.  
  4312.    Command prompt  The drive letter and accompanying symbols that appear on
  4313.    your screen when you switch to DOS in MS OS/2 or to the MS OS/2 command
  4314.    interpreter. You type commands at the command prompt.
  4315.  
  4316.    Cursor  Usually a blinking line or small box on the computer screen that
  4317.    shows where the next character you type will appear. See also Selection
  4318.    cursor.
  4319.  
  4320.  D
  4321.  
  4322.    Dialog box  A rectangular box that appears when MS OS/2 needs further
  4323.    information from you before it can carry out a command, or when the
  4324.    system is providing you with information.
  4325.  
  4326.    Direction key  See Keyboard.
  4327.  
  4328.    Directory  A single group of files that may be linked in a structure to
  4329.    other groups of related files. A directory is similar to a file drawer
  4330.    that contains a group of file folders. A directory can include both files
  4331.    and subdirectories, and those subdirectories in turn may include
  4332.    additional files (and subdirectories). The directory listing contains the
  4333.    names of your files and subdirectories, and may also contain the sizes in
  4334.    bytes, and the dates they were created or last modified.
  4335.    To learn more about directories and directory structures, see "Exercise 1,
  4336.    Starting File System" in Chapter 3 of this guide. See also Directory
  4337.    name, File, Path, Root directory, and Subdirectory.
  4338.  
  4339.    Directory name  A name, up to eight characters long, that identifies
  4340.    a particular directory. For example, OLDGAMES and OS2\INTRO
  4341.    are the names of two directories used in this guide. A directory may
  4342.    also have an extension──up to three additional characters added to
  4343.    the directory name and separated from the name by a period (.).
  4344.  
  4345.    Directory path  See Path.
  4346.  
  4347.    Disk  A disk is a permanent storage medium for computer information. Once
  4348.    you save information to a disk, the information remains there until you
  4349.    change or delete it. Information is stored on disks in files and
  4350.    directories. The process of storing information is referred to as
  4351.    "writing to a disk," while retrieving information is called "reading from
  4352.    a disk." Disks are either hard disks (sometimes called fixed disks) or
  4353.    floppy disks (sometimes called diskettes). The hard disk usually is
  4354.    located inside your computer's system unit; you can't see the disk, only
  4355.    the indicator light that goes on when the disk ".br is in use. A hard disk
  4356.    can store much more information than a floppy disk, and you can write to
  4357.    and read from a hard disk much faster than with a floppy disk. See also
  4358.    Disk drive, Floppy disk, and Hard disk.
  4359.  
  4360.    Disk drive  Disk drives come in two varieties──the hard disk or
  4361.    hard-disk drive and the so-called "floppy" drives. Disk drives are named
  4362.    by letters of the alphabet, and the hard disk often is called drive C.
  4363.    (In some cases, the hard disk is organized into additional drives,
  4364.    named D, E, and so forth.)
  4365.  
  4366.    Your computer may have more than one floppy-disk drive, and the drives may
  4367.    or may not be located in the system unit. A floppy-disk
  4368.    drive is a narrow slot into which you can slide a floppy disk. On most
  4369.    5-1/4-inch drives, after you slide in the disk, you need to close a small
  4370.    lever, locking the disk into the drive. There are two sizes of floppy
  4371.    drives to accomodate the two sizes of disks──5-1/4-inch and 3-1/2-inch. You
  4372.    computer may have either or both sizes of floppy-disk drives.
  4373.  
  4374.    Floppy-disk drives have indicator lights just as do hard-disk drives, and
  4375.    their purpose is the same──to show when activity is taking place on
  4376.    the disk. Floppy-disk drives are usually named A or B. See also Disk,
  4377.    Drive letter, Floppy disk, and Hard disk.
  4378.  
  4379.    Drive letter  A letter representing a hard- or floppy-disk drive. For
  4380.    example, "A" usually denotes a floppy-disk drive.
  4381.  
  4382.  F
  4383.  
  4384.    File  A collection of related information, stored on a disk. There are
  4385.    different kinds of files, including program files and text or data files,
  4386.    which are roughly equivalent to file folders containing papers of text
  4387.    information. For example, a file might contain the text of a letter or
  4388.    budgetary information on a particular project. See also Directory and
  4389.    Filename.
  4390.  
  4391.    Filename  A name, up to eight characters long, that identifies a
  4392.    particular file. A filename may also have an extension──up to three
  4393.    additional characters added to the base filename, and separated from the
  4394.    name by a period (.). Extensions often give you information about the kind
  4395.    of file; for example, the .TXT extension may be used for text files for a
  4396.    particular word-processing application.
  4397.  
  4398.    Format  To prepare a disk so that it can hold information. Formatting a
  4399.    disk erases whatever information was previously on it.
  4400.  
  4401.    Floppy disk  Floppy disks are removeable, flat disks, permanently encased
  4402.    in a square protective cover. There are two common sizes of floppy disks:
  4403.    5-1/4-inch and 3-1/2-inch. (The term "floppy" originated from the fact that
  4404.    the disks, made of a thin plastic, first were encased in a flexible cover
  4405.    and thus were "floppy." This is still the case with 5-1/4-inch disks.
  4406.    However, the 3-1/2-inch disks are protected by a hard plastic cover and are
  4407.    no longer flexible, though they are sometimes still referred to as
  4408.    floppy disks.) Floppy disks are often packaged and stored in removeable
  4409.    paper envelopes for further protection.
  4410.  
  4411.    There are two types of floppy disks──low density and high density. As the
  4412.    name implies, a high-density disk can store more information than
  4413.    a low-density disk.
  4414.  
  4415.    Floppy disks have a write-protection feature that you use to prevent their
  4416.    contents from being overwritten or added to. On the 5-1/4-inch disks, there
  4417.    is a small notch along the side of the protective cover. You cannot write
  4418.    information to the disk if this notch is covered (usually with a piece of
  4419.    tape or small adhesive tab). The 3-1/2-inch disks have
  4420.    a built-in write-protect tab, which slides one direction to allow writing
  4421.    and the other direction to protect the disk from being written to.
  4422.    You can read the information on a floppy disk whether or not it is
  4423.    write-protected.
  4424.  
  4425.    Although they are protected by their covers, floppy disks must be
  4426.    carefully handled.
  4427.  
  4428.    To ensure the safety of your disks, follow these guidelines:
  4429.  
  4430.    ■  Store floppy disks in their paper envelopes.
  4431.  
  4432.    ■  Label disks by using a felt-tip pen (be sure to label all disks, so you
  4433.       know what they contain).
  4434.  
  4435.    ■  Hold the disk at the corner of the protective cover to avoid pressure
  4436.       on the disk inside the cover.
  4437.  
  4438.    To prevent damage to your disks, avoid these situations:
  4439.  
  4440.    ■  Bending, cleaning, exposing to extreme heat, or touching the exposed
  4441.       surface (inside the oblong hole in the protective cover)
  4442.  
  4443.    ■  Writing on the disk with a ballpoint pen or pencil
  4444.  
  4445.    ■  Placing the disk near a magnet
  4446.  
  4447.    See also Disk, Disk drive, Format, and Hard disk.
  4448.  
  4449.    Function key  See Keyboard.
  4450.  
  4451.  H
  4452.  
  4453.    Hard disk  A hard disk is a circular metallic plate on which computer
  4454.    information is stored magnetically. Your computer generally has only one
  4455.    hard disk, usually located out of sight in the system unit. An indicator
  4456.    light comes on when information is being stored on or retrieved from the
  4457.    disk. A hard disk has some advantages over a floppy disk. Besides being
  4458.    able to store more information (usually many times more), it gives you
  4459.    faster access to the information. See also Disk, Disk drive and Floppy
  4460.    disk.
  4461.  
  4462.    Hardware  Hardware is loosely defined as the parts of the computer you
  4463.    can touch, including those you could touch if you opened up
  4464.    the computer. Hardware includes the system unit (with all its parts),
  4465.    the keyboard, modem, mouse, printer, and screen.
  4466.  
  4467.    High density  See Floppy disk.
  4468.  
  4469.  K
  4470.  
  4471.    Keyboard  Probably the most familiar-looking part of the hardware
  4472.    is the keyboard, which you use to type information into the computer.
  4473.    Though the keys may have slightly different names, they are much
  4474.    like the keys on a normal typewriter, with the letters of the alphabet,
  4475.    the numbers, the SHIFT key, the SPACEBAR, and so forth.
  4476.  
  4477.    The computer keys are, for the most part, not like any keys on a
  4478.    typewriter. These are divided into four groups──numeric keypad,
  4479.    DIRECTION keys, function keys, and other special keys. For a description
  4480.    of each group, read the following:
  4481.  
  4482.    ■  Numeric keypad──Similar in appearance to a 10-key adding machine or
  4483.       calculator keyboard, these keys are used for much the same purpose──to
  4484.       quickly type numbers. Notice that in addition to numbers, these keys
  4485.       may also have characters on them; for example, "HOME," "END," and
  4486.       arrows. Before using these keys to type numbers, you may have to press
  4487.       the NUMLOCK key (just as you would need to press the CAPS LOCK or SHIFT
  4488.       LOCK key on a typewriter to type in capital letters).
  4489.  
  4490.    ■  DIRECTION keys──These keys move the cursor to locations you choose on
  4491.       the screen. Each DIRECTION key has an arrow or a
  4492.       word on it (such as "PAGE UP" or "PAGE DOWN"), to show which
  4493.       direction the cursor will move. On the keyboard, you'll notice that
  4494.       some keys are labeled to suggest a dual purpose, such as when a
  4495.       DIRECTION key arrow and a numeric keypad number share the same keytop.
  4496.  
  4497.    ■  Function keys──These are special keys (labeled F1, F2, and so forth)
  4498.       whose purpose is defined by the software application. For example, in
  4499.       some applications, pressing the F1 key displays Help information about
  4500.       the subject you selected on the screen. To learn about the function
  4501.       keys used by your application, see the manual for your application.
  4502.  
  4503.    ■  Other keys──Some additional keys don't fit into any particular
  4504.       category, but you will use them often. These keys have various
  4505.       functions, which you'll learn as you become more experienced with
  4506.       MS OS/2. For example, the ENTER key generally is used to complete an
  4507.       operation. And pressing the CTRL, ALT, and DEL keys at the same time
  4508.       restarts your computer.
  4509.  
  4510.    Kilobyte  A unit of measure for the amount of information that can be
  4511.    processed or stored in a computer──approximately 1000 bytes. Storage
  4512.    (disk space) and memory are often measured in kilobytes or megabytes
  4513.    (approximately 1,000,000 bytes).
  4514.  
  4515.  L
  4516.  
  4517.    Low density  See Floppy disk.
  4518.  
  4519.  M
  4520.  
  4521.    Megabyte  See Kilobyte.
  4522.  
  4523.    Memory  More properly called random-access memory or RAM, this is the
  4524.    place where data and programs are stored temporarily while your computer
  4525.    is turned on. If you want to preserve something you have in memory, you
  4526.    must save it in storage, which usually means saving it on
  4527.    a disk. For example, if you are using a word-processing application to
  4528.    edit a text file, a copy of your text file is loaded from disk storage
  4529.    into memory. Once you make changes to the memory copy (for example,
  4530.    if you rewrite a paragraph), you need to save the revised version on
  4531.    the disk. This is important because, when you turn off your computer,
  4532.    the memory copy disappears.
  4533.  
  4534.    Memory is measured in units called kilobytes (K) or megabytes. Your
  4535.    applications require a minimum amount of memory to run; you can generally
  4536.    find out how much by checking the application's manual or packaging.
  4537.  
  4538.    Menu  A menu is a list of commands or tasks you can choose to have your
  4539.    computer do. Each menu has a name──to look at the list of available
  4540.    commands, you select the menu name. Menus appear in the menu bar of a
  4541.    window.
  4542.  
  4543.    Message  A sentence or short paragraph of information that may appear on
  4544.    your screen, warning you about the consequence of some action you've taken
  4545.    or asking for additional information or verification from you. For
  4546.    example, when you attempt to shut down MS OS/2,
  4547.    you will see a message, asking if you really want to quit all your
  4548.    applications.
  4549.  
  4550.    Modem  A modem is a piece of hardware that allows you to connect your
  4551.    computer to telephone lines so that you can communicate with another
  4552.    computer. Modems are commonly used to connect your computer to an
  4553.    information service, such as a stock-quote service, but you also can use a
  4554.    modem to send information to another computer.
  4555.  
  4556.    Monitor  The monitor or display screen is similar to a television screen,
  4557.    which in this case you use to see what you are typing or to read
  4558.    information the computer is sending you. There are various types of
  4559.    monitors. In general, monitors fall into two categories: monochrome and
  4560.    color. Monochrome monitors produce one color (usually green, amber, or
  4561.    white) on a black background. In addition, some can display graphics.
  4562.    Color monitors may display a range of colors, as well as graphics.
  4563.  
  4564.    Mouse  The mouse is a small device attached to your computer by a long
  4565.    cord. You slide the mouse across a flat surface, such as a tabletop or a
  4566.    book, and as you do, the mouse pointer moves across the screen
  4567.    in the same direction. If you're using a word-processing application, you
  4568.    might use the mouse to select a word you want to change on the screen by
  4569.    pointing to it with the mouse pointer, then pressing and releasing a mouse
  4570.    button. In other applications, you can move an item across
  4571.    the screen by pointing to it, pressing a mouse button, and holding down
  4572.    the button while you move the mouse. See also Mouse button and Mouse
  4573.    pointer.
  4574.  
  4575.    Mouse button  A mouse has one, two, or three small buttons that you press
  4576.    with your fingertip. This transmits a signal to the mouse
  4577.    pointer, which usually results in something happening on
  4578.    the screen;
  4579.    for example, an item is selected or moved.
  4580.  
  4581.    Mouse pointer  The arrow or other shape on your screen that moves as you
  4582.    slide the mouse across a flat surface.
  4583.  
  4584.    Multitasking  Multitasking is the ability to run more than one
  4585.    program at the same time. The multitasking feature of MS OS/2
  4586.    allows you to do such things as start a program that is performing complex
  4587.    calculations, while you switch to your word-processing application and
  4588.    start typing. The first program continues to calculate, while you work on
  4589.    your document.
  4590.  
  4591.  N
  4592.  
  4593.    Numeric keypad  See Keyboard.
  4594.  
  4595.  O
  4596.  
  4597.    On/Off switch  Both your system unit and monitor usually have on/off
  4598.    switches that you will need to turn on before you can work with your
  4599.    computer. Common locations for these switches are on the back, side, or
  4600.    front of the system unit, and on the front, back, or side of the
  4601.    monitor.
  4602.  
  4603.    Operating system  The operating system is a collection of instructions
  4604.    that tell your computer how to run programs and applications. Microsoft
  4605.    Operating System/2 (this system) has a particularly important feature you
  4606.    should be aware of──multitasking. See also Multitasking.
  4607.  
  4608.  P
  4609.  
  4610.    Path  One or more directory names that specify the exact location
  4611.    of a file or directory. In the path, also called the directory path,
  4612.    each directory is separated from the next by a backslash (\). You could
  4613.    also add a drive-letter designation to the path. The following is an
  4614.    example of a path, preceded by a drive letter, with a filename added.
  4615.  
  4616.    c:\customers\ecoast\nyc\berman.jkl
  4617.  
  4618.    See also Directory and Drive letter.
  4619.  
  4620.    Port  A port is a kind of electrical outlet in your system unit that you
  4621.    can use to plug additional equipment into your computer, such as a modem,
  4622.    a mouse, or a printer. Ports have names that relate to the type of
  4623.    equipment that can be connected to them. For example, printer ports are
  4624.    usually named LPT1, LPT2, and so forth (the LPT originates from "line
  4625.    printer," which most printers used to be). Communication ports (where you
  4626.    plug in a modem and some types of printers) are named COM1, COM2, COM3.
  4627.    Ports often are located on the back of your system unit.
  4628.  
  4629.    Printer  Printers come in many styles. They all print information from
  4630.    your computer onto paper, but vary widely in printing speed, print
  4631.    quality, and what they can print. For example, some dot-matrix and laser
  4632.    printers print both text and graphics, while some letter-quality printers
  4633.    are limited to text.
  4634.  
  4635.    Processor  Also called the CPU or central processing unit, this is
  4636.    the physical place your computer interprets and processes information.
  4637.  
  4638.    Program  A set of instructions, written in computer language, that tell
  4639.    the computer how to perform a task or set of tasks. See also Application.
  4640.  
  4641.    Prompt  See Command prompt.
  4642.  
  4643.  R
  4644.  
  4645.    Root directory  The highest-level in the directory structure. All files
  4646.    and directories are contained within the root directory. The root
  4647.    directory is created automatically by the system, and it is indicated by a
  4648.    backslash (\) that follows the drive letter. See also Directory.
  4649.  
  4650.  S
  4651.  
  4652.    Screen  See Monitor.
  4653.  
  4654.    Selection cursor  In Presentation Manager, the mark, often a dark bar or
  4655.    dotted box, that shows you where you are working in a window or dialog
  4656.    box and what you have selected. The selection cursor varies, depending on
  4657.    where you are working. For example, in File System,
  4658.    a dark bar shows you which disk drive or file you have selected. In a
  4659.    dialog box, a dotted box shows you which area of the dialog box you are
  4660.    working in.
  4661.  
  4662.    Software  Software is a set of computer instructions that make the
  4663.    hardware perform the tasks the computer was designed to do, such as
  4664.    displaying graphics on the screen, printing a text file, or calculating
  4665.    mathematics. Software includes the operating system (MS OS/2) that
  4666.    allows you to run applications, as well as the applications themselves,
  4667.    and is supplied on floppy disks.
  4668.  
  4669.    Storage  Storage is the saving of computer information on a permanent
  4670.    medium. Usually, this refers to saving information on a disk, either hard
  4671.    or floppy. Once saved to a disk, information will remain there until it is
  4672.    changed or deleted, as opposed to information in your computer's memory,
  4673.    which is deleted when the computer is turned off. See also Memory.
  4674.  
  4675.    Subdirectory  A directory contained within another directory. In
  4676.    actuality, all directories are subdirectories of the root directory.
  4677.    See also Directory and Root directory.
  4678.  
  4679.    System unit  The system unit is the main part of your computer,
  4680.    the piece of hardware that integrates all the other pieces. It contains
  4681.    several important parts of your computer──the disk drives, memory,
  4682.    on/off switch, ports, and a processor.
  4683.  
  4684.  W
  4685.  
  4686.    Window  A window is a rectangular area on the screen in which an
  4687.    application is displayed. A window has menus from which you choose
  4688.    commands, in order to perform certain tasks. A window may also include a
  4689.    title bar, menu bar, System menu, work area, scroll bars, and borders.
  4690.    Your screen may have several windows displayed at one time, either
  4691.    overlapping or side-by-side.
  4692.  
  4693.