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

  1.  Microsoft Operating System/2 - User's Guide
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  ────────────────────────────────────────────────────────────────────────────
  11.                 Microsoft(R) Operating System/2 - User's Guide
  12.  
  13.                                  Version 1.2
  14.  ────────────────────────────────────────────────────────────────────────────
  15.  
  16.  
  17.  
  18.  
  19.  Information in this document is subject to change without notice and does
  20.  not represent a commitment on the part of Microsoft Corporation. The
  21.  software and/or databases described in this document are furnished under a
  22.  license agreement or nondisclosure agreement. The software and/or databases
  23.  may be used or copied only in accordance with the terms of the
  24.  agreement. The purchaser may make one copy of the software for backup
  25.  purposes. No part of this manual and/or database may be reproduced or
  26.  transmitted in any form or by any means, electronic or mechanical,
  27.  including photocopying, recording, or information storage and retrieval
  28.  systems, for any purpose other than the purchaser's personal use, without
  29.  the written permission of Microsoft Corporation.
  30.  
  31.  
  32.  (C) Copyright Microsoft Corporation, 1990. All rights reserved.
  33.  
  34.  Printed in the United States of America.
  35.  
  36.  
  37.  Patent #4,825,358
  38.  
  39.  Patent #4,779,187
  40.  
  41.  
  42.  Microsoft(R), MS(R), MS-DOS(R), the Microsoft logo, and InPort(R)
  43.  are registered trademarks, and Windows(tm) is a trademark, of Microsoft
  44.  Corporation.
  45.  
  46.  
  47.  SideKick(R) is a registered trademark of Borland International, Inc.
  48.  
  49.  
  50.  IBM(R), PC/AT(R), and PS/2(R) are registered trademarks of
  51.  International Business Machines Corporation.
  52.  
  53.  
  54.  SY13238-0490 OEMO786-1Z
  55.  
  56.  
  57.  
  58.  Table of Contents
  59.  ────────────────────────────────────────────────────────────────────────────
  60.  
  61.  
  62.  
  63.  Welcome
  64.  
  65.  
  66.  Part 1: Using Presentation Manager
  67.  
  68.  
  69.  Chapter 1  Learning Basic Presentation Manager Skills
  70.  
  71.  
  72.  Chapter 2  Running Applications with MS OS/2
  73.  
  74.  
  75.  Chapter 3  Using File Manager
  76.  
  77.  
  78.  Chapter 4  Printing Files
  79.  
  80.  
  81.  Chapter 5  Changing System Settings with Control Panel
  82.  
  83.  
  84.  Chapter 6  Using System Editor
  85.  
  86.  
  87.  Chapter 7  Using MS OS/2 Command Reference
  88.  
  89.  
  90.  Part 2: Using Cmd and the DOS Session
  91.  
  92.  
  93.  Chapter 8  Running Cmd
  94.  
  95.  
  96.  Chapter 9  Using MS OS/2 Utilities
  97.  
  98.  
  99.  Chapter 10  Using the DOS Session
  100.  
  101.  
  102.  Chapter 11  Using MS OS/2 Batch Programs
  103.  
  104.  
  105.  Part 3: Configuring and Maintaining Your System
  106.  
  107.  
  108.  Chapter 12  Maintaining Your System
  109.  
  110.  
  111.  Chapter 13  Setting Up Your Hard Disk
  112.  
  113.  
  114.  Chapter 14  Using Start-Up Files in MS OS/2
  115.  
  116.  
  117.  Chapter 15  Using MS OS/2 Configuration Commands
  118.  
  119.  
  120.  Chapter 16  Using the High-Performance File System
  121.  
  122.  
  123.  Appendix A
  124.  
  125.  
  126.  Chapter 17  Using MS OS/2 Device Drivers
  127.  
  128.  
  129.  Part 4: Appendixes
  130.  
  131.  
  132.  Appendix A  ANSI Escape Sequences
  133.  
  134.  
  135.  Appendix B  Using MS OS/2 Dual Boot
  136.  
  137.  
  138.  Appendix C  Using Picture Utilities
  139.  
  140.  
  141.  Terms
  142.  
  143.  
  144.  
  145.  
  146.  Welcome
  147.  ────────────────────────────────────────────────────────────────────────────
  148.  
  149.  The Microsoft Operating System/2 User's Guide is designed to be a
  150.  comprehensive, easy-to-use guide to Microsoft(R) Operating System/2 (MS(R)
  151.  OS/2), including the graphical environment of Presentation Manager and the
  152.  powerful multitasking capabilities of MS OS/2.
  153.  
  154.  This guide is divided into three parts and has a terminology section and
  155.  three appendixes ("ANSI Escape Sequences," "Using MS OS/2 Dual Boot," and
  156.  "Using Picture Utilities"). It is designed for both beginning users and
  157.  those who are familiar with advanced computer topics.
  158.  
  159.  In this guide, you will find the following parts:
  160.  
  161.  Part I: Using Presentation Manager
  162.  
  163.  Chapters in this part explain basic concepts that you will need when working
  164.  in the graphical environment of Presentation Manager:
  165.  
  166.    ■   Using Presentation Manager windows
  167.  
  168.    ■   Starting applications
  169.  
  170.    ■   Working with files, directories, and disks
  171.  
  172.    ■   Printing
  173.  
  174.    ■   Changing system settings
  175.  
  176.    ■   Creating and editing text files
  177.  
  178.    ■   Viewing the Microsoft Operating System/2 Command Reference
  179.  
  180.  
  181.  
  182.  Part 2: Using Cmd and the DOS Session
  183.  
  184.  Chapters in this part describe using cmd, the MS OS/2 command interpreter,
  185.  and command, the DOS command interpreter. The following topics are
  186.  discussed:
  187.  
  188.    ■   Using cmd commands
  189.  
  190.    ■   Using MS OS/2 utility programs to manage files, directories, and disks
  191.  
  192.    ■   Using DOS
  193.  
  194.    ■   Writing batch programs
  195.  
  196.  
  197.  In this manual, the term DOS refers to the MS-DOS(R) and IBM Personal
  198.  Computer DOS operating systems.
  199.  
  200.  Part 3: Configuring and Maintaining Your System
  201.  
  202.  Chapters in this part describe how to customize your system by doing the
  203.  following:
  204.  
  205.    ■   Creating start-up files
  206.  
  207.    ■   Changing your CONFIG.SYS file
  208.  
  209.    ■   Changing and maintaining system hardware
  210.  
  211.    ■   Using the high-performance file system
  212.  
  213.  
  214.  
  215.  
  216.  How to Use This Guide
  217.  
  218.  This guide is organized as a comprehensive reference and is arranged by
  219.  task. It is not necessary to read it straight through. You are given
  220.  instructions for accomplishing each task; some shortcuts and alternative
  221.  methods are also provided.
  222.  
  223.  You may find this guide too detailed if you are just getting started. For a
  224.  visual overview of and a hands-on introduction to MS OS/2, see Chapter 2, "A
  225.  Visual Overview of MS OS/2," and Chapter 3, "Learning Basic MS OS/2 Skills,"
  226.  in Microsoft Operating System/2 Getting Started.
  227.  
  228.  Before using this guide, you should install MS OS/2 on your system. For
  229.  information about installing MS OS/2, see Chapter 1, "Setting Up MS OS/2 and
  230.  Using the Manuals," in Microsoft Operating System/2 Getting Started.
  231.  
  232.  
  233.  Notational Conventions
  234.  
  235.  To help you locate and interpret information easily, this guide uses
  236.  specific typographic conventions and a standard syntax format and
  237.  terminology. The following typographic conventions are used in this guide:
  238.  
  239.  Convention                        Used for
  240.  ────────────────────────────────────────────────────────────────────────────
  241.  
  242.  bold                              Command-line commands, utilities,
  243.                                    options, and portions of syntax that you
  244.                                    must type exactly as shown
  245.  
  246.  italic                            Variables and placeholders that
  247.                                    represent information you must provide
  248.  
  249.  monospace                         Sample command lines, program code,
  250.                                    program output, and examples
  251.  
  252.  
  253.  
  254.  Convention                        Used for
  255.  ────────────────────────────────────────────────────────────────────────────
  256.  
  257.  ALL CAPITALS                      Filenames, directory names, and acronyms
  258.  
  259.  SMALL CAPITALS                    Names of keys on your keyboard
  260.  
  261.  Initial Capitals                  Presentation Manager commands and menu
  262.                                    names
  263.  
  264.  Key combinations and key sequences appear in the following format:
  265.  
  266.  Notation                          Meaning
  267.  ────────────────────────────────────────────────────────────────────────────
  268.  
  269.  KEY+KEY                           A plus sign (+) between keynames means
  270.                                    you must press the keys at the same
  271.                                    time─for example, "Press ALT+ESC" means
  272.                                    that you press the ALT key and hold it
  273.                                    down while you press the ESC key.
  274.  
  275.  KEY, KEY                          A comma (,) between keynames means you
  276.                                    must press the keys in sequence─for
  277.                                    example, "Press ALT, SPACEBAR" means
  278.                                    that you press the ALT key and release
  279.                                    it, and then press the SPACEBAR and
  280.                                    release it.
  281.  
  282.  DIRECTION keys                    Arrow keys on your computer keypad
  283.                                    indicate DIRECTION keys. The name refers
  284.                                    to the direction in which the arrow on
  285.                                    the key points: UP, DOWN, RIGHT, or LEFT.
  286.  
  287.  .ET
  288.  
  289.  
  290.  Syntax Conventions
  291.  
  292.  Syntax represents the order in which you must type a command-line command or
  293.  utility name and any arguments and options that follow it. You may type
  294.  commands, arguments, and options in either uppercase or lowercase letters.
  295.  The following elements are used in syntax lines in this guide:
  296.  
  297.  Notation                          Meaning
  298.  ────────────────────────────────────────────────────────────────────────────
  299.  
  300.  [ ]                               Indicates optional items. To include the
  301.                                    optional information described within
  302.                                    the brackets, type only the information,
  303.                                    not the brackets themselves.
  304.  
  305.  drive:                            Specifies a disk drive. You need to
  306.                                    specify a drive name along with a
  307.                                    filename only if you are using a file
  308.                                    that is not on the current drive. The
  309.                                    colon (:) must be typed as shown.
  310.  
  311.  .RT
  312.  
  313.  Notation                          Meaning
  314.  ────────────────────────────────────────────────────────────────────────────
  315.  
  316.  path                              Specifies a complete directory path,
  317.                                    using the following syntax:
  318.  
  319.                                    [\edirectory...][\edirectory...]\edirect
  320.                                    ory
  321.  
  322.                                    You need to specify a path along with a
  323.                                    filename only if the file is not in the
  324.                                    current directory.
  325.  
  326.  filename                          Specifies a file and includes a filename
  327.                                    extension, if any─for example,
  328.                                    REPORTS.AUG.
  329.  
  330.  ...                               Indicates that an argument can be
  331.                                    repeated several times in a command line.
  332.                                    Type only the information, not the
  333.                                    ellipsis (...) itself.
  334.  
  335.  
  336.  
  337.  Using a Mouse and the Keyboard
  338.  
  339.  You can use both a mouse and the keyboard with MS OS/2. In this guide,
  340.  textured bars in the left margin point out instructions for performing
  341.  tasks.
  342.  
  343.  If separate sets of instructions are provided for the mouse and the
  344.  keyboard, the mouse procedure is described first. If mouse and keyboard
  345.  instructions appear in a two-column list, the mouse procedure is on the
  346.  left, the keyboard procedure is on the right.
  347.  
  348.  The following list describes mouse actions used in this guide:
  349.  
  350.  Action                            Meaning
  351.  ────────────────────────────────────────────────────────────────────────────
  352.  
  353.  Point                             Move the mouse pointer until the tip
  354.                                    rests on a specific object or area on
  355.                                    your screen.
  356.  
  357.  Click                             Press and release the mouse button. To
  358.                                    click an object means to point to that
  359.                                    object (for example, an icon or a menu
  360.                                    name) and press and release the mouse
  361.                                    button.
  362.  
  363.  Double-click                      Press and release the mouse button twice
  364.                                    in rapid succession.
  365.  
  366.  Drag                              Press the mouse button and hold it down
  367.                                    while moving the mouse pointer.
  368.  
  369.  
  370.  
  371.  Presentation Manager responds to both the left and right mouse buttons on a
  372.  two-button mouse. The left and right mouse buttons perform different types
  373.  of tasks. You can change which button Presentation Manager recognizes for
  374.  particular tasks. For information about how to do this, see Chapter 5,
  375.  "Changing System Settings with Control Panel."
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  Part 1: Using Presentation Manager
  383.  ────────────────────────────────────────────────────────────────────────────
  384.  
  385.  In this part of the Microsoft Operating System/2 User's Guide, you will find
  386.  instructions on everything from basic tasks, such as looking at your files
  387.  and directories or starting applications, to more complex tasks, like
  388.  setting up a printer and changing system settings.
  389.  
  390.  You will learn how to use File Manager to work with your files and
  391.  directories, as well as how to create and edit files using System Editor.
  392.  
  393.  You will be able to use these skills to work with any application written
  394.  for the graphical Presentation Manager environment.
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  Chapter 1  Learning Basic Presentation Manager Skills
  402.  ────────────────────────────────────────────────────────────────────────────
  403.  
  404.  
  405.  
  406.  
  407.  Introduction
  408.  
  409.  Presentation Manager is a graphical environment in Microsoft Operating
  410.  System/2 (MS OS/2) that presents applications in windows and is designed to
  411.  provide an easy-to-use, standard interface for applications. You can quickly
  412.  switch from one application to another by using a mouse or the keyboard. If
  413.  you have not worked with a graphical interface before, there are a few
  414.  skills and terms you need to learn. Once you master these skills, you can
  415.  use them with any Presentation Manager application. This chapter provides
  416.  information on the following Presentation Manager skills:
  417.  
  418.    ■   Selecting menus
  419.  
  420.    ■   Choosing commands
  421.  
  422.    ■   Using dialog boxes
  423.  
  424.    ■   Sizing, moving, and arranging windows
  425.  
  426.    ■   Using icons
  427.  
  428.    ■   Using Help
  429.  
  430.  
  431.  
  432.  
  433.  ────────────────────────────────────────────────────────────────────────────
  434.  Note
  435.  
  436.  All examples of filenames and directory names in this chapter use the file
  437.  allocation table (FAT) file system, which is the file system used by DOS and
  438.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  439.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  440.  High-Performance File System."
  441.  ────────────────────────────────────────────────────────────────────────────
  442.  
  443.  
  444.  
  445.  
  446.  Presentation Manager Basics
  447.  
  448.  In Presentation Manager, applications run in windows. These windows divide
  449.  your screen so that you can see several different applications at one time.
  450.  With Presentation Manager, there are several ways in which you can arrange
  451.  windows and control applications. The following is a typical Presentation
  452.  Manager window.
  453.  
  454.  (This figure may be found in the printed book).
  455.  
  456.  
  457.  
  458.  The Presentation Manager Window
  459.  
  460.  
  461.  Here are some terms that
  462.  ill help you learn about and use Presentation Manager windows:
  463.    ■   The selection cursor shows where you are in a window or in a dialog
  464.        box. If you have a mouse installed, you will also see a mouse pointer
  465.        shaped like an arrow.
  466.  
  467.    ■   The work area is where you do most of your work with an application.
  468.        For example, if you start a text-editing application, the contents of
  469.        a document file appear in the work area. In Desktop Manager─the first
  470.        application you see when you start Presentation Manager─the work area
  471.        contains a list of the program groups you can open. The work area of
  472.        the Main-group window, which opens automatically when you start
  473.        Presentation Manager, contains a list of applications you can start.
  474.  
  475.    ■   The title bar, located at the top of each window, displays the name of
  476.        the application or group.
  477.  
  478.    ■   The menu bar contains the names of the command menus in an
  479.        application.
  480.  
  481.    ■   The System-menu box represents the System menu. This menu is common to
  482.        all Presentation Manager windows. You use its commands to size, move,
  483.        and close windows, and to switch to other applications and groups.
  484.  
  485.    ■   The Maximize box enlarges your window. If you don't have a mouse, you
  486.        can use the Maximize command from the System menu.
  487.  
  488.    ■   The Minimize box reduces your window to an icon. If you don't have a
  489.        mouse, you can use the Minimize command from the System menu.
  490.  
  491.    ■   The icon area is the area along the bottom of your screen. When you
  492.        reduce applications or groups to icons, the icons appear along the
  493.        bottom of your screen. When you first start Presentation Manager, the
  494.        icons for the DOS session and Print Manager appear at the bottom of
  495.        your screen.
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  Working in a Window
  502.  
  503.  In Presentation Manager, you must select the area or object your next action
  504.  is going to affect. You select a window and then work in it, you select a
  505.  menu and then choose a command, you select an area within a file and then do
  506.  something to it. The way you select varies, depending on the task.
  507.  Selections are displayed in a variety of ways. Remember this basic concept:
  508.  First select, then carry out the action.
  509.  
  510.  Presentation Manager always shows you where you are in a window and what
  511.  you've selected. The selection cursor identifies your place in a window or
  512.  dialog box. You move the selection cursor by using either a mouse or the
  513.  keyboard. The selection cursor changes shape, depending on the kind of
  514.  application you're working with and the kind of task you're trying to
  515.  accomplish. For example, in dialog boxes, the selection cursor is a dotted
  516.  box that shows you which dialog-box option is selected.
  517.  
  518.  
  519.  Selecting an Item in a Window
  520.  
  521.  In the work area of many windows, you can select only one item at a time─for
  522.  example, a disk-drive icon or an application.
  523.  
  524.  (This figure may be found in the printed book).
  525.  
  526.  To select an item, do the following:
  527.  
  528.  Mouse                             Keyboard
  529.  ────────────────────────────────────────────────────────────────────────────
  530.  
  531.  Click the item.                   Press the DIRECTION keys to move the
  532.                                    selection cursor to the item.
  533.  
  534.  In some windows, you can select several objects at once. This action is
  535.  called extending a selection. For more information, see the following
  536.  section, "Extending a Selection in a Window."
  537.  
  538.  
  539.  Extending a Selection in a Window
  540.  
  541.  In some windows, you can extend a selection to include more than one
  542.  item─for example, a block of files that are next to each other or files
  543.  scattered throughout a window.
  544.  
  545.  ────────────────────────────────────────────────────────────────────────────
  546.  Note
  547.  
  548.  The information in the following section on extending a selection does not
  549.  apply to selecting in a list box. For more information on selecting in a
  550.  list box, see "Working with a List Box," later in this chapter.
  551.  ────────────────────────────────────────────────────────────────────────────
  552.  
  553.  
  554.  
  555.  Selecting Blocks of Items
  556.  
  557.  To select a block of items by using a mouse, do the following:
  558.  
  559.        Mouse 
  560.  
  561.    1.  Click the first item in the block that you want to select.
  562.  
  563.    2.  Press and hold down SHIFT and click the last item you want to select
  564.        in the block.
  565.  
  566.  
  567.  Or
  568.  
  569.    1.  Move to the first item in the block that you want to select and press
  570.        and hold down the left mouse button.
  571.  
  572.    2.  While holding down the left mouse button, move to the last item you
  573.        want to select.
  574.  
  575.  
  576.  If, after selecting, you want to extend the selection further, do the
  577.  following:
  578.  
  579.    1.  Press and hold down SHIFT.
  580.  
  581.    2.  Press and hold down the left mouse button and move to the last item
  582.        you want to select.
  583.  
  584.  
  585.  
  586.  To select a block of items by using the keyboard, follow these steps:
  587.        Keyboard 
  588.  
  589.    1.  Press the DIRECTION keys to move to the first item you want to select.
  590.  
  591.    2.  Press and hold down SHIFT.
  592.  
  593.    3.  While holding down SHIFT, press the DIRECTION keys until you have
  594.        selected the items you want.
  595.  
  596.  
  597.  To select more than one block of items by using a mouse, follow these steps:
  598.  
  599.  
  600.        Mouse 
  601.  
  602.    1.  Select the first block of items as described in the mouse procedure
  603.        for selecting a block of items.
  604.  
  605.    2.  Press and hold down CTRL.
  606.  
  607.    3.  Click the first item in the next block of items you are selecting.
  608.  
  609.    4.  Press and hold down SHIFT+CTRL.
  610.  
  611.    5.  Click the last item you want to select in the block.
  612.  
  613.  
  614.  Follow these steps to select more than one block of items by using the
  615.  keyboard:
  616.  
  617.        Keyboard 
  618.  
  619.    1.  Select the first block of items as described in the keyboard procedure
  620.        for selecting a block of items.
  621.  
  622.    2.  Press SHIFT+F8.
  623.  
  624.        The selection cursor begins to blink.
  625.  
  626.        (This figure may be found in the printed book).
  627.  
  628.    3.  Press the DIRECTION keys to move the selection cursor to the first
  629.        item in the next block of items you want to select.
  630.  
  631.    4.  Press the SPACEBAR to select the item.
  632.  
  633.    5.  Press the DIRECTION keys to move the selection cursor to the last item
  634.        you want to select in the block.
  635.  
  636.    6.  Press SHIFT+SPACEBAR.
  637.  
  638.  
  639.  
  640.  Selecting Scattered Items
  641.  
  642.  To select scattered items, follow these steps:
  643.  
  644.  Mouse                             Keyboard
  645.  ────────────────────────────────────────────────────────────────────────────
  646.  
  647.  Press and hold down CTRL while    1  Press SHIFT+F8 (the selection cursor
  648.  clicking each item.               begins to blink).
  649.  
  650.                                    2  Press the DIRECTION keys to move to
  651.                                    each item.
  652.  
  653.                                    3  Press the SPACEBAR to select each
  654.                                    item.
  655.  
  656.  
  657.  Selecting All Items in a Window
  658.  
  659.  To select all the items in a window, do the following:
  660.  
  661.        Keyboard 
  662.  
  663.    ■   Press CTRL+/ (slash key).
  664.  
  665.  
  666.  To cancel the selection, do the following:
  667.  
  668.        Keyboard 
  669.  
  670.    ■   Press CTRL+\e (backslash key).
  671.  
  672.  
  673.  
  674.  Canceling a Selection and Undoing an Action
  675.  
  676.  You can cancel any selection from a group of selected items by doing the
  677.  following:
  678.  
  679.  Mouse                             Keyboard
  680.  ────────────────────────────────────────────────────────────────────────────
  681.  
  682.  Press and hold down CTRL and      1  Press SHIFT+F8 (the selection cursor
  683.  click the selected item.          begins to blink).
  684.  
  685.                                    2  Press the DIRECTION keys to move to
  686.                                    the selected item.
  687.  
  688.                                    3  Press the SPACEBAR.
  689.  
  690.  .ET
  691.  
  692.  ────────────────────────────────────────────────────────────────────────────
  693.  Note
  694.  
  695.  If you are combining mouse and keyboard techniques to extend a selection,
  696.  clicking an item without holding down the CTRL key cancels your previous
  697.  selections.
  698.  ────────────────────────────────────────────────────────────────────────────
  699.  
  700.  
  701.  
  702.  To undo your last selection or action, do the following:
  703.  
  704.        Keyboard 
  705.  
  706.    ■   Press ALT+BACKSPACE.
  707.  
  708.  
  709.  
  710.  
  711.  Dragging Icons
  712.  
  713.  If you are using a mouse, you can quickly perform specific tasks like
  714.  starting an application, printing a file, or copying a file by dragging the
  715.  appropriate icon. For example, if you want to print a file, you can drag the
  716.  file icon onto the Print Manager icon or into the Print Manager window. Or
  717.  you can start an application by dragging a data-file icon from File Manager
  718.  onto a program icon or title in a group window. .RT
  719.  
  720.  Remember to use the right mouse button instead of the left mouse button when
  721.  you drag icons. The left mouse button is used for selecting, and the right
  722.  mouse button is used for dragging. To drag an icon, follow these steps:
  723.  
  724.    1.  Using the left mouse button, click the item (file or application) you
  725.        want to select.
  726.  
  727.    2.  Hold down the right mouse button and move the mouse pointer.
  728.  
  729.        As soon as you start moving the mouse, the pointer becomes the icon
  730.        for the selected item.
  731.  
  732.        (This figure may be found in the printed book).
  733.  
  734.    3.  Continue moving the mouse until the icon is in the location you want
  735.        (in a window or over another icon).
  736.  
  737.    4.  Release the mouse button.
  738.  
  739.  
  740.  
  741.  
  742.  Switching Between Windows
  743.  
  744.  In Presentation Manager, the window you are
  745.  currently working in is called the active window. The active-window title
  746.  bar is a different color to distinguish the active window from other
  747.  windows. Each time you start Presentation Manager, two Presentation Manager
  748.  applications start automatically: Desktop Manager and Print Manager. The
  749.  Main-group window opens automatically, and the DOS session─a special
  750.  environment for running DOS programs─starts as well. When you are running
  751.  more than one application or have more than one group open, you must select
  752.  the application or group you want to work in.
  753.  
  754.  There are several ways to switch between applications and groups. In this
  755.  section, some of the methods for moving between applications are summarized.
  756.  For more information on running applications and opening groups, see Chapter
  757.  2, "Running Applications with MS OS/2."
  758.  
  759.  You can use the Task List to switch between applications. The Task List
  760.  contains the names of all the applications you are running and of all the
  761.  groups you have open.
  762.  
  763.  (This figure may be found in the printed book).
  764.  
  765.  To display the Task List, do the following:
  766.  
  767.  Mouse                             Keyboard
  768.  ────────────────────────────────────────────────────────────────────────────
  769.  
  770.  Click the right mouse button      Press CTRL+ESC.
  771.  anywhere on the Presentation
  772.  Manager background (outside of a
  773.  window).
  774.  
  775.  Once the Task List is displayed, you can use it to switch to another
  776.  application or group. To switch to another application or group, do the
  777.  following:
  778.  
  779.  Mouse                             Keyboard
  780.  ────────────────────────────────────────────────────────────────────────────
  781.  
  782.  Double-click the application or   1  Press the UP or DOWN key to select
  783.  group title.                      the application or group title you want.
  784.  
  785.                                    2  Press ENTER.
  786.  
  787.  You can also switch directly to an application or group without using the
  788.  Task List. There are several techniques you can use depending on whether the
  789.  application or group is running in a window or as an icon, and whether or
  790.  not you have a mouse. If an application or group window is visible in the
  791.  Presentation Manager screen, you can switch to it by using a mouse:
  792.  
  793.        Mouse 
  794.  
  795.    ■   To switch to an application or group window, click the window.
  796.  
  797.  
  798.  Or
  799.  
  800.    ■   To switch to an application or group running as an icon, double-click
  801.        the icon.
  802.  
  803.  
  804.  To switch between applications (including full-screen applications) and
  805.  groups by using the keyboard, do the following:
  806.  
  807.        Keyboard 
  808.  
  809.    1.  Press ALT+ESC.
  810.  
  811.    2.  Continue pressing ALT+ESC until the application or group you want
  812.        appears.
  813.  
  814.  
  815.  For more information on running applications and using the Task List, see
  816.  Chapter 2, "Running Applications with MS OS/2."
  817.  
  818.  
  819.  Commands and Menus
  820.  
  821.  Presentation Manager commands are organized in menus. Each application
  822.  or group window has its own menus, with a System menu common to all windows.
  823.  The System menu is represented by a box in the upper-left corner of each
  824.  window; all other menus are repre- sented by names in the menu bar below the
  825.  title bar at the top of each window, as shown in the following example.
  826.  
  827.  (This figure may be found in the printed book).
  828.  
  829.  In Presentation Manager, you select a menu, then choose a command from that
  830.  menu. Choosing a command carries out an action.
  831.  
  832.  
  833.  Choosing a Command
  834.  
  835.  
  836.  You can choose a command by using either a mouse or the keyboard. To choose a
  837.  command by using a mouse, do the following:
  838.        Mouse 
  839.  
  840.    1.  Click the menu name on the menu bar.
  841.  
  842.    2.  Click the command name.
  843.  
  844.  
  845.  If you're using the keyboard, you have two ways to choose commands from
  846.  menus: a basic method and a direct-access method. To choose a command by
  847.  using the basic method, do the following:
  848.  
  849.        Keyboard 
  850.  
  851.    1.  Press ALT or F10 to select the menu bar.
  852.  
  853.    2.  Press the LEFT or RIGHT key to move to and select the menu you want.
  854.  
  855.    3.  Press ENTER to display the menu.
  856.  
  857.    4.  Press the UP or DOWN key to move to and select the command you want.
  858.  
  859.    5.  Press ENTER to choose the command.
  860.  
  861.  
  862.  If an underlined letter appears in a command name or menu name, you can use
  863.  the direct-access method. To choose a command by using the direct-access
  864.  method, do the following:
  865.  
  866.        Keyboard 
  867.  
  868.    1.  Press ALT or F10.
  869.  
  870.    2.  Press the underlined letter in the menu name you want.
  871.  
  872.        (This figure may be found in the printed book).
  873.  
  874.    3.  Press the underlined letter in the command name you want.
  875.  
  876.  
  877.  
  878.  ────────────────────────────────────────────────────────────────────────────
  879.  Note
  880.  
  881.  If more than one menu or command name shares the same underlined letter,
  882.  Presentation Manager selects the first menu or command listed. Press the
  883.  underlined letter again to select the next menu or command. To see the menu
  884.  or choose the command, press ENTER.
  885.  ────────────────────────────────────────────────────────────────────────────
  886.  
  887.  
  888.  If you decide you do not want to choose a command, you can cancel the menu.
  889.  You can cancel a menu without making another selection by doing the
  890.  following:
  891.  
  892.  Mouse                             Keyboard
  893.  ────────────────────────────────────────────────────────────────────────────
  894.  
  895.  Click in a blank area outside of  Press ALT or F10.
  896.  the menu.
  897.  
  898.  Pressing ESC also cancels the menu; however, the selection cursor remains on
  899.  the menu bar so that you can select another menu. To move back to the
  900.  application work area, press ESC again.
  901.  
  902.  A check mark next to a command name on a menu indicates the command has been
  903.  chosen and is active.
  904.  
  905.  (This figure may be found in the printed book).
  906.  
  907.  An ellipsis (...) next to a command name on a menu indicates that a dialog
  908.  box will appear when the command is chosen. For more information, see "Using
  909.  a Dialog Box," later in this chapter.
  910.  
  911.  
  912.  The System Menu
  913.  
  914.  In addition to application menus, a System menu appears in the upper-left
  915.  corner of each window; it is represented by the System-menu box.
  916.  
  917.  (This figure may be found in the printed book).
  918.  
  919.  
  920.  
  921.  Although you choose commands from the System menu as you would from any
  922.  other menu, you select the System menu in a different way. To select the
  923.  System menu, do the following:
  924.  
  925.  Mouse                             Keyboard
  926.  ────────────────────────────────────────────────────────────────────────────
  927.  
  928.  In the upper-left corner of a     Press ALT+SPACEBAR or SHIFT+ESC.
  929.  window, click the System-menu
  930.  box; from an icon, click the
  931.  icon.
  932.  
  933.  You use System-menu commands to manipulate windows─for example, to change
  934.  their size or move them on your screen, and to switch between applications
  935.  and groups. Some dialog boxes also have System menus. The following list
  936.  describes the System-menu commands:
  937.  
  938.  
  939.  
  940.  Command                           Action
  941.  ────────────────────────────────────────────────────────────────────────────
  942.  
  943.  Restore                           Restores a window to its former size
  944.                                    after it has been enlarged (by using the
  945.                                    Maximize command) or reduced to an icon
  946.                                    (by using the Minimize command).
  947.  
  948.  Move                              Moves a window to another location on
  949.                                    your screen.
  950.  
  951.  Size                              Changes the size of a window.
  952.  
  953.  Minimize                          Reduces a window to an icon.
  954.  
  955.  Maximize                          Enlarges a window to its maximum size.
  956.  
  957.  Close                             Closes a window.
  958.  
  959.  Switch To                         Displays the Task List (a list of the
  960.                                    applications you have running and the
  961.                                    groups you have open).
  962.  
  963.  Some applications do not have all of these commands listed on their System
  964.  menus. For example, the Close command is not on the System menu in Desktop
  965.  Manager because you cannot close the Desktop Manager window.
  966.  
  967.  
  968.  Commands in a Work-Area Window
  969.  
  970.  In some applications, such as File Manager, you can open windows in the
  971.  application work area. These windows also have System menus, but you select
  972.  them a little differently.
  973.  
  974.  (This figure may be found in the printed book).
  975.  
  976.  To select the System menu from a window in an application, do the following:
  977.  
  978.  
  979.  Mouse                             Keyboard
  980.  ────────────────────────────────────────────────────────────────────────────
  981.  
  982.  Click the System-menu box in the  1  Press SHIFT+ESC to select the System
  983.  window.                           menu in the main application window.
  984.  
  985.                                    2  Press the RIGHT key.
  986.  
  987.  The following is a keyboard shortcut for selecting the System menu from a
  988.  window in an application:
  989.  
  990.        Keyboard 
  991.  
  992.    ■   Press CTRL - (hyphen key).
  993.  
  994.        (This figure may be found in the printed book).
  995.  
  996.  
  997.  The commands on the System menu of a work-area window vary depending on the
  998.  application; for example, in some Presentation Manager applications you
  999.  cannot close work-area windows by using the Close command. For more
  1000.  information, see the manual for your application.
  1001.  
  1002.  
  1003.  Inactive Commands
  1004.  
  1005.  When you see a grayed command on a menu, it means the command is inactive
  1006.  and cannot be used.
  1007.  
  1008.  (This figure may be found in the printed book).
  1009.  
  1010.  
  1011.  
  1012.  You may have to make a selection before you can use the command, or it may
  1013.  be that the command cannot be used with the current selection or active
  1014.  application. For example, you cannot use either the Minimize or the Size
  1015.  command when an application is reduced to an icon.
  1016.  
  1017.  Shortcut Keys
  1018.  
  1019.  Some menus have shortcut keys, usually listed to the right of the command
  1020.  name. Often these keys are a combination of a function key and the ALT,
  1021.  SHIFT, or CTRL key. You can use these keys to choose commands without first
  1022.  selecting the menu where each command is located. The following list shows
  1023.  the System-menu shortcut keys:
  1024.  
  1025.  Command                           Press
  1026.  ────────────────────────────────────────────────────────────────────────────
  1027.  
  1028.  Restore                           ALT+F5
  1029.  
  1030.  Move                              ALT+F7
  1031.  
  1032.  Size                              ALT+F8
  1033.  
  1034.  Minimize                          ALT+F9
  1035.  
  1036.  Maximize                          ALT+F10
  1037.  
  1038.  Close                             ALT+F4
  1039.  
  1040.  Switch To                         CTRL+ESC
  1041.  
  1042.  For example, to enlarge a window by using the Maximize command and its
  1043.  shortcut keys, you select the window and press ALT+F10.
  1044.  
  1045.  
  1046.  Using a Dialog Box
  1047.  
  1048.  Presentation Manager displays a dialog box when additional information is
  1049.  needed to carry out a command. Each dialog box contains areas where you
  1050.  provide information; there are different kinds of areas, depending on the
  1051.  kind of information needed. The following is a typical dialog box.
  1052.  
  1053.  (This figure may be found in the printed book).
  1054.  
  1055.  The following are a few terms that will help you learn about and use dialog
  1056.  boxes:
  1057.  
  1058.    ■   The text box is where you type information. The text you type appears
  1059.        to the left of the insertion point, a flashing vertical line.
  1060.  
  1061.    ■   A list box contains the names of available choices. For example, in
  1062.        the illustration above, the names of directories appear in a list box.
  1063.  
  1064.    ■   A command button carries out a command when it is chosen. These
  1065.        buttons have labels that indicate what they do─for example, Rename,
  1066.        Cancel, or Help. Choosing a command button may cause another dialog
  1067.        box to be displayed. For example, choosing the Help button causes a
  1068.        Help dialog box to appear. A command button that displays other dialog
  1069.        boxes has an ellipsis (...) following its name.
  1070.  
  1071.        (This figure may be found in the printed book).
  1072.  
  1073.    ■   A round option button is used to select an option for a particular
  1074.        command. In a group of option buttons, only one option at a time can
  1075.        be selected.
  1076.  
  1077.    ■   A square check box is also used to select an option for a particular
  1078.        command. In a group of check boxes, several or all options can be
  1079.        selected at one time.
  1080.  
  1081.    ■   A grayed command or grayed option is inactive, which means that it
  1082.        cannot currently be used.
  1083.  
  1084.  
  1085.  
  1086.  Dialog boxes usually display information that reflects what you have
  1087.  selected on your screen─for example, a filename in File Manager. They also
  1088.  display previously selected options or default settings of Presentation
  1089.  Manager options.
  1090.  
  1091.  Moving in a Dialog Box
  1092.  
  1093.  You can move around in a dialog box to make several selections from each
  1094.  group of options. The area you are working in is usually marked by a
  1095.  selection cursor or a flashing insertion point. Often, moving to an area
  1096.  selects the area as well.
  1097.  
  1098.  In some
  1099.  cases, you must move in an area to select one option from a group of
  1100.  options─for example, a filename in a list box or one option button in a
  1101.  group of option buttons. You can move to and select any item or area in a
  1102.  dialog box by doing the following:
  1103.  
  1104.  Mouse                             Keyboard
  1105.  ────────────────────────────────────────────────────────────────────────────
  1106.  
  1107.  Click the item or area.           Press TAB.
  1108.  
  1109.  To move in the opposite direction through a dialog box by using the
  1110.  keyboard, do the following:
  1111.  
  1112.        Keyboard 
  1113.  
  1114.    ■   Press SHIFT+TAB.
  1115.  
  1116.  
  1117.  Often, you can select an area by moving to it. However, sometimes you must
  1118.  also make a selection in the area─for example, when you move to a check box.
  1119.  To select the option by using the keyboard, do the following:
  1120.  
  1121.        Keyboard 
  1122.  
  1123.    ■   Press the SPACEBAR.
  1124.  
  1125.  
  1126.  Pressing the SPACEBAR again cancels the selection.
  1127.  
  1128.  
  1129.  Selecting in a Dialog-Box Area
  1130.  
  1131.  Sometimes you must move and select inside a dialog-box area─for example,
  1132.  when you want to select text in a text box. The mouse and keyboard
  1133.  techniques for selecting inside a dialog box are different from those you
  1134.  use for moving between areas or for selecting areas. Selection techniques
  1135.  may vary depending on the kind of area you are working in. The following
  1136.  sections explain how to move and select in each dialog-box area: text boxes,
  1137.  list boxes, option-button groups, check boxes, and command buttons.
  1138.  
  1139.  Working with a Text Box
  1140.  
  1141.  Often a text box, as shown in the following example, contains text that
  1142.  reflects a selection from your application window, such as a filename, or
  1143.  information about a particular file, such as an attribute.
  1144.  
  1145.  (This figure may be found in the printed book).
  1146.  
  1147.  You can easily select and edit text in text boxes. To move to another
  1148.  location in a text box by using the mouse, do the following:
  1149.  
  1150.        Mouse 
  1151.  
  1152.    ■   Click the text you want to move to.
  1153.  
  1154.  
  1155.  To move to another location in a text box by using the keyboard, use the
  1156.  following keys:
  1157.  
  1158.  To move                           Press
  1159.  ────────────────────────────────────────────────────────────────────────────
  1160.  
  1161.  Right or left one character       RIGHT or LEFT
  1162.  
  1163.  Up or down one line               UP or DOWN
  1164.  
  1165.  To the beginning of the next      CTRL+RIGHT
  1166.  word
  1167.  
  1168.  To the beginning of the previous  CTRL+LEFT
  1169.  word
  1170.  
  1171.  To the beginning of the current   HOME
  1172.  line
  1173.  
  1174.  To the end of the current line    END
  1175.  
  1176.  To the beginning of the text box  CTRL+HOME
  1177.  
  1178.  To the end of the text box        CTRL+END
  1179.  
  1180.  To insert new text, do the following:
  1181.  
  1182.    ■   Move to the location where you want the text to appear and begin
  1183.        typing.
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  If you want to replace or edit text, you must first select the text you want
  1189.  to change. You can select text by using either a mouse or the keyboard. To
  1190.  select text in a text box, do the following:
  1191.  
  1192.  Mouse                             Keyboard
  1193.  ────────────────────────────────────────────────────────────────────────────
  1194.  
  1195.  Drag across the text you want to  1  Move to the text you want to select.
  1196.  select.
  1197.  
  1198.                                    2  Press and hold down SHIFT and press
  1199.                                    the DIRECTION keys to move to and select
  1200.                                    the text you want to change.
  1201.  
  1202.  Once you select text, you can delete it or replace it with new text. To
  1203.  delete text in a text box, follow these steps:
  1204.  
  1205.    1.  Move to the text you want to delete.
  1206.  
  1207.    2.  Select the text.
  1208.  
  1209.    3.  Press DEL or BACKSPACE.
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  ────────────────────────────────────────────────────────────────────────────
  1215.  Note
  1216.  
  1217.  If you do not select any text, pressing DEL deletes the character to the
  1218.  right of the insertion point and pressing BACKSPACE erases the character to
  1219.  the left.
  1220.  ────────────────────────────────────────────────────────────────────────────
  1221.  
  1222.  
  1223.  
  1224.  To replace text in a text box, do the following:
  1225.  
  1226.    1.  Move to the text you want to replace.
  1227.  
  1228.    2.  Select the text.
  1229.  
  1230.    3.  Type the new text.
  1231.  
  1232.  
  1233.  You can also copy or move text from one place to another in a text box. This
  1234.  is useful if you are working in a large text box─for example, an attribute
  1235.  text box that contains several lines of text. To move text in a text box,
  1236.  follow these steps:
  1237.  
  1238.    1.  Move to and select the text you want to move.
  1239.  
  1240.    2.  Press SHIFT+DEL.
  1241.  
  1242.    3.  Move to the location where you want the text to appear.
  1243.  
  1244.    4.  Press SHIFT+INS.
  1245.  
  1246.  
  1247.  To copy text in a text box, do the following:
  1248.  
  1249.    1.  Move to and select the text you want to copy.
  1250.  
  1251.    2.  Press CTRL+INS.
  1252.  
  1253.    3.  Move to the location where you want to copy the text.
  1254.  
  1255.    4.  Press SHIFT+INS.
  1256.  
  1257.  
  1258.  Some text boxes include lists of items from which you can select. These text
  1259.  boxes display your current selection, followed by a Down arrow. The list
  1260.  itself is hidden when the dialog box first appears.
  1261.  
  1262.  (This figure may be found in the printed book).
  1263.  
  1264.  To change the information in a text box that includes a list, you can either
  1265.  edit the displayed selection or you can display the list and select an item
  1266.  from it. To display the list, do the following:
  1267.  
  1268.  Mouse                             Keyboard
  1269.  ────────────────────────────────────────────────────────────────────────────
  1270.  
  1271.  Click the Down arrow.             Press ALT+DOWN.
  1272.  
  1273.  
  1274.  (This figure may be found in the printed book).
  1275.  
  1276.  
  1277.  
  1278.  Once a list is displayed, you can select an item by using either a mouse or
  1279.  the keyboard. To select an item by using a mouse, do the following:
  1280.  
  1281.        Mouse 
  1282.  
  1283.    ■   Click the item.
  1284.  
  1285.  
  1286.  To select an item by using the keyboard, follow these steps:
  1287.  
  1288.        Keyboard 
  1289.  
  1290.    1.  Press the DIRECTION keys to move to the item you want.
  1291.  
  1292.        As you move through the list, the item you want will appear in the
  1293.        text box.
  1294.  
  1295.    2.  Press ALT+DOWN to select the item and hide the list.
  1296.  
  1297.  
  1298.  You can use a mouse or the keyboard to hide the list without making a
  1299.  selection. To hide the list, do the following:
  1300.  
  1301.  Mouse                             Keyboard
  1302.  ────────────────────────────────────────────────────────────────────────────
  1303.  
  1304.  Click the Down arrow again.       Press ALT+DOWN again.
  1305.  
  1306.  .ET
  1307.  
  1308.  Working with a List Box
  1309.  
  1310.  As you move in a list box by using either a mouse or the keyboard, the
  1311.  selection cursor shows you which item or items you have selected.
  1312.  
  1313.  (This figure may be found in the printed book).
  1314.  
  1315.  To select an item by using a mouse, do the following:
  1316.  
  1317.        Mouse 
  1318.  
  1319.    ■   Click the item.
  1320.  
  1321.  
  1322.  .RT If you are using the keyboard, there are several keys you can use to
  1323.  move and select in a list box:
  1324.  
  1325.  To move                           Press
  1326.  ────────────────────────────────────────────────────────────────────────────
  1327.  
  1328.  Up or down one item at a time     UP or DOWN
  1329.  
  1330.  Right or left one character at a  RIGHT or LEFT
  1331.  time
  1332.  
  1333.  To the left side of the box       HOME
  1334.  
  1335.  To the right side of the box      END
  1336.  
  1337.  To the top of the list            CTRL+HOME
  1338.  
  1339.  To the bottom of the list         CTRL+END
  1340.  
  1341.  Up to the first item in the       PAGE UP
  1342.  visible portion of the list
  1343.  
  1344.  Down to the last item in the      PAGE DOWN
  1345.  visible portion of the list
  1346.  
  1347.  Right one width of the list box   CTRL+PAGE DOWN
  1348.  
  1349.  Left one width of the list box    CTRL+PAGE UP
  1350.  
  1351.  In some list boxes, you can select more than one item. To select several
  1352.  items in a list box, do the following:
  1353.  
  1354.  Mouse                             Keyboard
  1355.  ────────────────────────────────────────────────────────────────────────────
  1356.  
  1357.  Press and hold down CTRL and      1  Press the UP and DOWN keys to move
  1358.  click each item you want.         the cursor to the item you want to
  1359.                                    select.
  1360.  
  1361.                                    2  Press the SPACEBAR.
  1362.  
  1363.  In Presentation Manager, some lists are hidden when the dialog box first
  1364.  appears. These lists are represented by a list box which displays the
  1365.  current selection, followed by a Down arrow.
  1366.  
  1367.  (This figure may be found in the printed book).
  1368.  
  1369.  .ET To display the list, do the following:
  1370.  
  1371.  Mouse                             Keyboard
  1372.  ────────────────────────────────────────────────────────────────────────────
  1373.  
  1374.  Click the Down arrow.             Press ALT+DOWN.
  1375.  
  1376.  .RT Once the list is displayed, you can select an item by using either a
  1377.  mouse or the keyboard. To select an item, do the following:
  1378.  
  1379.  Mouse                             Keyboard
  1380.  ────────────────────────────────────────────────────────────────────────────
  1381.  
  1382.  Click the item.                   1  Press the DIRECTION keys to move to
  1383.                                    the item you want.
  1384.  
  1385.                                    2  Press ALT+DOWN to select the item and
  1386.                                    hide the list.
  1387.  
  1388.                                    Or
  1389.  
  1390.                                    1  Press the first letter of the item.
  1391.  
  1392.                                    2  Press ALT+DOWN.
  1393.  
  1394.  You can use a mouse or the keyboard to hide the list without making a
  1395.  selection. To hide the list, do the following:
  1396.  
  1397.  Mouse                             Keyboard
  1398.  ────────────────────────────────────────────────────────────────────────────
  1399.  
  1400.  Click the Down arrow again.       Press ALT+DOWN again.
  1401.  
  1402.  
  1403.  
  1404.  ────────────────────────────────────────────────────────────────────────────
  1405.  Note
  1406.  
  1407.  Unlike text boxes that include lists, you cannot edit the selection
  1408.  displayed in a list box.
  1409.  ────────────────────────────────────────────────────────────────────────────
  1410.  
  1411.  
  1412.  
  1413.  Working with an Option Button
  1414.  
  1415.  
  1416.  In Presentation Manager, you can select only one option button from a group
  1417.  of option buttons. Moving to a button selects it. Darkened buttons are
  1418.  selected.
  1419.  (This figure may be found in the printed book).
  1420.  
  1421.  To select an option button, do the following:
  1422.  
  1423.  Mouse                             Keyboard
  1424.  ────────────────────────────────────────────────────────────────────────────
  1425.  
  1426.  Click the option button.          Press a DIRECTION key to move to and
  1427.                                    select the button or, if the option name
  1428.                                    contains an underlined letter, press
  1429.                                    that letter.
  1430.  
  1431.  
  1432.  Working with a Check Box
  1433.  
  1434.  In Presentation Manager, check boxes are used in a dialog box when you can
  1435.  select more than one option from a group of options. Check boxes that
  1436.  contain an "X" are selected.
  1437.  
  1438.  (This figure may be found in the printed book).
  1439.  
  1440.  To select a check box, do the following:
  1441.  
  1442.  Mouse                             Keyboard
  1443.  ────────────────────────────────────────────────────────────────────────────
  1444.  
  1445.  1  Click the check box.           2  Press TAB to move to the check box.
  1446.  
  1447.  3  To cancel the selection,       4  Press the SPACEBAR.
  1448.  click the check box again.
  1449.  
  1450.                                    5  To cancel the selection, press the
  1451.                                    SPACEBAR again.
  1452.  
  1453.  
  1454.  Working with a Command Button
  1455.  
  1456.  In Presentation Manager, command buttons
  1457.  carry out actions─for example, completing commands or displaying additional
  1458.  dialog boxes. An ellipsis (...) next to a command-button name indicates that
  1459.  another dialog box will appear when the command button is chosen. If an
  1460.  arrow (>) appears next to a command-button name, the dialog box expands to
  1461.  display more information. To choose a command button by using a mouse, do
  1462.  the following:
  1463.  
  1464.        Mouse 
  1465.  
  1466.    ■   Click the command button.
  1467.  
  1468.  
  1469.  To choose a command button by using the keyboard, follow these steps:
  1470.  
  1471.        Keyboard 
  1472.  
  1473.    1.  Press TAB to move to the command-button area.
  1474.  
  1475.        The selection cursor appears in the selected command button, and the
  1476.        button border changes color.
  1477.  
  1478.        (This figure may be found in the printed book).
  1479.  
  1480.    2.  To move to another command button, press the RIGHT or LEFT key.
  1481.  
  1482.    3.  To choose the selected command button, press ENTER.
  1483.  
  1484.  
  1485.  
  1486.  When a dialog box first appears, one command button is selected. This
  1487.  selection represents the option you are most likely to want (the default
  1488.  setting).
  1489.  (This figure may be found in the printed book).
  1490.  
  1491.  To automatically choose the default command button, do the following:
  1492.  
  1493.        Keyboard 
  1494.  
  1495.    ■   Press ENTER.
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  ────────────────────────────────────────────────────────────────────────────
  1501.  Note
  1502.  
  1503.  Even if you move to another area of the dialog box, pressing ENTER still
  1504.  chooses the default command button.
  1505.  ────────────────────────────────────────────────────────────────────────────
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  Closing a Dialog Box
  1511.  
  1512.  To close a dialog box without carrying out the command, do the following:
  1513.  
  1514.    ■   Choose the Cancel button.
  1515.  
  1516.  
  1517.  Some dialog boxes have System menus. You can use the Close command from this
  1518.  menu to close these dialog boxes. You can cancel any dialog box by doing the
  1519.  following:
  1520.  
  1521.        Keyboard 
  1522.  
  1523.    ■   Press ESC.
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  Using a Scroll Bar
  1529.  
  1530.  Some Presentation Manager application windows
  1531.  and list boxes have scroll bars that you can use to view the information
  1532.  that doesn't fit in the window or list box.
  1533.  
  1534.  (This figure may be found in the printed book).
  1535.  
  1536.  You can use a mouse to scroll a file in a window or to scroll the
  1537.  information in a list box by doing the following:
  1538.  
  1539.        Mouse 
  1540.  
  1541.    ■   Drag the small box (the scroll box) in the scroll bar to the position
  1542.        that corresponds to the general location where you want to work
  1543.        (beginning, middle, or end of the file or list box).
  1544.  
  1545.  
  1546.  The following list details how to scroll more precisely when using a mouse:
  1547.  
  1548.  To scroll                         Do this
  1549.  ────────────────────────────────────────────────────────────────────────────
  1550.  
  1551.  One line                          Click the scroll arrows at either end of
  1552.                                    the vertical scroll bar.
  1553.  
  1554.  Right or left                     Click the scroll arrows on either end of
  1555.                                    the horizontal scroll bar.
  1556.  
  1557.  One screen up or down             Click the scroll bar on either side of
  1558.                                    the vertical scroll box.
  1559.  
  1560.  One screen to the right or left   Click the scroll bar on either side of
  1561.                                    the horizontal scroll box.
  1562.  
  1563.  Continuously                      Point to the scroll arrows at either end
  1564.                                    of the scroll bars and hold down the
  1565.                                    mouse button.
  1566.  
  1567.  If you are using the keyboard, do the following to scroll after you have
  1568.  reached the last character or item in a window or list box:
  1569.  
  1570.        Keyboard 
  1571.  
  1572.    ■   Press the DIRECTION key that points in the direction you want to
  1573.        scroll.
  1574.  
  1575.        For example, to scroll right, move the selection cursor or insertion
  1576.        point to the far-right character or item in a window or list box and
  1577.        continue pressing the RIGHT key.
  1578.  
  1579.  
  1580.  Some applications allow you to scroll by the screenful (that is, as much
  1581.  information as will fit in one window or list box at one time). The
  1582.  following keys can be used in some applications to scroll a file or list
  1583.  box; not all applications use these keys in the same way, so try them out
  1584.  with each application:
  1585.  
  1586.  To scroll                         Press
  1587.  ────────────────────────────────────────────────────────────────────────────
  1588.  
  1589.  Up one screen                     PAGE UP
  1590.  
  1591.  Down one screen                   PAGE DOWN
  1592.  
  1593.  Left to the beginning of a line   HOME
  1594.  
  1595.  Right to the end of a line        END
  1596.  
  1597.  Up to the beginning of a file or  CTRL+HOME
  1598.  list
  1599.  
  1600.  Down to the end of a file or      CTRL+END
  1601.  list
  1602.  
  1603.  Left one screen                   CTRL+PAGE UP
  1604.  
  1605.  Right one screen                  CTRL+PAGE DOWN
  1606.  
  1607.  
  1608.  
  1609.  Moving a Window or an Icon
  1610.  
  1611.  
  1612.  You can move a window or an icon to a different location on your screen by
  1613.  using a mouse or the keyboard. To move a window by using a mouse, do the
  1614.  following:
  1615.        Mouse 
  1616.  
  1617.    ■   Drag the window title bar to a new location.
  1618.  
  1619.  
  1620.  To move an icon by using a mouse, do the following:
  1621.  
  1622.        Mouse 
  1623.  
  1624.    ■   Drag the icon to a new location.
  1625.  
  1626.  
  1627.  To move a window or icon by using the keyboard, do the following:
  1628.  
  1629.        Keyboard 
  1630.  
  1631.    1.  Select the window or icon you want to move by using the Task List or
  1632.        by pressing ALT+TAB.
  1633.  
  1634.    2.  Select the System menu by pressing ALT+SPACEBAR or SHIFT+ESC.
  1635.  
  1636.    3.  Press M to choose the Move command.
  1637.  
  1638.    4.  Use the DIRECTION keys to move the window or icon to a new location.
  1639.  
  1640.    5.  After moving the window or icon to its new location, press ENTER.
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  Changing the Size of a Window
  1646.  
  1647.  Windows
  1648.  can be arranged several ways on your screen. If you are using a mouse, you
  1649.  can directly manipulate each window border to change its size. If you are
  1650.  using the keyboard, System-menu commands can be used to change a window's
  1651.  size and shape (you can also change window size by using the Maximize,
  1652.  Minimize, and Restore boxes, which are explained later in this chapter).
  1653.  
  1654.  (This figure may be found in the printed book).
  1655.  
  1656.  .ET
  1657.  
  1658.  ────────────────────────────────────────────────────────────────────────────
  1659.  Note
  1660.  
  1661.  Some windows are limited in the ways they can be sized. Some applications,
  1662.  such as Control Panel, have a fixed size. You can only reduce these windows
  1663.  to icons and restore them.
  1664.  ────────────────────────────────────────────────────────────────────────────
  1665.  
  1666.  
  1667.  
  1668.  (This figure may be found in the printed book).
  1669.  
  1670.  .RT To change the size of a window by using a
  1671.  mouse, follow these steps:
  1672.  
  1673.        Mouse 
  1674.  
  1675.    1.  Select the window you want to size.
  1676.  
  1677.    2.  Point to the border or corner you want to move.
  1678.  
  1679.        The mouse pointer becomes a two-headed arrow.
  1680.  
  1681.        (This figure may be found in the printed book).
  1682.  
  1683.    3.  Drag the corner or border until the window is the size you want.
  1684.  
  1685.  
  1686.  If you are using the keyboard, use the Size command to change the size of
  1687.  your windows by doing the following:
  1688.  
  1689.        Keyboard 
  1690.  
  1691.    1.  Select the window you want to size by using the Task List or by
  1692.        pressing ALT+TAB.
  1693.  
  1694.    2.  Select the System menu by pressing ALT+SPACEBAR or SHIFT+ESC.
  1695.  
  1696.    3.  Press S to choose the Size command.
  1697.  
  1698.    4.  Press one DIRECTION key to select the border you want to move.
  1699.  
  1700.    5.  Press the DIRECTION keys to move the border.
  1701.  
  1702.    6.  When you finish adjusting the size, press ENTER.
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  Enlarging a Window or an Icon
  1708.  
  1709.  You can enlarge a window to its maximum size using a mouse by doing the
  1710.  following:
  1711.  
  1712.        Mouse 
  1713.  
  1714.    ■   Select the window you want to enlarge and click the Maximize box or
  1715.        double-click the title bar, shown in the following example.
  1716.  
  1717.        (This figure may be found in the printed book).
  1718.  
  1719.  
  1720.  The Maximize box disappears, and the Restore box takes its place.
  1721.  
  1722.  (This figure may be found in the printed book).
  1723.  
  1724.  To enlarge an icon by using a mouse, follow these steps:
  1725.  
  1726.        Mouse 
  1727.  
  1728.    1.  Click the icon you want to enlarge.
  1729.  
  1730.        The System menu appears.
  1731.  
  1732.    2.  Click the Maximize command.
  1733.  
  1734.  
  1735.  To enlarge a window or an icon by using the keyboard, do the following:
  1736.  
  1737.        Keyboard 
  1738.  
  1739.    1.  Select the window or icon you want to enlarge by using the Task List
  1740.        or by pressing ALT+TAB.
  1741.  
  1742.    2.  Select the System menu by pressing ALT+SPACEBAR or SHIFT+ESC.
  1743.  
  1744.    3.  Press X to choose the Maximize command.
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  Reducing a Window to an Icon
  1750.  
  1751.  You can reduce an
  1752.  application or group window to an icon when you have finished working with
  1753.  it but want it available for later use. The application is still running in
  1754.  memory or the group is still open (represented by an icon), but it is not
  1755.  taking up space on your screen. You can select and move icons on your screen
  1756.  in the same way you select and move windows. When you want to work with your
  1757.  application or group again, you can easily restore it to its previous size.
  1758.  To reduce a window by using a mouse, follow these steps:
  1759.  
  1760.        Mouse 
  1761.  
  1762.    1.  Select the window you want to reduce.
  1763.  
  1764.    2.  Click the Minimize box, shown in the following example.
  1765.  
  1766.        (This figure may be found in the printed book).
  1767.  
  1768.  
  1769.  If you are using the keyboard, follow these steps to reduce a window to an
  1770.  icon:
  1771.  
  1772.        Keyboard 
  1773.  
  1774.    1.  Select the window you want to reduce by using the Task List or by
  1775.        pressing ALT+TAB.
  1776.  
  1777.    2.  Select the System menu by pressing ALT+SPACEBAR or SHIFT+ESC.
  1778.  
  1779.    3.  Press N to choose the Minimize command.
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  Restoring a Window or an Icon
  1785.  
  1786.  You can restore a window to its previous size after reducing it to an icon
  1787.  or enlarging it to fill your screen. The Restore command returns a window to
  1788.  its original size, or to the size you last made it. The Restore command also
  1789.  returns a window to its previous location on your screen. If you are using a
  1790.  mouse, you can use the Restore box to return a window to its previous size
  1791.  by doing the following:
  1792.  
  1793.        Mouse 
  1794.  
  1795.    1.  Select the window you want to restore.
  1796.  
  1797.        (This figure may be found in the printed book).
  1798.  
  1799.    2.  Click the Restore box.
  1800.  
  1801.  
  1802.  To restore an icon to its previous size by using a mouse, do the following:
  1803.  
  1804.        Mouse 
  1805.  
  1806.    ■   Double-click the icon.
  1807.  
  1808.  
  1809.  Follow these steps to restore a window or an icon using the keyboard:
  1810.  
  1811.        Keyboard 
  1812.  
  1813.    1.  Select the window or icon you want to restore by using the Task List
  1814.        or by pressing ALT+TAB.
  1815.  
  1816.    2.  Select the System menu by pressing ALT+SPACEBAR or SHIFT+ESC.
  1817.  
  1818.        (This figure may be found in the printed book).
  1819.  
  1820.    3.  Press R to choose the Restore command.
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  Arranging Windows and Icons
  1826.  
  1827.  
  1828.  Having several windows open at one time and several icons at the bottom of
  1829.  your screen can make it difficult to see all of your applications and groups
  1830.  while you work. You can use commands on the Desktop menu in Desktop Manager
  1831.  to arrange your windows and icons on your screen.
  1832.  (This figure may be found in the printed book).
  1833.  
  1834.  .ET As shown in the first of the following examples, the Tile All command
  1835.  sizes windows and arranges them side by side so that all windows are
  1836.  visible. The area at the bottom of your screen is reserved for icons.
  1837.  
  1838.  As shown in the second of the following examples, the Cascade All command
  1839.  arranges application and group windows in an overlapping pattern so the
  1840.  title bar of each window remains visible. .RT
  1841.  
  1842.  (This figure may be found in the printed book).
  1843.  
  1844.  .ET
  1845.  
  1846.  (This figure may be found in the printed book).
  1847.  
  1848.  .RT The Arrange Icons command organizes icons in the icon area of your
  1849.  screen.
  1850.  
  1851.  (This figure may be found in the printed book).
  1852.  
  1853.  If you are using a mouse, follow these steps to use the Tile All, Cascade
  1854.  All, or Arrange Icons commands: .ET
  1855.  
  1856.        Mouse 
  1857.  
  1858.    1.  Switch to Desktop Manager.
  1859.  
  1860.        If Desktop Manager is not visible, click the right mouse button
  1861.        anywhere outside a window to display the Task List. Then, double-click
  1862.        Desktop Manager.
  1863.  
  1864.    2.  Click the Desktop menu.
  1865.  
  1866.        (This figure may be found in the printed book).
  1867.  
  1868.    3.  Click the Tile All, Cascade All, or Arrange Icons command.
  1869.  
  1870.  
  1871.  .RT If you are using the keyboard, follow these steps to use the Tile All,
  1872.  Cascade All, or Arrange Icons command:
  1873.  
  1874.        Keyboard 
  1875.  
  1876.    1.  Display the Task List by pressing CTRL+ESC or by choosing the Switch
  1877.        To command on the System menu in the active window.
  1878.  
  1879.    2.  Press the DIRECTION keys to move to and select Desktop Manager from
  1880.        the list of applications, and then press ENTER.
  1881.  
  1882.    3.  Press ALT, D to select the Desktop menu.
  1883.  
  1884.    4.  To choose the Tile command, press T; to choose the Cascade All
  1885.        command, press C; to choose the Arrange Icons command, press I.
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  Using Help
  1891.  
  1892.  
  1893.  
  1894.  Most Presentation Manager applications provide Help information. When you
  1895.  request Help, Help information appears on your screen in a separate window.
  1896.  Like Presentation Manager applications, the Help window contains its own
  1897.  menus and commands. This section explains only the basics about using Help.
  1898.  For more information on tasks you can perform by using Help menus and
  1899.  commands, see Chapter 7, "Using MS OS/2 Command Reference."
  1900.  
  1901.  The way you display Help depends on whether you are selecting a menu,
  1902.  working in a dialog box, or working in the work area of a window. If you are
  1903.  selecting a menu or command, do the following to display Help information:
  1904.  
  1905.        Keyboard 
  1906.  
  1907.    ■   Press F1.
  1908.  
  1909.  
  1910.  If you are working in a dialog box, do the following to get Help
  1911.  information:
  1912.  
  1913.    ■   Choose the Help button or press F1.
  1914.  
  1915.  
  1916.  
  1917.  (This figure may be found in the printed book).
  1918.  
  1919.  You can also display Help information from an application window by using
  1920.  the commands on the Help menu.
  1921.  
  1922.  (This figure may be found in the printed book).
  1923.  
  1924.  The following list describes each command on the Help menu:
  1925.  
  1926.    ■   The Help For Help command describes how to display Help information
  1927.        and explains how to work with the Help window.
  1928.  
  1929.    ■   The Extended Help command displays general Help information for the
  1930.        application you are currently using.
  1931.  
  1932.    ■   The Keys Help command describes how to use the keyboard in the
  1933.        application you are currently using.
  1934.  
  1935.    ■   The Help Index command displays an index of all Help topics available
  1936.        for the application you are currently using.
  1937.  
  1938.  
  1939.  Do the following to display general Help information for the application you
  1940.  are currently using:
  1941.  
  1942.  Mouse                             Keyboard
  1943.  ────────────────────────────────────────────────────────────────────────────
  1944.  
  1945.  1  Click the Help menu on the     2  Press ALT, H to select the Help menu.
  1946.  menu bar.
  1947.  
  1948.  3  Click the Extended Help        4  Press E to choose the Extended Help
  1949.  command.                          command.
  1950.  
  1951.  The Help window appears in front of your application window or dialog box.
  1952.  
  1953.  (This figure may be found in the printed book).
  1954.  
  1955.  The Help information that appears takes into account what is currently
  1956.  selected in the application window. For example, if you select a menu, the
  1957.  Help window contains information on the commands in the menu; if you're
  1958.  working in a dialog box, the Help window contains information on each area
  1959.  of the dialog box.
  1960.  
  1961.  (This figure may be found in the printed book).
  1962.  
  1963.  
  1964.  
  1965.  Using the Help Index
  1966.  
  1967.  Help contains an index of all Help topics available for the application you
  1968.  are currently using. You can display the Help index from either an
  1969.  application, group, or Help window. To display the Help index, do the
  1970.  following:
  1971.  
  1972.  Mouse                             Keyboard
  1973.  ────────────────────────────────────────────────────────────────────────────
  1974.  
  1975.  1  Click the Help menu on the     2  Press ALT, H to select the Help menu.
  1976.  menu bar.
  1977.  
  1978.  3  Click the Help Index command.  4  Press I to choose the Help Index
  1979.                                    command.
  1980.  
  1981.  The Index window appears inside the Help window.
  1982.  
  1983.  (This figure may be found in the printed book).
  1984.  
  1985.  To get information on a particular topic, do the following:
  1986.  
  1987.  Mouse                             Keyboard
  1988.  ────────────────────────────────────────────────────────────────────────────
  1989.  
  1990.  Double-click the topic you want.  1  Press the UP or DOWN key to move to
  1991.                                    and select the topic you want.
  1992.  
  1993.                                    2  Press ENTER.
  1994.  
  1995.  
  1996.  
  1997.  Displaying Keyboard Information
  1998.  
  1999.  By looking at the Keys Help window, you can find out how
  2000.  different keys are used in your application. To open the Keys Help window,
  2001.  do the following:
  2002.  
  2003.  Mouse                             Keyboard
  2004.  ────────────────────────────────────────────────────────────────────────────
  2005.  
  2006.  1  Click the Help menu on the     2  Press ALT, H to select the Help menu.
  2007.  menu bar.
  2008.  
  2009.  3  Click the Keys Help command.   4  Press K to choose the Keys Help
  2010.                                    command.
  2011.  
  2012.  The Keys Help window appears inside the Help window.
  2013.  
  2014.  (This figure may be found in the printed book).
  2015.  
  2016.  
  2017.  
  2018.  Displaying Help Information on a Term or Concept
  2019.  
  2020.  In some Help windows, you can display additional Help information on a
  2021.  related term or concept. The terms and concepts for which you can display
  2022.  additional Help information appear in a different color within the Help
  2023.  text. To display Help information for a related term or concept, do the
  2024.  following:
  2025.  
  2026.  Mouse                             Keyboard
  2027.  ────────────────────────────────────────────────────────────────────────────
  2028.  
  2029.  Double-click the term or concept  1  Press TAB to select the term or
  2030.  about which you want information.  concept you want. .
  2031.  
  2032.                                    2  Press ENTER.
  2033.  
  2034.  
  2035.  
  2036.  Displaying Previous Help Information
  2037.  
  2038.  Each time you display Help, the new Help information appears in front of the
  2039.  previous Help information without replacing it. This allows you to look at
  2040.  previous Help information at any time. You can have up to 10 occurrences of
  2041.  Help open in the current Help window. To display previous Help information,
  2042.  do the following:
  2043.  
  2044.    ■   Select the Options menu and choose the Previous command.
  2045.  
  2046.  
  2047.  The Help information immediately preceding the current Help reappears.
  2048.  Choosing the Previous command repeatedly displays each previous occurrence
  2049.  of Help. If there is no previous occurrence of Help information available,
  2050.  then choosing the Previous command closes the Help window. .ET
  2051.  
  2052.  You can also view previous Help information by using the Viewed Pages
  2053.  command. The Viewed Pages command displays a list of all the Help topics you
  2054.  have viewed, so that you can quickly select the topic you want. To display a
  2055.  list of the previous Help topics, do the following:
  2056.  
  2057.    ■   Select the Options menu and choose the Viewed Pages command.
  2058.  
  2059.        The Viewed Pages window appears inside the Help window.
  2060.  
  2061.        (This figure may be found in the printed book).
  2062.  
  2063.  
  2064.  .RT You can use either a mouse or the keyboard to display previous Help
  2065.  information from the Viewed Pages window. To redisplay Help information, do
  2066.  the following:
  2067.  
  2068.  Mouse                             Keyboard
  2069.  ────────────────────────────────────────────────────────────────────────────
  2070.  
  2071.  Double-click the Help topic you   Press the UP or DOWN key to move to and
  2072.  want.                             select the Help topic you want, and then
  2073.                                    press ENTER.
  2074.  
  2075.  
  2076.  
  2077.  Closing the Help Window
  2078.  
  2079.  
  2080.  The Help window remains open and in front of your application window. When
  2081.  you finish with the Help window, you can close it by using a mouse or the
  2082.  keyboard. To close the Help window by using a mouse, do the following:
  2083.        Mouse 
  2084.  
  2085.    ■   Double-click the System-menu box in the Help window.
  2086.  
  2087.        (This figure may be found in the printed book).
  2088.  
  2089.  
  2090.  To close the Help window by using the keyboard, follow these steps:
  2091.  
  2092.        Keyboard 
  2093.  
  2094.    1.  Select the System menu.
  2095.  
  2096.    2.  Choose the Close command.
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  Working with MS OS/2 Messages
  2102.  
  2103.  When MS OS/2 encounters problems that require immediate action, it sends
  2104.  messages to your screen. There are several types of messages, depending on
  2105.  the type of problem encountered. When you are working in Presentation
  2106.  Manager, most messages appear in dialog boxes. A Presentation Manager
  2107.  message tells you what caused the problem─for example, if the application
  2108.  you are using cannot find a particular file. These dialog boxes also contain
  2109.  Cancel and Help buttons that you can use to cancel the message or to get
  2110.  further information.
  2111.  
  2112.  Other problems, especially those caused by your computer system, cause
  2113.  messages to appear in a full screen. For example, if you forget to close a
  2114.  disk-drive door when you attempt to format a floppy disk, a message may
  2115.  appear.
  2116.  
  2117.  (This figure may be found in the printed book).
  2118.  
  2119.  
  2120.  
  2121.  The
  2122.  problem, identified by a message number, is shown along with the available
  2123.  options for correcting the problem. To choose an option, do the following:
  2124.  
  2125.        Keyboard 
  2126.  
  2127.    ■   Press the DIRECTION keys to move to and select the action you want,
  2128.        and then press ENTER.
  2129.  
  2130.  
  2131.  The following options are available:
  2132.  
  2133.  Option                            Action
  2134.  ────────────────────────────────────────────────────────────────────────────
  2135.  
  2136.  Return the error to the program   Sends the error back to your application.
  2137.                                    If possible, you return to your
  2138.                                    application. However, additional error
  2139.                                    messages may appear in your application.
  2140.  
  2141.  End the program                   Closes your application.
  2142.  
  2143.  Retry the operation               Causes the application to try the action
  2144.                                    again. Choose this option when there is
  2145.                                    a problem you can correct, such as
  2146.                                    closing a disk-drive door.
  2147.  
  2148.  You can use the message number to get additional information by using the
  2149.  help command in the MS OS/2 command interpreter, cmd. For more information
  2150.  on the help command, see Chapter 9, "Using MS OS/2 Utilities," and the
  2151.  Microsoft Operating System/2 Command Reference.
  2152.  
  2153.  
  2154.  Quitting Presentation Manager
  2155.  
  2156.  Before you turn off your computer, it is recommended that you
  2157.  use the Shutdown command in Desktop Manager. The Shutdown command on the
  2158.  Desktop menu performs the following tasks, making it safe for you to turn
  2159.  off your computer:
  2160.  
  2161.    ■   Saves any unsaved changes you made to your data files
  2162.  
  2163.    ■   Shuts down the file system
  2164.  
  2165.    ■   Closes all applications that are still running
  2166.  
  2167.    ■   Closes group windows that are still open
  2168.  
  2169.  
  2170.  To use the Shutdown command, follow these steps:
  2171.  
  2172.    1.  Switch to Desktop Manager.
  2173.  
  2174.    2.  Select the Desktop menu and choose the Shutdown command.
  2175.  
  2176.        The Shutdown dialog box appears.
  2177.  
  2178.        (This figure may be found in the printed book).
  2179.  
  2180.    3.  To save program information, such as the size and location of
  2181.        application windows or icons, turn on the Save check box.
  2182.  
  2183.    4.  To quit Presentation Manager, choose the Shutdown button; to cancel
  2184.        the command and continue working in Presentation Manager, choose the
  2185.        Cancel button.
  2186.  
  2187.        If any applications are still running, additional dialog boxes may
  2188.        appear, asking if you want to save files or settings before closing
  2189.        each application.
  2190.  
  2191.    5.  Respond to each dialog box.
  2192.  
  2193.        After all applications are closed, a dialog box appears, informing you
  2194.        that all applications have ended.
  2195.  
  2196.    6.  Turn off your computer, or to resume working with Presentation
  2197.        Manager, press CTRL+ALT+DEL.
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  Chapter 2  Running Applications with MS OS/2
  2208.  ────────────────────────────────────────────────────────────────────────────
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  Introduction
  2214.  
  2215.  Presenta
  2216.  
  2217.    ■   Desktop Manager, a Presentation Manager application, is used to open
  2218.        program groups that run in separate windows. Each window can contain
  2219.        an application written for the graphical environment of Presentation
  2220.        Manager, as well as a DOS or a full-screen OS/2 application. A DOS
  2221.        application is an application that runs under the Microsoft disk
  2222.        operating system (MS-DOS) or a computer manufacturer's version of DOS.
  2223.        A full-screen OS/2 application is an application that runs in its own
  2224.        screen rather than as part of a Presentation Manager window. Some
  2225.        full-screen OS/2 applications are not designed to run in the graphical
  2226.        environment of Presentation Manager. Other full-screen OS/2
  2227.        applications can run in windows in Presentation Manager. Once you open
  2228.        a program group, you can start any application displayed in the work
  2229.        area of the program-group window.
  2230.  
  2231.    ■   The Task List is used for switching between applications and groups.
  2232.        You can use the Task List to switch to group windows, Presentation
  2233.        Manager applications, full-screen OS/2 applications, or one DOS
  2234.        application. All of your applications continue to run. You can switch
  2235.        between them without quitting or closing files. When you switch back
  2236.        to an application or group, you can con- tinue your work where you
  2237.        left off.
  2238.  
  2239.  
  2240.  .ET This chapter explains how to perform the following tasks:
  2241.  
  2242.    ■   Opening program groups by using Desktop Manager
  2243.  
  2244.    ■   Starting applications
  2245.  
  2246.    ■   Switching between applications by using a mouse, the keyboard, and the
  2247.        Task List
  2248.  
  2249.    ■   Creating, renaming, and deleting program groups from Desktop Manager
  2250.  
  2251.    ■   Adding applications to and deleting applications from program groups
  2252.  
  2253.    ■   Changing application information
  2254.  
  2255.    ■   Copying applications from one group to another
  2256.  
  2257.    ■   Running full-screen OS/2 applications in Presentation Manager windows
  2258.  
  2259.    ■   Quitting applications and closing windows
  2260.  
  2261.  
  2262.  .RT
  2263.  
  2264.  
  2265.  About Sessions
  2266.  
  2267.  In MS OS/2, there are three types of applications you can use: Presentation
  2268.  Manager applications, OS/2 full-screen applications, and DOS applications.
  2269.  Each type of application runs in a separate environment called a session.
  2270.  
  2271.  The Presentation Manager session is where you run Presentation Manager
  2272.  applications─applications written for the graphical environment of
  2273.  Presentation Manager. Desktop Manager is an example of a Presentation
  2274.  Manager application. It runs in a window, and you work with it by choosing
  2275.  commands and completing dialog boxes.
  2276.  
  2277.  Full-screen OS/2 applications run in a full-screen session. These are
  2278.  applications that are not designed for the Presentation Manager graphical
  2279.  environment. You can start up to 12 separate full-screen sessions, running
  2280.  one application in each session. In a full-screen session, you cannot see
  2281.  the Presentation Manager session. .ET
  2282.  
  2283.  You can return to the Presentation Manager session from a full-screen
  2284.  session at any time by using the Task List. When you switch back to the
  2285.  Presentation Manager session, you see each full-screen OS/2 session
  2286.  represented by an icon. Each session is also listed by name in the Task
  2287.  List.
  2288.  
  2289.  (This figure may be found in the printed book).
  2290.  
  2291.  .RT
  2292.  Although full-screen OS/2 applications are not Presentation Manager
  2293.  applications, some can run in windows and share the screen with Presentation
  2294.  Manager applications. For example, the MS OS/2 command interpreter, cmd, can
  2295.  run in a window. When a full-screen OS/2 application is running in a window,
  2296.  it is running in the Presentation Manager session. Many of the advantages of
  2297.  a Presentation Manager application are available through the System-menu
  2298.  commands. When you are working with a full-screen OS/2 application in a
  2299.  window, however, the commands, mouse, and keyboard work exactly as they do
  2300.  in a full screen.
  2301.  (This figure may be found in the printed book).
  2302.  
  2303.  The DOS session is where you run applications designed to run with DOS. This
  2304.  session is like having a separate 640-kilobyte computer running DOS. You can
  2305.  run only one DOS application at a time, but Presentation Manager lets you
  2306.  switch to the DOS session any time you like by using the Task List. The DOS
  2307.  session starts when you start Presentation Manager and is represented on the
  2308.  Presentation Manager screen by the DOS icon. The DOS session is listed in
  2309.  the Task List as DOS.
  2310.  
  2311.  
  2312.  HPFS Filename Considerations
  2313.  
  2314.  The high-performance file system (HPFS) is an optional installable file
  2315.  system that greatly increases the speed of reading from and writing to your
  2316.  hard disk. When you use HPFS, you have greater flexibility in naming your
  2317.  files and directories than when you use the file allocation table (FAT) file
  2318.  system. For example, you can use longer names for HPFS files and you can
  2319.  include additional characters not allowed in FAT filenames.
  2320.  
  2321.  Because both DOS and some earlier versions of MS OS/2 use the FAT file
  2322.  system exclusively, applications written for these operating systems
  2323.  generally encounter problems when attempting to access files and directories
  2324.  named using the new HPFS naming rules. DOS and earlier MS OS/2 applications
  2325.  do not recognize these new filenames and therefore cannot access the files.
  2326.  
  2327.  All examples of filenames and directory names in this chapter use the FAT
  2328.  file system. For more information on HPFS filenames and directory names and
  2329.  how they are processed by DOS and earlier MS OS/2 applications, see Chapter
  2330.  16, "Using the High-Performance File System."
  2331.  
  2332.  
  2333.  Starting an Application with Desktop Manager
  2334.  
  2335.  With Desktop Manager, you can open program groups that contain your
  2336.  applications. Desktop Manager starts automatically and opens the Main group
  2337.  when you turn on your computer.
  2338.  
  2339.  (This figure may be found in the printed book).
  2340.  
  2341.  Applications in the Main group are represented by icons, followed by their
  2342.  titles, in the work area of the Main-group window. Other program groups that
  2343.  contain applications appear in the work area of the Desktop Manager window.
  2344.  To start an application from a group window, do the following:
  2345.  
  2346.  Mouse                             Keyboard
  2347.  ────────────────────────────────────────────────────────────────────────────
  2348.  
  2349.  Double-click the application      1  Press the UP or DOWN key to move to
  2350.  name or icon.                     and select the application you want to
  2351.                                    start.
  2352.  
  2353.                                    2  Press ENTER.
  2354.  
  2355.  You can also use the Open command on the Program menu to start an
  2356.  application by doing the following:
  2357.  
  2358.    1.  Select the application in the group window.
  2359.  
  2360.    2.  Select the Program menu and choose the Open command.
  2361.  
  2362.  
  2363.  
  2364.  After you start an application from a group window, the window remains open.
  2365.  You can use the Minimize On Use command on the Program menu to automatically
  2366.  reduce the group window to an icon each time you start an application. To
  2367.  use the Minimize On Use command, do the following:
  2368.    ■   Select the Program menu and choose the Minimize On Use command.
  2369.  
  2370.  
  2371.  The appearance of your screen will depend on the kind of application you
  2372.  start. If you start a Presentation Manager application, like File Manager or
  2373.  Control Panel, the application runs in a window in front of other
  2374.  application or group windows.
  2375.  
  2376.  (This figure may be found in the printed book).
  2377.  
  2378.  As shown in the following example, if you start a DOS application, such as
  2379.  Microsoft Works, the Presentation Manager screen disappears and the DOS
  2380.  application takes its place.
  2381.  
  2382.  (This figure may be found in the printed book).
  2383.  
  2384.  
  2385.  
  2386.  If you start a full-screen OS/2 application─for example, OS/2 Full
  2387.  Screen─the Presentation Manager screen disappears and the application screen
  2388.  takes its place.
  2389.  
  2390.  (This figure may be found in the printed book).
  2391.  
  2392.  If the application is a full-screen OS/2 application that runs in a window,
  2393.  the application runs in a window in front of other Presentation Manager
  2394.  application windows.
  2395.  
  2396.  (This figure may be found in the printed book).
  2397.  
  2398.  This window, however, is somewhat different from other Presentation Manager
  2399.  application windows. It has a System menu and a title bar, but no menu bar.
  2400.  For more detailed information on working with full-screen OS/2 applications
  2401.  running in windows, see "Working with a Full-Screen OS/2 Application in a
  2402.  Window," later in this chapter.
  2403.  
  2404.  
  2405.  Opening a Program Group
  2406.  
  2407.  Applications in Desktop Manager are divided into program groups and are
  2408.  represented as icons in the Desktop Manager window. When you start
  2409.  Presentation Manager, applications in the Main group automatically appear in
  2410.  a separate window.
  2411.  
  2412.  (This figure may be found in the printed book).
  2413.  
  2414.  
  2415.  
  2416.  The following list describes the programs in the Main group:
  2417.    ■   File Manager is a Presentation Manager application that is used to
  2418.        view and organize files and directories. You can also use File Manager
  2419.        to start applications. You will find more details on using File
  2420.        Manager in Chapter 3, "Using File Manager."
  2421.  
  2422.    ■   OS/2 Window is the MS OS/2 command interpreter, cmd, that runs in a
  2423.        window in Presentation Manager. Running cmd this way allows you to
  2424.        view your other applications. You can also reduce the cmd window to an
  2425.        icon.
  2426.  
  2427.    ■   OS/2 Full Screen is the MS OS/2 command interpreter, cmd, that runs as
  2428.        a full-screen application. When you start this application, the
  2429.        Presentation Manager screen disappears and you see the MS OS/2 command
  2430.        prompt.
  2431.  
  2432.    ■   Print Manager is a Presentation Manager application that is used to
  2433.        manage and control printing jobs that have been sent to your printer.
  2434.        When you start MS OS/2, Print Manager starts automatically and runs as
  2435.        an icon in the icon area at the bottom of your screen.
  2436.  
  2437.    ■   OS/2 System Editor is a Presentation Manager text-processing
  2438.        application that is used to create and edit text files.
  2439.  
  2440.    ■   OS/2 Command Reference is a Presentation Manager application that is
  2441.        used to view the contents of the Microsoft Operating System/2 Command
  2442.        Reference. This reference contains general information as well as
  2443.        information on particular MS OS/2 commands.
  2444.  
  2445.  
  2446.  In addition to the Main group, Desktop Manager contains a Utilities group.
  2447.  The Utilities group contains the following utilities and applications:
  2448.  
  2449.    ■   Control Panel is a Presentation Manager application that is used to
  2450.        install printer drivers, to change country information and screen
  2451.        colors, and to set the date and time.
  2452.  
  2453.    ■   Copy Diskette is an MS OS/2 utility program that is used to duplicate
  2454.        a floppy disk.
  2455.  
  2456.    ■   Compare Diskettes is an MS OS/2 utility program that is used to
  2457.        compare the contents and the tracks of two floppy disks.
  2458.  
  2459.    ■   Label Diskettes is an MS OS/2 utility program that is used to assign a
  2460.        new volume label to a floppy disk.
  2461.  
  2462.    ■   Format Diskette is an MS OS/2 utility program that is used to format
  2463.        floppy disks in drive A.
  2464.  
  2465.    ■   Disk Information─CHKDSK is an MS OS/2 utility program that is used to
  2466.        check for errors and available storage space on your disks.
  2467.  
  2468.    ■   Fixed Disk Utility is a Presentation Manager utility program that is
  2469.        used to set up partitions on your hard disk and to assign drive
  2470.        letters to partitions.
  2471.  
  2472.    ■   Print Picture is a Presentation Manager application that is used for
  2473.        printing graphic document files that have a picture-interchange format
  2474.        or metafile format.
  2475.  
  2476.    ■   Display Picture is a Presentation Manager application that is used for
  2477.        displaying graphic document files on your screen.
  2478.  
  2479.    ■   Convert Picture is a Presentation Manager application that is used for
  2480.        converting files from picture-interchange format to metafile format
  2481.        (the format used in Presentation Manager).
  2482.  
  2483.  
  2484.  To open a program group by using a mouse, do the following:
  2485.  
  2486.        Mouse 
  2487.  
  2488.    1.  Switch to Desktop Manager.
  2489.  
  2490.    2.  Double-click the group name or icon.
  2491.  
  2492.  
  2493.  Do the following to open a group by using the keyboard:
  2494.  
  2495.        Keyboard 
  2496.  
  2497.    1.  Switch to Desktop Manager.
  2498.  
  2499.    2.  Press the DIRECTION keys to select the program group you want to open,
  2500.        as shown in the following example.
  2501.  
  2502.        (This figure may be found in the printed book).
  2503.  
  2504.    3.  Press ENTER.
  2505.  
  2506.  
  2507.  You can also use the Open command on the Desktop Manager Group menu to open
  2508.  a program group. Do the following to use the Open command:
  2509.  
  2510.    1.  Switch to Desktop Manager.
  2511.  
  2512.    2.  Select the program group you want to open.
  2513.  
  2514.    3.  Select the Group menu and choose the Open command.
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  ────────────────────────────────────────────────────────────────────────────
  2520.  Note
  2521.  
  2522.  If a group is already open, using the Open command or double-clicking the
  2523.  group name in Desktop Manager makes the group window the active window.
  2524.  ────────────────────────────────────────────────────────────────────────────
  2525.  
  2526.  
  2527.  You can add new program groups to Desktop Manager by using the commands on
  2528.  the Group menu. Once you open a program group, you can change the
  2529.  applications in it by using the commands on the Program menu. For
  2530.  information on adding new groups, see "Creating a Program Group in Desktop
  2531.  Manager," later in this chapter. For information on changing applications in
  2532.  program groups, see "Adding an Application to a Program Group," "Changing
  2533.  Application Information," "Copying an Application to Another Group," and
  2534.  "Deleting an Application from a Program Group," later in this chapter.
  2535.  
  2536.  
  2537.  Starting an Application from File Manager
  2538.  
  2539.  In Presentation Manager, there are several ways you can start your
  2540.  applications. In addition to starting an application from a group window,
  2541.  you can also start an application by opening a program file in File Manager.
  2542.  Program files, as shown in the following example, usually have the filename
  2543.  extension .BAT, .EXE,
  2544.  
  2545.  (This figure may be found in the printed book).
  2546.  
  2547.  
  2548.  
  2549.  ────────────────────────────────────────────────────────────────────────────
  2550.  Note
  2551.  
  2552.  The information in this section is intended to be an introduction to File
  2553.  Manager. For more complete information on starting applications from File
  2554.  Manager, see Chapter 3, "Using File Manager."
  2555.  ────────────────────────────────────────────────────────────────────────────
  2556.  
  2557.  
  2558.  To start an application from File Manager by using a mouse, do the
  2559.  following:
  2560.  
  2561.        Mouse 
  2562.  
  2563.    1.  Switch to the Main-group window.
  2564.  
  2565.    2.  Start File Manager.
  2566.  
  2567.    3.  In the Directory Tree window, double-click the name of the directory
  2568.        that contains the application you want to start.
  2569.  
  2570.        (This figure may be found in the printed book).
  2571.  
  2572.    4.  Double-click the program file for the application you want to start.
  2573.  
  2574.  
  2575.  If you are using the keyboard, follow these steps to start an application
  2576.  from File Manager:
  2577.  
  2578.        Keyboard 
  2579.  
  2580.    1.  Switch to the Main-group window.
  2581.  
  2582.    2.  Start File Manager.
  2583.  
  2584.    3.  In the Directory Tree window, press the DIRECTION keys to move to and
  2585.        select the name of the directory that contains the application you
  2586.        want to start, and then press ENTER to open the directory window.
  2587.  
  2588.    4.  In the directory window, press the DIRECTION keys to move to and
  2589.        select the program file for the application you want to start, and
  2590.        then press ENTER.
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  Dragging a Data-File Icon
  2596.  
  2597.  Another method for starting an application from File Manager by using a
  2598.  mouse is to drag one or more data files onto an application icon or title in
  2599.  the group window. Starting an application in this way automatically opens
  2600.  the data file with the application. To start an application by dragging a
  2601.  data file from File Manager, do the following:
  2602.  
  2603.        Mouse 
  2604.  
  2605.    1.  Start File Manager from the Main-group window.
  2606.  
  2607.    2.  Open the directory containing the data file you want to use.
  2608.  
  2609.    3.  Arrange the windows on your screen so that the File Manager directory
  2610.        window containing the data file you want to use and the group window
  2611.        containing the application you want to start are both visible.
  2612.  
  2613.    4.  Select the data file you want to use.
  2614.  
  2615.    5.  Using the right mouse button, drag the data-file icon onto the icon or
  2616.        title of the application you want to start.
  2617.  
  2618.        (This figure may be found in the printed book).
  2619.  
  2620.  
  2621.  You can start several occurrences of the same application. A separate
  2622.  occurrence of the application will start for each data file. If your
  2623.  application allows you to work with more than one file at a time, you can
  2624.  also start one occurrence of the application with several data files. To
  2625.  open several data files and start several occurrences of the application, do
  2626.  the following:
  2627.  
  2628.        Mouse 
  2629.  
  2630.    1.  Select the data files you want to use.
  2631.  
  2632.    2.  Using the right mouse button, drag the data-file icons over the icon
  2633.        or title of the application you want to start.
  2634.  
  2635.  
  2636.  If you want to start only one occurrence of the application, do the
  2637.  following:
  2638.  
  2639.    ■   Press and hold down ALT while dragging the data-file icons onto the
  2640.        icon or title of the application you want to start.
  2641.  
  2642.  
  2643.  Some applications do not allow you to open more than one file at a time. For
  2644.  these applications, only the first file in your selection is opened. The
  2645.  other files are ignored.
  2646.  
  2647.  
  2648.  Starting an Application from the MS OS/2 Command Interpreter
  2649.  
  2650.  
  2651.  You can also start applications from the MS OS/2 command interpreter, cmd. To
  2652.  start an application from the MS OS/2 command interpreter, do the following:
  2653.  
  2654.    1.  Switch to the Main group and start either OS/2 Full Screen or OS/2
  2655.        Window.
  2656.  
  2657.    2.  At the MS OS/2 prompt, type the command (and any command-line
  2658.        arguments) that starts the application and press ENTER.
  2659.  
  2660.  
  2661.  The appearance of your screen will depend on whether your application runs
  2662.  in a window or a full screen. If you start a full-screen OS/2 application,
  2663.  you see only the application screen. If you start a Presentation Manager
  2664.  application or a full-screen OS/2 application that runs in a window, the
  2665.  application window appears in front of other windows.
  2666.  
  2667.  When you complete your work with a particular application, you can quit the
  2668.  application. You can also quit the MS OS/2 command interpreter. To quit the
  2669.  MS OS/2 command interpreter, follow these steps:
  2670.  
  2671.        Keyboard 
  2672.  
  2673.    ■   At the MS OS/2 prompt, type exit and press ENTER.
  2674.  
  2675.  
  2676.  Or
  2677.  
  2678.    ■   If you are running the MS OS/2 command interpreter in a window, you
  2679.        can quit by closing the window.
  2680.  
  2681.  
  2682.  If you are using a mouse, do the following to close the MS OS/2
  2683.  command-interpreter window:
  2684.  
  2685.        Mouse 
  2686.  
  2687.    1.  Double-click the System-menu box.
  2688.  
  2689.        A message box appears, asking you to confirm your decision to end the
  2690.        program and close the window.
  2691.  
  2692.    2.  Choose the Yes button.
  2693.  
  2694.  
  2695.  If you are using the keyboard, follow these steps to close the MS OS/2
  2696.  command-interpreter window:
  2697.  
  2698.        Keyboard 
  2699.  
  2700.    1.  Press SHIFT+ESC to select the System menu.
  2701.  
  2702.    2.  Choose the Close command.
  2703.  
  2704.        A message box appears, asking you to confirm your decision to end the
  2705.        program and close the window.
  2706.  
  2707.    3.  Choose the Yes button.
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  Starting a DOS Application from the DOS Session
  2713.  
  2714.  In MS OS/2, you can run
  2715.  one DOS application at a time in a special environment called the DOS
  2716.  session─almost as if the application were running under DOS on a separate
  2717.  computer. You can switch between the DOS session and other MS OS/2
  2718.  applications or groups; however, the multitasking capabilities of MS OS/2
  2719.  are not available in the DOS session. The DOS session is represented by an
  2720.  icon at the bottom of your screen when you start Presentation Manager.
  2721.  
  2722.  (This figure may be found in the printed book).
  2723.  
  2724.  
  2725.  
  2726.  ────────────────────────────────────────────────────────────────────────────
  2727.  Note
  2728.  
  2729.  Because DOS does not allow many of the features used in HPFS names, DOS
  2730.  applications may ignore files and directories named using the HPFS naming
  2731.  rules. For more information on HPFS filenames and how they are processed by
  2732.  DOS applications, see Chapter 16, "Using the High-Performance File System."
  2733.  ────────────────────────────────────────────────────────────────────────────
  2734.  
  2735.  
  2736.  In addition to starting a DOS application from a group window, you can start
  2737.  a DOS application directly from the DOS session. To run a DOS application in
  2738.  this way, you must first switch to the DOS session. To switch to the DOS
  2739.  session, do the following:
  2740.  
  2741.  Mouse                             Keyboard
  2742.  ────────────────────────────────────────────────────────────────────────────
  2743.  
  2744.  Double-click the DOS icon.        1  Press CTRL+ESC to display the Task
  2745.                                    List.
  2746.  
  2747.                                    2  Choose DOS from the list of
  2748.                                    applications.
  2749.  
  2750.  
  2751.  (This figure may be found in the printed book).
  2752.  
  2753.  To start a DOS application from the DOS session, do the following:
  2754.  
  2755.    ■   At the DOS prompt, type the command (and any command-line arguments)
  2756.        that starts the application and press ENTER.
  2757.  
  2758.  
  2759.  You can run only one DOS application at a time in the DOS session; however,
  2760.  you can switch back to Presentation Manager and use other MS OS/2
  2761.  applications without quitting your DOS application. Details on switching
  2762.  between applications are provided in the following section.
  2763.  
  2764.  ────────────────────────────────────────────────────────────────────────────
  2765.  Note
  2766.  
  2767.  You may experience problems with some DOS graphics applications when you
  2768.  switch between the DOS session and another session. In some DOS graphics
  2769.  applications the screen may not be restored correctly when you return to it
  2770.  from another session. If this occurs, close the DOS graphics application
  2771.  before switching to another session.
  2772.  ────────────────────────────────────────────────────────────────────────────
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  Switching Between Applications and Program Groups
  2778.  
  2779.  After you start more than
  2780.  one application or open more than one group window, you need to choose the
  2781.  application or group you want to work with and then switch to it. There are
  2782.  several ways to accomplish this depending on whether you use a mouse or the
  2783.  keyboard.
  2784.  
  2785.  
  2786.  Switching Between Visible Applications and Groups
  2787.  
  2788.  You can use a mouse to switch quickly between applications or groups that
  2789.  are visible on your Presentation Manager screen by doing the following:
  2790.  
  2791.        Mouse 
  2792.  
  2793.    ■   To switch to an application or group window, click the window.
  2794.  
  2795.  
  2796.  Or
  2797.  
  2798.    ■   To switch to an application or group running as an icon, double-click
  2799.        the icon.
  2800.  
  2801.  
  2802.  You can also use the following keyboard technique to switch between
  2803.  Presentation Manager windows and icons, full-screen OS/2 applications, and
  2804.  the DOS session by doing the following:
  2805.  
  2806.        Keyboard 
  2807.  
  2808.    ■   Press ALT+ESC until you reach the application or group you want to
  2809.        select.
  2810.  
  2811.  
  2812.  If you press ALT+ESC to switch to a Presentation Manager application or
  2813.  group that is running as an icon, its System menu appears. You must first
  2814.  use the Restore command to restore the application or group before you can
  2815.  work with it.
  2816.  
  2817.  
  2818.  Switching Between Applications and Groups by Using the Task List
  2819.  
  2820.  The Task List is used to keep track of your applications and can be used to
  2821.  switch quickly between them. You can display the Task List from the DOS
  2822.  session or from a full-screen OS/2 application, as well as from Presentation
  2823.  Manager.
  2824.  
  2825.  The applications you are currently running and the groups that are currently
  2826.  open are displayed in the Task List.
  2827.  
  2828.  (This figure may be found in the printed book).
  2829.  
  2830.  To display the Task List in Presentation Manager, do the following:
  2831.  
  2832.  Mouse                             Keyboard
  2833.  ────────────────────────────────────────────────────────────────────────────
  2834.  
  2835.  Position the mouse pointer        Press CTRL+ESC.
  2836.  anywhere outside window and
  2837.  click the right mouse button.
  2838.  
  2839.  You can also display the Task List by using the Switch To command on the
  2840.  System menu by doing the following:
  2841.  
  2842.    ■   Select the System menu and choose the Switch To command.
  2843.  
  2844.  
  2845.  To switch to another application or group, do the following:
  2846.  
  2847.  Mouse                             Keyboard
  2848.  ────────────────────────────────────────────────────────────────────────────
  2849.  
  2850.  Double-click the name of the      1  Press the DIRECTION keys to move to
  2851.  application or group you want to  and select the name of the application
  2852.  switch to.                        or group you want to switch to.
  2853.  
  2854.                                    2  Press ENTER.
  2855.  
  2856.  You can use the Switch To button in the Task List to switch to a selected
  2857.  application or group by doing the following:
  2858.  
  2859.    1.  From the Task List, select the application or group you want.
  2860.  
  2861.    2.  Choose the Switch To button.
  2862.  
  2863.  
  2864.  You can cancel the Task List without switching to an application or group by
  2865.  using either a mouse or the keyboard. To cancel the Task List, do the
  2866.  following:
  2867.  
  2868.  Mouse                             Keyboard
  2869.  ────────────────────────────────────────────────────────────────────────────
  2870.  
  2871.  Click the screen background       Press ESC.
  2872.  (anywhere outside a window).
  2873.  
  2874.  
  2875.  
  2876.  Adding an Application to a Program Group
  2877.  
  2878.  To make starting applications easier and faster, you can add them to a
  2879.  program group by using the New command on the Program menu. This command
  2880.  stores the name of your application, its path, and any command arguments in
  2881.  the program group. To add an application to a program group, follow these
  2882.  steps:
  2883.  
  2884.    1.  Switch to the program group you want to add your application to.
  2885.  
  2886.    2.  Select the Program menu and choose the New command.
  2887.  
  2888.        The New Program dialog box appears.
  2889.  
  2890.        (This figure may be found in the printed book).
  2891.  
  2892.    3.
  2893.  
  2894.        For details on completing the New Program dialog box, see the
  2895.        information following this procedure list.
  2896.  
  2897.    4.  To add the application, choose the Add button.
  2898.  
  2899.  
  2900.  The following list describes each area of the New Program dialog box:
  2901.  
  2902.    ■   In the Program Title box, you type the title of your application. This
  2903.        is the name that will appear in the program-group window. You can use
  2904.        any name you want, as long as it is unique in the program group.
  2905.  
  2906.    ■   In the Path and File Name box, you type the disk-drive letter and a
  2907.        colon (:); the path, separating each directory in the path with a
  2908.        backslash (\e); and the filename of your application.
  2909.  
  2910.        For example, to add the XCOPY.EXE application file on drive C in your
  2911.        OS2 directory, you would type the following:
  2912.  
  2913.  c:\eos2\excopy.exe
  2914.  
  2915.  
  2916.  
  2917.  
  2918.    ■   In the Parameters box, you type any command arguments─for example, a
  2919.        filename or an option. Type these arguments just as you would if you
  2920.        were typing the command at the MS OS/2 prompt. Argument information is
  2921.        optional, but some applications do not run correctly without this
  2922.        information.
  2923.  
  2924.        When you start an application by dragging a data-file icon onto an
  2925.        application icon, the data-file name is the last command argument (by
  2926.        default). If you want the data-file name to appear at another place in
  2927.        relation to the command arguments, type %* at the correct location. To
  2928.        display a dialog box requesting argument information each time you
  2929.        start the application, type the request you want displayed, surrounded
  2930.        by square brackets ([ ]) in the Parameters box. For example, if you
  2931.        want the dialog box to display "Enter your parameters now," you would
  2932.        type the following:
  2933.  
  2934.  [ your parameters now]
  2935.  
  2936.  
  2937.  
  2938.  
  2939.    ■   In the Working Directory box, you type the location of the working
  2940.        directory─for example, the directory that contains particular text
  2941.        files for a text-editing application.
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  Adding a Program File from File Manager
  2947.  
  2948.  If you are using a mouse, you can add a program to a group by dragging the
  2949.  program-file icon from File Manager onto the group window or group icon. To
  2950.  use this method, do the following:
  2951.  
  2952.        Mouse 
  2953.  
  2954.    1.  Start File Manager from the Main-group window.
  2955.  
  2956.    2.  Open the directory containing the program file you want to add.
  2957.  
  2958.    3.  Arrange the windows on your screen so that the directory window
  2959.        containing the program file you want to add and the group window or
  2960.        icon you want to add the program file to are both visible.
  2961.  
  2962.    4.  Select the program file you want to add.
  2963.  
  2964.    5.  Hold down the right mouse button and drag the program-file icon onto
  2965.        the group window or icon.
  2966.  
  2967.        (This figure may be found in the printed book).
  2968.  
  2969.    6.  Complete the New Program dialog box.
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  Changing Application Information
  2975.  
  2976.  You can change any information used to start an application by
  2977.  using the Properties command on the Program menu. For example, you may want
  2978.  to change the working directory for an application or provide an additional
  2979.  argument, such as a filename. For full-screen OS/2 applications, you can use
  2980.  the Properties command to change whether an application runs in a window or
  2981.  in a full screen. To change the information used to start an application,
  2982.  follow these steps:
  2983.  
  2984.    1.  Switch to the program group containing the application you want.
  2985.  
  2986.    2.  Select the application from the group.
  2987.  
  2988.    3.  Select the Program menu and choose the Properties command.
  2989.  
  2990.        The Properties dialog box appears, displaying the current program
  2991.        information.
  2992.  
  2993.        (This figure may be found in the printed book).
  2994.  
  2995.    4.  Move to the dialog-box area you want to change and type the new
  2996.        information.
  2997.  
  2998.    5.  Choose the Change button.
  2999.  
  3000.  
  3001.  The last section in the dialog box, Program Type, lists two options:
  3002.  Presentation Manager and Other. When you start an application, Pre-
  3003.  sentation Manager can determine its type─Presentation Manager or Other─and
  3004.  whether the application should run in a window or in a full screen.
  3005.  Presentation Manager applications always run in windows.
  3006.  
  3007.  Some applications, though, can run in a window or in a full screen,
  3008.  depending on what is specified by the application. To change the default
  3009.  setting for running your application full-screen or in a window, do the
  3010.  following:
  3011.  
  3012.    1.  Switch to the program group containing the application you want to
  3013.        change.
  3014.  
  3015.    2.  Select the application from the group (it cannot be a Presentation
  3016.        Manager application).
  3017.  
  3018.    3.  Select the Program menu and choose the Properties command.
  3019.  
  3020.        The Properties dialog box appears (the Other option in the Program
  3021.        Type section is selected).
  3022.  
  3023.        (This figure may be found in the printed book).
  3024.  
  3025.    4.  Choose the Change button.
  3026.  
  3027.        The How to Run the Program dialog box appears.
  3028.  
  3029.        (This figure may be found in the printed book).
  3030.  
  3031.    5.  If you want your application to run in a full screen, select the Run
  3032.        the Program Full-Screen option. If you want your full-screen OS/2
  3033.        application to run in a window, select the Run the Program in a Text
  3034.        Window option. If your application is a DOS application, select the
  3035.        Run the Program in DOS Mode option. If you want your application to
  3036.        determine whether it runs in a window or in a full screen, select the
  3037.        Let the Program Decide option. .ET
  3038.  
  3039.        If you select the Run the Program in a Text Window option, you can
  3040.        also turn on the Close the Window When the Program Ends check box.
  3041.        This automatically closes the window when you quit your application.
  3042.  
  3043.    6.  Choose the Enter button.
  3044.  
  3045.  
  3046.  .RT
  3047.  
  3048.  
  3049.  Copying an Application to Another Program Group
  3050.  
  3051.  You can copy applications to different program groups. You may want to
  3052.  include a frequently used application, such as the MS OS/2 command
  3053.  interpreter, cmd, in more than one program group. To copy an application to
  3054.  a different group by using a mouse, follow these steps:
  3055.  
  3056.        Mouse 
  3057.  
  3058.    1.  Arrange the group window containing the application you want to copy
  3059.        and the group window or icon to which you want to copy the application
  3060.        so that they are both visible on your screen. .ET
  3061.  
  3062.    2.  Select the application you want to copy.
  3063.  
  3064.    3.  Press and hold down CTRL and, using the right mouse button, drag the
  3065.        application icon onto the group window or icon that you want to copy
  3066.        the application to.
  3067.  
  3068.  
  3069.  
  3070.  (This figure may be found in the printed book).
  3071.  
  3072.  .RT If you are using a mouse, you can also move an application from one
  3073.  group to another without copying it. To do this, do the following:
  3074.  
  3075.        Mouse 
  3076.  
  3077.    ■   Press the right mouse button and drag the application icon onto its
  3078.        new group window or icon.
  3079.  
  3080.  
  3081.  To copy an application to a different group by using the keyboard, follow
  3082.  these steps:
  3083.  
  3084.        Keyboard 
  3085.  
  3086.    1.  Switch to the program group containing the application you want.
  3087.  
  3088.    2.  Select the application you want to copy.
  3089.  
  3090.    3.  Select the Program menu and choose the Copy command.
  3091.  
  3092.        The Copy Program dialog box appears.
  3093.  
  3094.        (This figure may be found in the printed book).
  3095.  The name of the application you selected appears at the top of the dialog
  3096.  box.
  3097.  
  3098.    4.  Select the group you want to copy the application to.
  3099.  
  3100.    5.  To change the application name in its new group, type the new name in
  3101.        the Change Title To box.
  3102.  
  3103.    6.  Choose the Copy button.
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  ────────────────────────────────────────────────────────────────────────────
  3109.  Note
  3110.  
  3111.  If you want to move an application from one group to another without copying
  3112.  it by using the keyboard, you must first copy the application to a new group
  3113.  and then delete it from the old group. The following section explains how to
  3114.  delete an application.
  3115.  ────────────────────────────────────────────────────────────────────────────
  3116.  
  3117.  
  3118.  
  3119.  
  3120.  Deleting an Application from a Program Group
  3121.  
  3122.  You can delete any application from a program group by using the Delete
  3123.  command on the Program menu. To delete an application, do the following:
  3124.  
  3125.    1.  Switch to the program group containing the application.
  3126.  
  3127.    2.  Select the application you want to delete.
  3128.  
  3129.    3.  Select the Program menu and choose the Delete command.
  3130.  
  3131.        A dialog box appears, asking you to confirm your decision to delete
  3132.        the program.
  3133.  
  3134.    4.  Choose the Yes button to delete the application; choose the No button
  3135.        to return to the program group; choose the Help button for information
  3136.        on the Delete command.
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  Creating a Program Group in Desktop Manager
  3142.  
  3143.  You can create a new program group in Desktop Manager by using the New
  3144.  command on the Group menu. The program-group name you create appears in the
  3145.  Desktop Manager window. To add a program group to Desktop Manager, follow
  3146.  these steps:
  3147.  
  3148.    1.  Switch to Desktop Manager.
  3149.  
  3150.    2.  Select the Group menu and choose the New command.
  3151.  
  3152.        The New Group dialog box appears.
  3153.  
  3154.        (This figure may be found in the printed book).
  3155.  
  3156.    3.  Type the name of the group in the New Group Name box.
  3157.  
  3158.    4.  Choose the Add button.
  3159.  
  3160.  
  3161.  After you add a new group, Desktop Manager automatically opens the group so
  3162.  that you can add or copy applications to it. You add applications by using
  3163.  the Add command on the Program menu of the group window. You can also switch
  3164.  to another group and copy applications by dragging them with a mouse or by
  3165.  using the Copy command. For more information on copying applications from
  3166.  one group to another, see "Copying an Application to Another Program Group,"
  3167.  earlier in this chapter.
  3168.  
  3169.  
  3170.  Changing the List in a Program-Group Window
  3171.  
  3172.  When you open a program-group window, the applications in the group are
  3173.  represented by title and icon. You can change the list so that only the
  3174.  application titles appear in the group window.
  3175.  
  3176.  (This figure may be found in the printed book).
  3177.  
  3178.  You change the way the contents of a group window are displayed by using the
  3179.  Text and Icon commands on the View menu. To display only application titles
  3180.  in a group window, follow these steps:
  3181.  
  3182.    1.  Switch to the program group window you want to change.
  3183.  
  3184.    2.  Select the View menu and choose the Text command.
  3185.  
  3186.  
  3187.  The next time you select the View menu, you will see a check mark next to
  3188.  the Text command, indicating that the text view is active.
  3189.  
  3190.  (This figure may be found in the printed book).
  3191.  
  3192.  To redisplay both the application icons and application titles, do the
  3193.  following:
  3194.  
  3195.    ■   Select the View menu and choose the Icon command.
  3196.  
  3197.  
  3198.  The next time you select the View menu, a check mark will appear next to the
  3199.  Icon command, indicating that the icon view is active.
  3200.  
  3201.  
  3202.  Renaming a Program Group
  3203.  
  3204.  You can change the name of a program group in Desktop Manager by
  3205.  using the Rename command on the Group menu. To rename a program group,
  3206.  follow these steps:
  3207.  
  3208.    1.  Switch to Desktop Manager.
  3209.  
  3210.    2.  Select the group name you want to change.
  3211.  
  3212.    3.  Select the Group menu and choose the Rename command.
  3213.  
  3214.        The Rename Group dialog box appears.
  3215.  
  3216.        (This figure may be found in the printed book).
  3217.  
  3218.    4.  Type the new group name in the New Name box.
  3219.  
  3220.    5.  Choose the Rename button.
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  Deleting a Program Group
  3226.  
  3227.  You can remove a program group from Desktop Manager by using the Delete
  3228.  command on the Group menu. However, you must first remove all applications
  3229.  from the group by using the Delete command on the Program menu. For more
  3230.  information on deleting applications from a group, see "Deleting an
  3231.  Application from a Program Group," earlier in this chapter. To delete a
  3232.  program group, do the following:
  3233.  
  3234.    1.  Switch to Desktop Manager.
  3235.  
  3236.    2.  Select the program group you want to delete (the group should not
  3237.        contain any applications).
  3238.  
  3239.    3.  Select the Group menu and choose the Delete command.
  3240.  
  3241.        The Delete Group dialog box appears.
  3242.  
  3243.        (This figure may be found in the printed book).
  3244.  
  3245.    4.  Choose the Delete button.
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  Working with a Full-Screen OS/2 Application in a Window
  3251.  
  3252.  Many full-screen OS/2 applications can run in a window even though they are
  3253.  not specifically designed as Presentation Manager applications. Running an
  3254.  application in a window gives you many of the advantages of a Presentation
  3255.  Manager application: you can size the window, you can use a mouse to switch
  3256.  to the application, and you have easy access to other applications. For
  3257.  information on how to make a full-screen OS/2 application run in a window,
  3258.  see "Changing Application Information," earlier in this chapter.
  3259.  
  3260.  (This figure may be found in the printed book).
  3261.  
  3262.  .ET You can select the System menu from a full-screen OS/2 application
  3263.  running in a window by doing the following:
  3264.  
  3265.  Mouse                             Keyboard
  3266.  ────────────────────────────────────────────────────────────────────────────
  3267.  
  3268.  Click the System-menu box.        Press ALT or SHIFT+ESC.
  3269.  
  3270.  
  3271.  (This figure may be found in the printed book).
  3272.  
  3273.  .RT
  3274.  
  3275.  
  3276.  Using Help
  3277.  
  3278.  Help information is available on running an application in a window;
  3279.  however, you get Help information for a full-screen OS/2 application running
  3280.  in a window in a different way than you get it for a regular Presentation
  3281.  Manager application. To get Help information on running a full-screen OS/2
  3282.  application in a window, do the following:
  3283.  
  3284.    ■   Select the System menu and choose the Help command.
  3285.  
  3286.        The Help window appears.
  3287.  
  3288.  
  3289.  
  3290.  (This figure may be found in the printed book).
  3291.  
  3292.  The Help window itself is a Presentation Manager window and works in the
  3293.  same way that other Presentation Manager windows work. You can close the
  3294.  Help window by doing the following:
  3295.  
  3296.  Mouse                             Keyboard
  3297.  ────────────────────────────────────────────────────────────────────────────
  3298.  
  3299.  Double-click the System-menu box.  Press ESC.
  3300.  
  3301.  
  3302.  
  3303.  Switching Between Applications and Program Groups
  3304.  
  3305.  You can switch to another application or program group from a full-screen
  3306.  OS/2 application running in a window the same way you switch from an
  3307.  application running in Presentation Manager: by clicking in another window,
  3308.  by pressing ALT+ESC or ALT+TAB to move to the next application or window, or
  3309.  by clicking the right mouse button outside a window or pressing CTRL+ESC to
  3310.  display the Task List. In addition, the Switch Window command on the System
  3311.  menu lets you switch to another application or group. To switch to another
  3312.  application or group by using the Switch Window command, do the following:
  3313.  
  3314.    ■   Select the System menu and choose the Switch Window command.
  3315.  
  3316.  
  3317.  
  3318.  
  3319.  Reducing the Text Size
  3320.  
  3321.  To display more information in a window, you can reduce the size of the text
  3322.  displayed in a full-screen OS/2 application running in a window. To reduce
  3323.  the size of text characters, do the following:
  3324.  
  3325.    ■   Select the System menu and choose the Small Font command.
  3326.  
  3327.        In the System menu, the Small Font command, once it is chosen, is
  3328.        replaced by the Large Font command.
  3329.  
  3330.        (This figure may be found in the printed book).
  3331.  
  3332.  
  3333.  To restore the text characters to their original size, do the following:
  3334.  
  3335.    ■   Select the System menu and choose the Large Font command.
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  Scrolling a Window
  3341.  
  3342.  When you are running a full-screen OS/2 application in a window, you may not
  3343.  be able to see all of the information at one time. You can scroll the
  3344.  contents of the window to see more information by using either the scroll
  3345.  bars or the Scroll command on the System menu. To scroll a window by using a
  3346.  mouse, do the following:
  3347.  
  3348.        Mouse 
  3349.  
  3350.    ■   Click the scroll bars at the side or bottom of the window.
  3351.  
  3352.        (This figure may be found in the printed book).
  3353.  
  3354.  
  3355.  If you are using the keyboard, you can use the Scroll command on the System
  3356.  menu to scroll the contents of the window. Do the following:
  3357.  
  3358.        Keyboard 
  3359.  
  3360.    1.  Select the System menu and choose the Scroll command.
  3361.  
  3362.        The title bar of the window changes to show that the Scroll command is
  3363.        in effect (a check mark also appears next to the Scroll command on the
  3364.        System menu).
  3365.  
  3366.        (This figure may be found in the printed book).
  3367.  
  3368.    2.  Press the DIRECTION keys to scroll the window.
  3369.  
  3370.    3.  After you complete the scrolling, select the System menu and choose
  3371.        the Scroll command again.
  3372.  
  3373.  
  3374.  
  3375.  
  3376.  Sizing a Window
  3377.  
  3378.  
  3379.  You change the size of the window for a full-screen OS/2 application running
  3380.  in a window in much the same way you change the size of Presentation Manager
  3381.  application windows: by using a mouse or by choosing the Size, Minimize,
  3382.  Maximize, or Restore commands on the System menu. These commands work a
  3383.  little differently, however, in full-screen OS/2 application windows. To
  3384.  size a full-screen OS/2 application window by using a mouse, follow these
  3385.  steps: .ET
  3386.        Mouse 
  3387.  
  3388.    1.  Point to the border or corner that you want to move (the mouse pointer
  3389.        becomes a two-headed arrow).
  3390.  
  3391.    2.  Drag the corner or border until the window is the size you want.
  3392.  
  3393.  
  3394.  .RT To size a full-screen OS/2 application window by using the keyboard,
  3395.  follow these steps:
  3396.  
  3397.        Keyboard 
  3398.  
  3399.    1.  Select the System menu and choose the Size command.
  3400.  
  3401.    2.  Press one DIRECTION key to select the border you want to move.
  3402.  
  3403.    3.  Press the DIRECTION keys to move the border until the window is the
  3404.        size you want.
  3405.  
  3406.    4.  Press ENTER.
  3407.  
  3408.  
  3409.  If you choose the Small Font command, the window becomes smaller. The same
  3410.  amount of information is displayed but the character size is reduced.
  3411.  
  3412.  You can enlarge a full-screen OS/2 application window to fill most of your
  3413.  screen. However, the icon area remains visible on your screen. If you choose
  3414.  the Small Font command, the maximum size of the window is reduced. When you
  3415.  enlarge a full-screen OS/2 application window, the scroll bars disappear. To
  3416.  enlarge a full-screen OS/2 application window to its maximum size, do the
  3417.  following:
  3418.  
  3419.  Mouse                             Keyboard
  3420.  ────────────────────────────────────────────────────────────────────────────
  3421.  
  3422.  Click the Maximize box.           Select the System menu and choose the
  3423.                                    Maximize command.
  3424.  
  3425.  To reduce a full-screen OS/2 application window to an icon, do the
  3426.  following:
  3427.  
  3428.  Mouse                             Keyboard
  3429.  ────────────────────────────────────────────────────────────────────────────
  3430.  
  3431.  Click the Minimize box.           Select the System menu and choose the
  3432.                                    Minimize command.
  3433.  
  3434.  When you reduce a full-screen OS/2 application to an icon, the OS/2 Window
  3435.  icon appears at the bottom of your screen.
  3436.  
  3437.  (This figure may be found in the printed book).
  3438.  
  3439.  
  3440.  
  3441.  Running Utility Programs
  3442.  
  3443.  MS OS/2 utilities are programs you can use to accomplish common tasks such
  3444.  as formatting floppy disks, making backup copies of floppy disks, and
  3445.  checking available storage space on disks. How you start a utility depends
  3446.  on the task you want to accomplish. For example, if you want to provide
  3447.  additional information, such as a filename, when you start a utility, you
  3448.  should start the MS OS/2 command interpreter, cmd, and start the utility
  3449.  from the MS OS/2 command line. On the other hand, if MS OS/2 does not need
  3450.  any additional information in order to run the utility correctly, you should
  3451.  start it from File Manager. If you use a utility frequently, you may want to
  3452.  add it to a program group.
  3453.  
  3454.  
  3455.  Some MS OS/2 utilities have already been added to the Utilities group. The
  3456.  following list briefly describes each utility:
  3457.  Utility                           Description
  3458.  ────────────────────────────────────────────────────────────────────────────
  3459.  
  3460.  Copy Diskette                     Copies the contents of one floppy disk
  3461.                                    to another.
  3462.  
  3463.  Compare Diskettes                 Compares the contents of two floppy
  3464.                                    disks, track by track.
  3465.  
  3466.  Label Diskettes                   Assigns a volume label to a disk.
  3467.  
  3468.  Format Diskette                   Prepares a floppy disk for storing files.
  3469.  
  3470.  Disk Information─CHKDSK           Checks a disk for errors and displays a
  3471.                                    summary of how disk space is used.
  3472.  
  3473.  Fixed Disk Utility                Sets up partitions on a hard disk.
  3474.  
  3475.  
  3476.  
  3477.  Utility                           Description
  3478.  ────────────────────────────────────────────────────────────────────────────
  3479.  
  3480.  Print Picture                     Prints graphic document files that have
  3481.                                    picture-interchange format or metafile
  3482.                                    format.
  3483.  
  3484.  Display Picture                   Displays the contents of graphic
  3485.                                    document files on your screen.
  3486.  
  3487.  Convert Picture                   Converts files from picture-interchange
  3488.                                    format to metafile format (the format
  3489.                                    used in Presentation Manager).
  3490.  
  3491.  MS OS/2 includes additional utilities. For more information on using all MS
  3492.  OS/2 utilities, see Chapter 9, "Using MS OS/2 Utilities." For more
  3493.  information on using picture utilities, see Appendix C, "Using Picture
  3494.  Utilities."
  3495.  
  3496.  
  3497.  Saving Program Information
  3498.  
  3499.  Some applications allow you to save information about the size and location
  3500.  of the application windows and icons on your screen. You save program
  3501.  information by using the Save command in Desktop Manager. The next time you
  3502.  start the application, the application appears on your screen in exactly the
  3503.  same state it was in when you used the Save command. To save program
  3504.  information, do the following:
  3505.  
  3506.    1.  Switch to Desktop Manager.
  3507.  
  3508.    2.  Select the Desktop menu and choose the Save command. .ET
  3509.  
  3510.        A message appears, asking you to confirm your decision.
  3511.  
  3512.        (This figure may be found in the printed book).
  3513.  
  3514.    3.  Choose the OK button.
  3515.  
  3516.  
  3517.  .RT
  3518.  
  3519.  
  3520.  Quitting an Application and Closing a Window
  3521.  
  3522.  You can close any window or quit any application running in the Presentation
  3523.  Manager session. Make sure you save any changes that you've made to an
  3524.  application file before quitting the application. To quit an application or
  3525.  close a program-group window by using a mouse, do the following:
  3526.  
  3527.        Mouse 
  3528.  
  3529.    ■   Double-click the System-menu box in the window you want to close.
  3530.  
  3531.  
  3532.  To quit an application or close a group window by using the Close command,
  3533.  do the following:
  3534.  
  3535.    ■   Select the System menu and choose the Close command.
  3536.  
  3537.  
  3538.  To use the Task List to quit an application or close a group window, follow
  3539.  these steps:
  3540.  
  3541.    1.  Display the Task List.
  3542.  
  3543.    2.  Select the application you want to quit or the group you want to
  3544.        close.
  3545.  
  3546.    3.  Choose the End Task button.
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  Quitting All Running Applications at Once
  3552.  
  3553.  Instead of quitting each running application one by one, you can quit all
  3554.  applications at once by using the Close All command in Desktop Manager. To
  3555.  close all your applications at once, follow these steps:
  3556.  
  3557.    1.  Switch to Desktop Manager.
  3558.  
  3559.    2.  Select the Desktop menu and choose the Close All command.
  3560.  
  3561.        The Close All dialog box appears.
  3562.  
  3563.        (This figure may be found in the printed book).
  3564.  
  3565.    3.  If you want to save program information (the size and location of the
  3566.        application windows and icons on your screen), turn on the Save check
  3567.        box.
  3568.  
  3569.    4.  Choose the Close All button.
  3570.  
  3571.  
  3572.  
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.  
  3579.  Chapter 3  Using File Manager
  3580.  ────────────────────────────────────────────────────────────────────────────
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  Introduction
  3586.  
  3587.  This chapter explains File Manager, a Presentation Manager application that
  3588.  you can use to quickly look at and organize your directories and files. From
  3589.  the Directory Tree window you can see the overall directory structure, as
  3590.  well as the contents of individual directories. You use File Manager
  3591.  commands to copy, delete, or rename files.
  3592.  
  3593.  ────────────────────────────────────────────────────────────────────────────
  3594.  Note
  3595.  
  3596.  All examples of filenames and directory names in this chapter use the file
  3597.  allocation table (FAT) file system, which is the file system used by DOS and
  3598.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  3599.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  3600.  High-Performance File System."
  3601.  ────────────────────────────────────────────────────────────────────────────
  3602.  
  3603.  
  3604.  
  3605.  
  3606.  Starting File Manager
  3607.  
  3608.  File Manager is a Presentation Manager application and is started from the
  3609.  Main group in Desktop Manager. To start File Manager, do the following:
  3610.  
  3611.    1.  Switch to the Main-group window.
  3612.  
  3613.    2.  Choose File Manager.
  3614.  
  3615.  
  3616.  File Manager appears on your screen with the Directory Tree win- dow
  3617.  displayed in the work area. The Directory Tree window is used to see the
  3618.  layout of your directories and subdirectories on any disk drive. From this
  3619.  window, you can open windows to look at files and subdirectories in
  3620.  individual directories. You can select different drives in order to look at
  3621.  their directory structure. You can open as many directory windows as you
  3622.  like; however, there is only one Directory Tree window. The following
  3623.  example shows the Directory Tree window.
  3624.  
  3625.  (This figure may be found in the printed book).
  3626.  
  3627.  The MS OS/2 multilevel file system resembles a tree. The tree begins with
  3628.  the root directory─the name of the first directory on the disk drive. The
  3629.  root directory is created when you format a disk. It appears as a backslash
  3630.  (\e).
  3631.  
  3632.  (This figure may be found in the printed book).
  3633.  
  3634.  
  3635.  The branches of the tree are the directories you create from the root
  3636.  directory. Each directory can contain additional directories.
  3637.  The Directory Tree window contains the following parts:
  3638.  
  3639.    ■   The System-menu box in the upper-left corner of the Directory Tree
  3640.        window contains commands you use to move and size the window and to
  3641.        move to other windows in File Manager.
  3642.  
  3643.    ■   The disk-drive icons represent disk drives on your computer. The
  3644.        current disk drive is highlighted. A drive letter and a colon (:)
  3645.        represent a disk drive. The current drive is listed at the top of the
  3646.        Directory Tree window.
  3647.  
  3648.    ■   The directory icons represent each directory on a disk. Directories
  3649.        are listed in alphabetical order beneath the root directory (\e). All
  3650.        directories are joined to the root directory by a vertical line. If a
  3651.        directory contains subdirectories, there is a minus sign inside the
  3652.        directory icon. Subdirectories appear beneath directories, connected
  3653.        by a vertical line.
  3654.  
  3655.    ■   The current directory is the directory marked by the selection cursor
  3656.        in the Directory Tree window. File Manager commands affect this
  3657.        directory.
  3658.  
  3659.    ■   The path appears in the status line underneath the drive icons and
  3660.        shows the current directory in the Directory Tree window.
  3661.  
  3662.    ■   The volume label is a name that identifies your disk; it appears in
  3663.        the status line underneath the drive icons. You see this information
  3664.        only if you give your disk a volume label.
  3665.  
  3666.    ■   Scroll bars appear if there are more directories and subdirectories
  3667.        than will fit in one Directory Tree window.
  3668.  
  3669.  
  3670.  The Directory Tree window resembles an application window in Presentation
  3671.  Manager. You can size and move this window in the File Manager work area.
  3672.  You can enlarge it to fill the entire File Manager work area, or you can
  3673.  reduce it to an icon.
  3674.  
  3675.  
  3676.  Changing Disk Drives
  3677.  
  3678.  When you start File Manager, the Directory Tree window shows the directory
  3679.  structure on the current disk drive─the disk drive on which you are working.
  3680.  The selected disk-drive icon represents the current disk drive.
  3681.  
  3682.  (This figure may be found in the printed book).
  3683.  
  3684.  To look at directories on another disk drive, you must select the disk
  3685.  drive, which then becomes the current disk drive. To select a disk drive, do
  3686.  the following:
  3687.  
  3688.  Mouse                             Keyboard
  3689.  ────────────────────────────────────────────────────────────────────────────
  3690.  
  3691.  Double-click the disk-drive icon.  Press and hold down CTRL, and then press
  3692.                                    the letter of the disk drive you want.
  3693.  
  3694.  
  3695.  
  3696.  Changing Directories in the Directory Tree Window
  3697.  
  3698.  In the Directory Tree window, shown in the following example, the selection
  3699.  cursor shows the current directory.
  3700.  
  3701.  (This figure may be found in the printed book).
  3702.  
  3703.  You can select only one directory at a time in this window. To change to a
  3704.  different directory, you move the selection cursor. To move the selection
  3705.  cursor by using a mouse, do the following:
  3706.  
  3707.        Mouse 
  3708.  
  3709.    ■   Click the directory name.
  3710.  
  3711.  
  3712.  To select a directory by using the keyboard, do the following:
  3713.  
  3714.        Keyboard 
  3715.  
  3716.    ■   Press the UP or DOWN key.
  3717.  
  3718.  
  3719.  The following list describes several additional keys or key combinations you
  3720.  can use to move and select in the Directory Tree window.
  3721.  
  3722.  To select                         Press
  3723.  ────────────────────────────────────────────────────────────────────────────
  3724.  
  3725.  Root directory                    CTRL+HOME
  3726.  
  3727.  Last directory listed             CTRL+END
  3728.  
  3729.  First subdirectory of a selected  RIGHT
  3730.  directory, if one exists
  3731.  
  3732.  Next directory level up from a    LEFT
  3733.  selected directory, if one
  3734.  exists
  3735.  
  3736.  Directory one window up from a    PAGE UP
  3737.  selected directory
  3738.  
  3739.  Directory one window down from a  PAGE DOWN
  3740.  selected directory
  3741.  
  3742.  Directory name or filename        Initial letter
  3743.  
  3744.  
  3745.  
  3746.  Opening a Directory Window
  3747.  
  3748.  The Directory Tree window
  3749.  shows you the overall structure of your directories. To see the contents of
  3750.  a directory, you must open a directory window.
  3751.  
  3752.  Directory windows open in front of the Directory Tree window. All the files
  3753.  and any subdirectories are displayed. The disk drive and path appear at the
  3754.  top of the window in the title bar. The directory path shows the location of
  3755.  the directory in relation to the root directory; directory names are
  3756.  separated by backslashes (\e). From the directory window, you can open
  3757.  additional windows on any of the directories displayed. To open a directory
  3758.  window, do the following:
  3759.  
  3760.  Mouse                             Keyboard
  3761.  ────────────────────────────────────────────────────────────────────────────
  3762.  
  3763.  In the Directory Tree window or   1  In the Directory Tree window or the
  3764.  the directory window,             directory window, press the UP or DOWN
  3765.  double-click the directory name.  key to move to and select the directory
  3766.                                    you want to open.
  3767.  
  3768.                                    2  Press ENTER.
  3769.  
  3770.  
  3771.  (This figure may be found in the printed book).
  3772.  
  3773.  Files and directories are distinguished by the following icons in File
  3774.  Manager windows:
  3775.  
  3776.  Icon                              Description
  3777.  ────────────────────────────────────────────────────────────────────────────
  3778.  
  3779.                                    A program-file icon. Files that contain
  3780.                                    programs, such as applications or batch
  3781.                                    files, are called program files.
  3782.  
  3783.                                    A data-file icon. Other files, such as
  3784.                                    text files, are called data files.
  3785.  
  3786.                                    A directory icon. Directories appear at
  3787.                                    the top of lists of files.
  3788.  
  3789.                                    A parent-directory icon. The first
  3790.                                    directory icon contains an arrow. This
  3791.                                    represents the directory one level
  3792.                                    up─the parent directory─from the current
  3793.                                    directory. The name of the parent
  3794.                                    directory appears inside brackets (< >).
  3795.                                    All directories have a parent directory
  3796.                                    except the root directory.
  3797.  
  3798.  Other icons may appear in a directory window. Some applications create
  3799.  customized icons to represent program files or different types of data files
  3800.  created by the application. For example, a program that includes both
  3801.  spreadsheet and graphics features may have a special icon to identify the
  3802.  program file, a different icon to identify charts created with the
  3803.  application, and another icon to identify worksheets.
  3804.  
  3805.  You can change the way directory and file information is displayed in
  3806.  directory windows by using the commands on the View menu. These commands are
  3807.  described in the section "Changing Information in the Directory Window,"
  3808.  later in this chapter.
  3809.  
  3810.  
  3811.  Selecting in a Directory Window
  3812.  
  3813.  In
  3814.  directory windows, you must select directories and files before you can use
  3815.  most File Manager commands.
  3816.  
  3817.  
  3818.  Selecting a Directory or File
  3819.  
  3820.  To select a directory or file by using a mouse, do the following:
  3821.  
  3822.        Mouse 
  3823.  
  3824.    ■   Click the directory name or filename.
  3825.  
  3826.  
  3827.  The following list explains how to select directories or files by using the
  3828.  keyboard:
  3829.  
  3830.  To select                         Press
  3831.  ────────────────────────────────────────────────────────────────────────────
  3832.  
  3833.  Directory name or filename        UP or DOWN
  3834.  
  3835.  Last directory or file listed     END
  3836.  
  3837.  First directory or file listed    HOME
  3838.  
  3839.  File or directory one directory   PAGE UP
  3840.  window up
  3841.  
  3842.  File or directory one directory   PAGE DOWN
  3843.  window down
  3844.  
  3845.  Directory name or filename        Initial letter
  3846.  
  3847.  
  3848.  
  3849.  ────────────────────────────────────────────────────────────────────────────
  3850.  Note
  3851.  
  3852.  The PAGE UP and PAGE DOWN keys scroll the directory window up or down one
  3853.  window. The selection cursor remains in the same relative position in the
  3854.  window; for example, if the first file in the window is selected before you
  3855.  press the key, the first file in the new directory listing is selected. If
  3856.  you size the directory window so that it displays all files and directories,
  3857.  the selection cursor does not move when you press PAGE UP or PAGE DOWN.
  3858.  ────────────────────────────────────────────────────────────────────────────
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  Extending a Selection
  3864.  
  3865.  In directory windows, you can select more than one item at a time. This is
  3866.  called extending a selection. For example, you can select several files and
  3867.  copy them to another directory.
  3868.  
  3869.  (This figure may be found in the printed book).
  3870.  
  3871.  To extend a selection by using a mouse, follow these steps:
  3872.  
  3873.        Mouse 
  3874.  
  3875.    1.  Select the first item you want in the group by clicking the filename
  3876.        or directory name.
  3877.  
  3878.    2.  Press and hold down SHIFT and click the last item you want in the
  3879.        group.
  3880.  
  3881.  
  3882.  Or
  3883.  
  3884.    ■   Click the first item in the group that you want to select, press and
  3885.        hold down the left mouse button, and drag the mouse pointer to the
  3886.        last item you want in the group.
  3887.  
  3888.  
  3889.  To extend a selection by using the keyboard, follow these steps:
  3890.  
  3891.        Keyboard 
  3892.  
  3893.    1.  Press the DIRECTION keys to move to the first item you want to select.
  3894.  
  3895.    2.  While holding down SHIFT, press the DIRECTION keys to move to and
  3896.        select the remaining items you want in the group.
  3897.  
  3898.  
  3899.  
  3900.  
  3901.  Selecting Scattered Items
  3902.  
  3903.  You can also extend a selection to include scattered files or directories.
  3904.  
  3905.  (This figure may be found in the printed book).
  3906.  
  3907.  To select scattered items, do the following:
  3908.  
  3909.  Mouse                             Keyboard
  3910.  ────────────────────────────────────────────────────────────────────────────
  3911.  
  3912.  Press and hold down CTRL and      1  Press SHIFT+F8. .LP The selection
  3913.  click each item.                  cursor begins to blink.
  3914.  
  3915.                                    2  Press the DIRECTION keys to move to
  3916.                                    each item.
  3917.  
  3918.                                    3  Press the SPACEBAR to select each
  3919.                                    item.
  3920.  
  3921.  You can select scattered groups of items by combining selection techniques.
  3922.  To select more than one group of items by using the mouse, follow these
  3923.  steps:
  3924.  
  3925.        Mouse 
  3926.  
  3927.    1.  Select the first group of items (by dragging the mouse pointer or by
  3928.        clicking the first item and then pressing SHIFT and clicking the last
  3929.        item in the group).
  3930.  
  3931.    2.  To select the second group of items, press CTRL and drag the mouse
  3932.        pointer from the first item to the last item in the group (or press
  3933.        CTRL and click the first item in the group and press SHIFT+CTRL and
  3934.        click the last item in the group).
  3935.  
  3936.  
  3937.  To select more than one group of files by using the keyboard, follow these
  3938.  steps:
  3939.  
  3940.        Keyboard 
  3941.  
  3942.    1.  Select the first group of items (by pressing SHIFT while pressing the
  3943.        DIRECTION keys to move to and select the items).
  3944.  
  3945.    2.  Press SHIFT+F8.
  3946.  
  3947.        The selection cursor begins to blink.
  3948.  
  3949.    3.  Press the DIRECTION keys to move to the first item in the next group
  3950.        of items.
  3951.  
  3952.    4.  Press the SPACEBAR to select the first item.
  3953.  
  3954.    5.  Press the SHIFT+DIRECTION keys to move to and select the remaining
  3955.        items in the group.
  3956.  
  3957.  
  3958.  
  3959.  
  3960.  Selecting All Files
  3961.  
  3962.  To select all items in a directory window, follow these steps:
  3963.  
  3964.    1.  Select the File menu.
  3965.  
  3966.    2.  Choose the Select All command.
  3967.  
  3968.  
  3969.  
  3970.  
  3971.  Canceling a Selection
  3972.  
  3973.  To cancel a selection, do the following:
  3974.  
  3975.  Mouse                             Keyboard
  3976.  ────────────────────────────────────────────────────────────────────────────
  3977.  
  3978.  Press and hold down CTRL and      1  Press SHIFT+F8 (if you already
  3979.  click the item.                   pressed SHIFT+F8 to select items, ignore
  3980.                                    this step). .LP The selection cursor
  3981.                                    begins to blink.
  3982.  
  3983.                                    2  Press the DIRECTION keys to move to
  3984.                                    the item.
  3985.  
  3986.                                    3  Press the SPACEBAR.
  3987.  
  3988.  You can also use two File Manager commands on the File menu to cancel
  3989.  selections in directory windows: Deselect All and Undo Selection. When you
  3990.  use these commands, the selection cursor does not move.
  3991.  
  3992.  (This figure may be found in the printed book).
  3993.  
  3994.  To cancel all selections, do the following:
  3995.  
  3996.    1.  Select the File menu.
  3997.  
  3998.    2.  Choose the Deselect All command.
  3999.  
  4000.  
  4001.  You can cancel your most recent selection in a directory window by using the
  4002.  Undo Selection command. To undo your last selection, follow these steps:
  4003.  
  4004.    1.  Select the File menu.
  4005.  
  4006.    2.  Choose the Undo Selection command.
  4007.  
  4008.  
  4009.  
  4010.  
  4011.  Using the System Menu in a File Manager Window
  4012.  
  4013.  Each window in File Manager has a System menu. It is located in the
  4014.  upper-left corner of the window.
  4015.  
  4016.  (This figure may be found in the printed book).
  4017.  
  4018.  To select the System menu, do the following:
  4019.  
  4020.  Mouse                             Keyboard
  4021.  ────────────────────────────────────────────────────────────────────────────
  4022.  
  4023.  Click the System-menu box.        Press SHIFT+ESC and then press the RIGHT
  4024.                                    key, or press CTRL+ - (hyphen key). .
  4025.  
  4026.  The following list describes the commands on the System menu in File Manager
  4027.  windows:
  4028.  
  4029.  Command                           Action
  4030.  ────────────────────────────────────────────────────────────────────────────
  4031.  
  4032.  Restore                           Restores a window to its former size
  4033.                                    after it has been enlarged (by using the
  4034.                                    Maximize command) or reduced to an icon
  4035.                                    (by using the Minimize command).
  4036.  
  4037.  Switch Window                     Selects the next window in the work area.
  4038.  
  4039.  Move                              Moves the active window in the work area.
  4040.  
  4041.  Size                              Changes the size of the active window.
  4042.  
  4043.  
  4044.  Command                           Action
  4045.  ────────────────────────────────────────────────────────────────────────────
  4046.  
  4047.  Minimize                          Reduces a window to an icon.
  4048.  
  4049.  Maximize                          Enlarges a window to its maximum size.
  4050.  
  4051.  Close                             Closes the active window.
  4052.  
  4053.  Split                             Moves the vertical split bar that
  4054.                                    divides the directory window when the
  4055.                                    file-details option is selected.
  4056.  
  4057.  
  4058.  
  4059.  Selecting a Window
  4060.  
  4061.  If more than one window is open in File Manager, you must select the window
  4062.  you want to work in. There are several ways to do this by using a mouse or
  4063.  the keyboard. To select a window, do the following:
  4064.  
  4065.  Mouse                             Keyboard
  4066.  ────────────────────────────────────────────────────────────────────────────
  4067.  
  4068.  Click the window.                 1  In the active window, press CTRL+ -
  4069.                                    (hyphen key) to select the System menu.
  4070.  
  4071.                                    2  Press W to choose the Switch Window
  4072.                                    command.
  4073.  
  4074.                                    3  Repeat this process until the window
  4075.                                    you want becomes the active window.
  4076.  
  4077.  .ET You can also use the Window menu to select windows. The Window menu
  4078.  lists all windows, including the Directory Tree window and any open
  4079.  directory windows (listed by directory name). As you open directory windows,
  4080.  each directory name is added to the Window menu.
  4081.  
  4082.  (This figure may be found in the printed book).
  4083.  
  4084.  .RT To select a window by using the Window menu, do the following:
  4085.  
  4086.    1.  Select the Window menu.
  4087.  
  4088.    2.  Choose the window you want.
  4089.  
  4090.  
  4091.  
  4092.  
  4093.  Using File Manager Commands
  4094.  
  4095.  
  4096.  Before you start working with File Manager commands, you should become
  4097.  familiar with MS OS/2 naming conventions for files, directories, and disk
  4098.  drives. Although with File Manager you can use the selection cursor to
  4099.  select files, directories, or disk drives, you may occasionally need to type
  4100.  the names for these items─for example, in a dialog box or while you are
  4101.  working with the MS OS/2 command interpreter (cmd).
  4102.  
  4103.  Naming a File or Directory
  4104.  
  4105.  The rules you follow to name your files and directories depend on which file
  4106.  system you are using. The file system is the part of the operating system
  4107.  that controls how files and directories are orga- nized, stored, and
  4108.  retrieved on your computer.
  4109.  
  4110.  Two file systems are provided with MS OS/2: the high-performance file system
  4111.  (HPFS) and the file allocation table (FAT) file system. HPFS is a new file
  4112.  system that can be set up only on your hard disk; the FAT file system was
  4113.  used in DOS and earlier versions of MS OS/2. You can format both hard disks
  4114.  and floppy disks to use the FAT file system. If you formatted your hard disk
  4115.  when you set up MS OS/2 on your computer, you were given a choice of which
  4116.  file system you wanted to install on your hard disk. To change the file
  4117.  system you are currently using or for more details on how to set up HPFS,
  4118.  see Chapter 16, "Using the High-Performance File System."
  4119.  
  4120.  One of the main differences between the FAT file system and HPFS is in how
  4121.  you name files and directories. If you are using HPFS, you should be
  4122.  familiar with both FAT and HPFS naming rules because floppy disks cannot be
  4123.  formatted for HPFS. If you are familiar with DOS or previous versions of MS
  4124.  OS/2, you have used the FAT file system. Filenames and directory names can
  4125.  be up to eight characters long. You can add an extension, three additional
  4126.  characters, to a filename or directory name, but these must be separated
  4127.  from the name by a period (.). Often, applications automatically add
  4128.  extensions when you create files.
  4129.  
  4130.  (This figure may be found in the printed book).
  4131.  
  4132.  In HPFS, filenames can be up to 254 characters long. The period (.) is a
  4133.  valid filename character, and you can use as many as you like in a filename.
  4134.  The following characters can also be used in HPFS:
  4135.  
  4136.   , + = [ ] ;
  4137.  
  4138.  
  4139.  Blank spaces can also be used anywhere in a filename or directory name.
  4140.  There is no requirement that filenames have extensions; however, many
  4141.  applications still create and use them.
  4142.  
  4143.  The case you give to HPFS filenames will be preserved for directory
  4144.  listings; you can have a file that is all uppercase, all lowercase, or mixed
  4145.  case, and it will be listed as you typed it. However, case is ignored in
  4146.  file searches and all system operations other than directory listings.
  4147.  Therefore, in a given directory, you cannot have more than one file with the
  4148.  same name where the only difference is case. For example, you cannot have
  4149.  files in the same directory named "my.taxfile.txt" and "MY.TAXFILE.TXT". For
  4150.  more information on HPFS file-naming rules, see Chapter 16, "Using the
  4151.  High-Performance File System."
  4152.  
  4153.  All FAT filenames are valid in HPFS. Floppy disks use the FAT file system
  4154.  only, so long filenames created in HPFS must be shortened when you move or
  4155.  copy these files to floppy disks. The Move and Copy commands in File Manager
  4156.  detect the file-system format of a disk and provide short names for your
  4157.  files (for more information on this process, see "Transferring Files Between
  4158.  File Systems," later in this chapter). HPFS filenames that contain
  4159.  characters or blank spaces not allowed in the FAT file system cannot be
  4160.  moved or copied to floppy disks. If you attempt to do so, you will see a
  4161.  message stating that the filename contains an incorrect character. You must
  4162.  change the filename before moving or copying the file. In the DOS session,
  4163.  the FAT naming rules apply: Filenames are limited to eight characters with
  4164.  three-character extensions. You cannot use files with long HPFS filenames
  4165.  with your DOS applications. These long filenames do not appear in directory
  4166.  listings in the DOS session.
  4167.  
  4168.  The following characters cannot be used in directory names or filenames
  4169.  regardless of the file system you have set up because they are reserved for
  4170.  MS OS/2:
  4171.  
  4172.  < > : " / \e |
  4173.  
  4174.  
  4175.  Wildcard characters\, the question mark (?) and asterisk (*), have special
  4176.  meaning. These characters can take the place of other characters when you
  4177.  are specifying filenames in File Manager─for example, when copying files
  4178.  from one directory to another.
  4179.  
  4180.  The question mark (?) replaces any single character─for example, AUG?
  4181.  matches the files AUGU, AUG, and AUG1.
  4182.  
  4183.  The asterisk (*) replaces zero or more characters in a filename and matches
  4184.  any character; for example, AUG* matches any filename that begins with AUG,
  4185.  as well as filenames such as AUGUST.DOC, AUGUSTFIRST, or simply AUG.
  4186.  
  4187.  If you are using MS OS/2 commands such as copy or dir, the wildcard
  4188.  characters can function differently depending on the command. For more
  4189.  information, see Chapter 8, "Running Cmd."
  4190.  
  4191.  
  4192.  Specifying a File Location
  4193.  
  4194.  When you are using commands in File Manager,
  4195.  you can specify the exact location of a file or directory. This is called
  4196.  giving the path. The path includes all of the directory information MS OS/2
  4197.  needs to find a particular file. A path has the following form:
  4198.  
  4199.  [\edirectory...][\edirectory...]\edirectory
  4200.  
  4201.  
  4202.  The information inside the square brackets ([ ]) is optional, indicating
  4203.  that you could have more than one directory in a path. Each directory name
  4204.  is separated by a backslash (\e). The first backslash represents the root
  4205.  directory. You specify a path with a filename only if the file is not in the
  4206.  current directory. A path is shown in the following example.
  4207.  
  4208.  (This figure may be found in the printed book).
  4209.  
  4210.  You add a disk-drive designation to a path if you are working with files and
  4211.  directories on different disk drives. The disk-drive designation has the
  4212.  following form:
  4213.  
  4214.  drive:
  4215.  
  4216.  
  4217.  The following example shows the drive designation, path, and filename of a
  4218.  file─the PASTDUE.DOC file in the ACCOUNTS directory on drive A will be
  4219.  copied to the COLLECTION directory on drive C.
  4220.  
  4221.  (This figure may be found in the printed book).
  4222.  
  4223.  
  4224.  
  4225.  Changing Information in the Directory Tree Window
  4226.  
  4227.  You can control the amount of directory information shown in the Directory
  4228.  Tree window by using the Tree menu commands.
  4229.  
  4230.  (This figure may be found in the printed book).
  4231.  
  4232.  When you first start File Manager, the entire directory structure is shown.
  4233.  All directories and subdirectories are listed in the Directory Tree window.
  4234.  
  4235.  (This figure may be found in the printed book).
  4236.  
  4237.  
  4238.  
  4239.  Collapsing a Directory Level
  4240.  
  4241.  A minus sign (-) appears next to any directory that contains a subdirectory.
  4242.  You use the minus signs to "collapse," or hide, individual subdirectories.
  4243.  
  4244.  (This figure may be found in the printed book).
  4245.  
  4246.  Once a directory is collapsed, only the directory name is displayed; the
  4247.  minus sign changes to a plus sign (+) to indicate the hidden subdirectories.
  4248.  
  4249.  
  4250.  (This figure may be found in the printed book).
  4251.  
  4252.  To collapse a directory level by using a mouse, do the following:
  4253.  
  4254.        Mouse 
  4255.  
  4256.    ■   Click the minus sign (-) to the left of the name of the directory you
  4257.        want to collapse.
  4258.  
  4259.        (This figure may be found in the printed book).
  4260.  
  4261.  
  4262.  To collapse a directory level by using the keyboard, do the following:
  4263.  
  4264.        Keyboard 
  4265.  
  4266.    1.  Press the DIRECTION keys to move to and select the directory you want
  4267.        to collapse.
  4268.  
  4269.    2.  Select the Tree menu and choose the Collapse Branch command, or press
  4270.        - (minus key or hyphen key).
  4271.  
  4272.  
  4273.  
  4274.  
  4275.  Expanding a Directory
  4276.  
  4277.  You can expand a directory to see its
  4278.  subdirectories. To expand a directory, follow this step:
  4279.  
  4280.  Mouse                             Keyboard
  4281.  ────────────────────────────────────────────────────────────────────────────
  4282.  
  4283.  Click the plus sign (+) next to   1  Press the DIRECTION keys to move to
  4284.  the directory you want to expand.  and select the directory you want to
  4285.                                    expand.
  4286.  
  4287.                                    2  Select the Tree menu and choose the
  4288.                                    Expand One Level command, or press +
  4289.                                    (plus key).
  4290.  
  4291.  Another command on the Tree menu, Expand Branch, is used to show all
  4292.  directory levels beneath a selected directory.
  4293.  
  4294.  (This figure may be found in the printed book).
  4295.  
  4296.  Follow these steps to use the Expand Branch command:
  4297.  
  4298.    1.  Select the directory you want to expand.
  4299.  
  4300.    2.  Select the Tree menu and choose the Expand Branch command.
  4301.  
  4302.  
  4303.  To display all the directory levels in the Directory Tree window at once, do
  4304.  the following:
  4305.  
  4306.    ■   Select the Tree menu and choose the Expand All command.
  4307.  
  4308.  
  4309.  
  4310.  
  4311.  Changing Information in a Directory Window
  4312.  
  4313.  
  4314.  When you first start File Manager and open a directory window, files are
  4315.  listed by filename and are sorted in alphabetical order. The commands on the
  4316.  View menu, shown in the following example, are used to change and control
  4317.  how the files and directories appear in directory windows. You can choose to
  4318.  display just the filenames, or just file and directory icons, or complete
  4319.  file information. You can also sort files and can include or omit different
  4320.  types of files from the directory listings.
  4321.  (This figure may be found in the printed book).
  4322.  
  4323.  If the Directory Tree window is the active File Manager window when you use
  4324.  a command on the View menu, all directory windows you open afterward will be
  4325.  affected (directory windows already open remain unchanged). If a directory
  4326.  window is active, the command usually affects only that window. However,
  4327.  three commands on the View menu─Other, Sort By, and Include─have an option
  4328.  called Set System Default. If you select this option when using one of these
  4329.  commands, any choices you make in the dialog box become default settings and
  4330.  any directory windows you open afterward will be affected.
  4331.  
  4332.  
  4333.  Changing the File Listing
  4334.  
  4335.  
  4336.  You can change how file information appears in directory windows by using the
  4337.  Name, File Details, Icon, or Other commands on the View menu. A check mark
  4338.  appears next to the command when it is in effect. These commands are grouped
  4339.  together on the View menu because one must be in effect at all times. When
  4340.  you first start File Manager, the Name command is checked. This means that
  4341.  only filenames and directory names appear in a directory window.
  4342.  The following list summarizes the effect of each command on the directory
  4343.  window:
  4344.  
  4345.  Command                           Displays
  4346.  ────────────────────────────────────────────────────────────────────────────
  4347.  
  4348.  Name                              Filenames and directory names
  4349.  
  4350.  File Details                      Complete file and directory information
  4351.  
  4352.  Icon                              Files and directories as icons (names
  4353.                                    appear underneath)
  4354.  
  4355.  Other                             Selected file information
  4356.  
  4357.  The icon view of a directory window is a graphic presentation of file
  4358.  information. Icons that usually appear next to a filename or directory name
  4359.  are enlarged, and the name appears underneath, as shown in the following
  4360.  example.
  4361.  
  4362.  (This figure may be found in the printed book).
  4363.  
  4364.  To display directory information as icons, do the following:
  4365.  
  4366.    1.  Select the directory window you want to change (to change all the
  4367.        directory windows, select the Directory Tree window).
  4368.  
  4369.    2.  Select the View menu and choose the Icon command.
  4370.  
  4371.  
  4372.  The File Details command on the View menu lets you see file information such
  4373.  as file size, the date and time the file was last changed, and the file
  4374.  flags (for example, Read-only and Archive) for all files in a particular
  4375.  directory. To view all file information in a directory window, do the
  4376.  following:
  4377.  
  4378.    1.  Select the directory window you want to change (to change all the
  4379.        directory windows, select the Directory Tree window).
  4380.  
  4381.    2.  Select the View menu and choose the File Details command.
  4382.  
  4383.  
  4384.  Once you choose the File Details command, the window splits vertically. The
  4385.  filename appears on the left; file details appear on the right─for example,
  4386.  size, last modification date, and the file flags.
  4387.  
  4388.  (This figure may be found in the printed book).
  4389.  
  4390.  Splitting a directory window makes it possible to view long filenames. (If
  4391.  you set up the high-performance file system on the disk drive, file- names
  4392.  can be up to 254 characters long.) You can use the scroll bars at the bottom
  4393.  of the window to look at information not visible, or you can reposition the
  4394.  split bar. To move the split bar, do the following:
  4395.  
  4396.  Mouse                             Keyboard
  4397.  ────────────────────────────────────────────────────────────────────────────
  4398.  
  4399.  Drag the split bar to the         1  Select the directory window System
  4400.  position you want.                menu by pressing CTRL+ - (hyphen key)
  4401.                                    and choose the Split command (the Split
  4402.                                    command is added to the System menu when
  4403.                                    you choose File Details).
  4404.  
  4405.                                    2  Press the RIGHT or LEFT key to move
  4406.                                    the border to the position you want and
  4407.                                    press ENTER.
  4408.  
  4409.  The procedure for selecting files in a split window is the same as in any
  4410.  other window; however, you can also select either side of the window. The
  4411.  selection cursor moves from one side to the other, depending on the side you
  4412.  select. To move the selection cursor, do the following:
  4413.  
  4414.  Mouse                             Keyboard
  4415.  ────────────────────────────────────────────────────────────────────────────
  4416.  
  4417.  Click the side of the window you  Press F6.
  4418.  want to select.
  4419.  
  4420.  You can select which file details appear in the directory listing by using
  4421.  the Other command on the View menu. The directory window splits, as with the
  4422.  File Details command, and the file details you select appear in columns in
  4423.  the right side of the window.
  4424.  
  4425.  If the Directory Tree window is active when you choose the Other command,
  4426.  the settings you create with the command become the system default settings.
  4427.  If a directory window is active, then the settings affect only the active
  4428.  window. An option is provided, Set System Default, so that you can create
  4429.  new system default settings from a directory window as well as from the
  4430.  Directory Tree window. If you use this option, only the active window and
  4431.  any new windows you open will display default settings. Directory windows
  4432.  that are already open remain unchanged. To control which file details appear
  4433.  in a directory listing, follow these steps:
  4434.  
  4435.    1.  Select the window you want to change.
  4436.  
  4437.    2.  Select the View menu and choose the Other command.
  4438.  
  4439.        The View Other dialog box appears.
  4440.  
  4441.    3.  Select the file details you want in your directory listing. For more
  4442.        information on completing this dialog box, see the information
  4443.        following this procedure.
  4444.  
  4445.    4.  Turn on the Set System Default check box if you want the settings to
  4446.        become the default settings and affect other directory windows you
  4447.        open (directory windows that are already open remain unchanged).
  4448.  
  4449.    5.  Choose the View Now button (if the Directory Tree window is active,
  4450.        choose the Set View button).
  4451.  
  4452.  
  4453.  
  4454.  You can choose to display one or all of the following file details:
  4455.  Option                            Displays
  4456.  ────────────────────────────────────────────────────────────────────────────
  4457.  
  4458.  Size                              File or directory size (in bytes)
  4459.  
  4460.  Last Modification Date            Date the file or directory was last
  4461.                                    changed
  4462.  
  4463.  Last Access Date                  Date the file was last opened
  4464.  
  4465.  Creation Date                     Date the file was created
  4466.  
  4467.  File Flags                        Information on the file flags set for
  4468.                                    the file (R for Read-only, A for Archive,
  4469.                                    H for Hidden)
  4470.  
  4471.  
  4472.  
  4473.  ────────────────────────────────────────────────────────────────────────────
  4474.  Note
  4475.  
  4476.  The creation date and last access date information is available only in the
  4477.  high-performance file system (HPFS). If your disk drive is formatted with
  4478.  the file allocation table (FAT) file system, this information is not
  4479.  displayed.
  4480.  ────────────────────────────────────────────────────────────────────────────
  4481.  
  4482.  
  4483.  
  4484.  
  4485.  Sorting a File Listing
  4486.  
  4487.  You can control how file information in a directory window is sorted by
  4488.  using three commands on the View menu: By Name, By Type, and Sort By.
  4489.  
  4490.  (This figure may be found in the printed book).
  4491.  
  4492.  A check mark appears next to the command that is in effect. These commands
  4493.  are grouped together because one of them must be in effect at all times.
  4494.  
  4495.  When you first start File Manager, the By Name command is checked. This
  4496.  means that files and directories appear in alphabetical order. Directories
  4497.  always appear first in the listing─the first directory is the parent
  4498.  directory (the directory one level up). The root directory does not have a
  4499.  parent directory.
  4500.  
  4501.  If the Directory Tree
  4502.  window is active when you choose a sort command, the settings you create
  4503.  with the command become the system default settings. If a directory window
  4504.  is active, then the settings affect only the active window. The Sort By
  4505.  command includes an option, Set System Default, so that you can create new
  4506.  system default settings from a directory window as well as from the
  4507.  Directory Tree window. If you use this option, only the active window and
  4508.  new windows you open will display default settings. Directory windows that
  4509.  are already open remain unchanged.
  4510.  
  4511.  You can sort files according to file type. This means that files are sorted
  4512.  alphabetically according to their extension─the last three characters of the
  4513.  filename (for example, filenames ending with .CMD, would appear before
  4514.  filenames ending with .EXE). You can also sort files based on other file
  4515.  information, such as the date a file was created. Using the Sort By command,
  4516.  you can sort files in the following ways:
  4517.  
  4518.  Option                            Sorts files
  4519.  ────────────────────────────────────────────────────────────────────────────
  4520.  
  4521.  Name                              Alphabetically by name
  4522.  
  4523.  Type                              Alphabetically by extension
  4524.  
  4525.  Size                              By size (largest file first)
  4526.  
  4527.  Last Modification Date            By date and time each file was last
  4528.                                    changed
  4529.  
  4530.  Last Access Date                  By date and time each file was last
  4531.                                    accessed
  4532.  
  4533.  Creation Date                     By the date and time each file was
  4534.                                    created
  4535.  
  4536.  The file information about creation date and last access date is available
  4537.  only if you installed the high-performance file system (HPFS) on your disk.
  4538.  If the disk is formatted with the file allocation table (FAT) file system
  4539.  and you specify Last Access Date or Creation Date, then files are sorted by
  4540.  name. To change how files are sorted, follow these steps:
  4541.  
  4542.    1.  Select the directory window that contains the files you want to sort.
  4543.        If you select the Directory Tree window, the sorting order becomes the
  4544.        default order for the windows you open afterward.
  4545.  
  4546.    2.  Select the View menu and choose the Sort By command.
  4547.  
  4548.        The Sort By dialog box appears.
  4549.  
  4550.    3.  In the Sort box, select the sorting order you want.
  4551.  
  4552.    4.  Turn on the Set System Default check box if you want the settings to
  4553.        become the default settings and affect other directory windows you
  4554.        open (directory windows that are already opened remain unchanged).
  4555.  
  4556.    5.  Choose the View Now button (if the Directory Tree window is active,
  4557.        choose the Set View button).
  4558.  
  4559.  
  4560.  You can use the By Name and By Type commands as shortcuts to sorting files
  4561.  alphabetically by name (the default setting) or alphabetically by the
  4562.  filename extension. To quickly sort files by name or type, do the following:
  4563.  
  4564.  
  4565.    1.  Select the directory window.
  4566.  
  4567.    2.  Select the View menu and choose the By Name command to sort files by
  4568.        name; choose the By Type command to sort files alphabetically by
  4569.        filename extension.
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  Including a File in a File Listing
  4575.  
  4576.  You can control which files and directories appear in a directory window by
  4577.  using the Include command on the View menu. By default, all files and
  4578.  directories are included when you open a window. You can include or omit
  4579.  files from the directory window according to type (directory, program, or
  4580.  data file).
  4581.  
  4582.  The Include command allows you to display the following files:
  4583.  
  4584.    ■   Directories
  4585.  
  4586.    ■   Program files (identified by a extension)
  4587.  
  4588.    ■   Data files (files other than program files and directories)
  4589.  
  4590.  
  4591.  You can also include or omit files according to their file flags (file flags
  4592.  are part of the directory information that identifies a file to MS OS/2).
  4593.  Because files often have more than one file flag set, the Include command
  4594.  lets you select a group of files with matching flags, and within that group
  4595.  of files, omit or keep files with other file flags.
  4596.  
  4597.  You can display files according to the following file flags:
  4598.  
  4599.  Flag                              Description
  4600.  ────────────────────────────────────────────────────────────────────────────
  4601.  
  4602.  Read-only                         Files that cannot be edited or changed
  4603.  
  4604.  Archive                           Files that have been backed up or copied
  4605.                                    using MS OS/2 utilities such as backup
  4606.                                    and xcopy
  4607.  
  4608.  Hidden                            Files that do not appear in directory
  4609.                                    listings
  4610.  
  4611.  Other                             Directories or files with no flags set
  4612.  
  4613.  If the Directory Tree window is active when you choose the Include command,
  4614.  the settings you create with the command become the system default settings.
  4615.  If a directory window is active, then the settings affect only the active
  4616.  window. An option, Set System Default, is provided so that you can create
  4617.  new system default settings from a directory window, as well as from the
  4618.  Directory Tree window. If you use this option, only the active window and
  4619.  new windows you open will display default settings. Directory windows that
  4620.  are already open remain unchanged. To change the files that appear in a
  4621.  directory window, following these steps:
  4622.  
  4623.    1.  Select the View menu and choose the Include command.
  4624.  
  4625.        The Include dialog box appears.
  4626.  
  4627.        (This figure may be found in the printed book).
  4628.  
  4629.    2.  You can view files according to filename. The default is *, indicating
  4630.        that all files will appear. To specify a different filename, type the
  4631.        new name in the Name box. You can use the wildcard characters, * and
  4632.        ?, to specify portions of filenames.
  4633.  
  4634.    3.  Move to the File Type section and turn on the check boxes for the
  4635.        types of files you want to appear in the directory window:
  4636.        directories, programs, or data files. You can choose more than one.
  4637.  
  4638.    4.  Move to the File Flags section.
  4639.  
  4640.        (This figure may be found in the printed book).
  4641.  
  4642.    5.  For each file flag, select the option you want. You have three
  4643.        options: Show, But Omit, But Keep.
  4644.  
  4645.        The Show option creates a group of files with the file flags you
  4646.        select. The But Omit option checks the group of files and removes any
  4647.        files with that particular flag set. The But Keep option checks the
  4648.        group of files and keeps any files with that particular flag set.
  4649.  
  4650.    6.  Select the Set System Default option if you want the settings to
  4651.        become the default settings and affect any other directory win- dows
  4652.        you open (directory windows that are already open remain unchanged).
  4653.  
  4654.    7.  Choose the View Now button (if the Directory Tree window is active,
  4655.        choose the Set View button).
  4656.  
  4657.  
  4658.  
  4659.  
  4660.  Updating a File Manager Window
  4661.  
  4662.  As you use File Manager commands to organize and manage your files, the
  4663.  information in directory windows may become out-of-date or inaccurate. You
  4664.  can use the Refresh command on the Window menu to update your directory
  4665.  windows or the icons representing your programs.
  4666.  
  4667.  You can choose to refresh only directory windows or only the icons that
  4668.  represent your programs, or you can choose to refresh both at the same time.
  4669.  To use the Refresh command, do the following: .ET
  4670.  
  4671.    1.  Select the Window menu and choose the Refresh command.
  4672.  
  4673.        The Refresh dialog box appears.
  4674.  
  4675.    2.  Turn on the Refresh Contents check box to update your directory
  4676.        windows; turn on the Refresh Icons check box to update your program
  4677.        icons.
  4678.  
  4679.    3.  Choose the Refresh button.
  4680.  
  4681.  
  4682.  .RT
  4683.  
  4684.  
  4685.  Changing the Font in File Manager Windows
  4686.  
  4687.  You can change the text size and font in File Manager windows using the
  4688.  Fonts command on the Options menu. To change the text size and font in File
  4689.  Manager windows, follow these steps:
  4690.  
  4691.    1.  Select the Options menu and choose the Fonts command.
  4692.  
  4693.        The Fonts dialog box appears.
  4694.  
  4695.        (This figure may be found in the printed book).
  4696.  
  4697.    2.  In the Font box, select the font you want.
  4698.  
  4699.    3.  Move to the Size box and select the text size you want.
  4700.  
  4701.    4.  Move to the Typestyle section and turn on the Bold check box for
  4702.        boldface text; turn on the Italic check box for italic text.
  4703.  
  4704.        A sample of how the text will look appears in the Font Sample box.
  4705.  
  4706.    5.  Choose the Set button.
  4707.  
  4708.  
  4709.  
  4710.  
  4711.  Reducing a File Manager Window to an Icon
  4712.  
  4713.  You can reduce a File Manager window to an icon when you have finished
  4714.  working with it but want it available for later use. The directory is still
  4715.  open (represented by an icon at the bottom of the File Manager work area).
  4716.  You can select and move icons on your screen the same way you select and
  4717.  move windows. You can also move or copy files or directories by using the
  4718.  mouse, just as if the window were open. When you want to see the contents of
  4719.  the window, you can use the Maximize or Restore command to enlarge it. To
  4720.  reduce a File Manager window to an icon by using a mouse, do the following:
  4721.  
  4722.        Mouse 
  4723.  
  4724.    1.  Select the window you want to reduce by clicking it.
  4725.  
  4726.    2.  Click the Minimize box.
  4727.  
  4728.        (This figure may be found in the printed book).
  4729.  
  4730.  
  4731.  If you are using the keyboard, follow these steps to reduce a window to an
  4732.  icon:
  4733.  
  4734.        Keyboard 
  4735.  
  4736.    1.  Select the window you want to reduce by selecting the Window menu and
  4737.        choosing the window.
  4738.  
  4739.    2.  Select the System menu by pressing CTRL+ - (hyphen key).
  4740.  
  4741.    3.  Press N to choose the Minimize command.
  4742.  
  4743.  
  4744.  
  4745.  
  4746.  Enlarging a File Manager Window or Icon
  4747.  
  4748.  You can enlarge a File Manager window so it fills the File Manager work
  4749.  area. To enlarge a File Manager window using the mouse, do the following:
  4750.  
  4751.        Mouse 
  4752.  
  4753.    1.  Select the window you want to enlarge by clicking it.
  4754.  
  4755.    2.  Click the Maximize box, as shown in the following example.
  4756.  
  4757.        (This figure may be found in the printed book).
  4758.  
  4759.  
  4760.  The Maximize box disappears, and the Restore box takes its place.
  4761.  
  4762.  (This figure may be found in the printed book).
  4763.  
  4764.  To enlarge an icon by using a mouse, follow these steps:
  4765.  
  4766.        Mouse 
  4767.  
  4768.    1.  Click the icon you want to enlarge.
  4769.  
  4770.        The System menu appears.
  4771.  
  4772.    2.  Click the Maximize command.
  4773.  
  4774.  
  4775.  To enlarge a window or an icon by using the keyboard, do the following:
  4776.  
  4777.        Keyboard 
  4778.  
  4779.    1.  Select the window or icon you want to enlarge by selecting the Window
  4780.        menu and choosing the window.
  4781.  
  4782.    2.  Select the System menu by pressing CTRL+ - (hyphen key).
  4783.  
  4784.    3.  Press X to choose the Maximize command.
  4785.  
  4786.  
  4787.  
  4788.  
  4789.  Restoring a File Manager Window or Icon
  4790.  
  4791.  You can restore a File Manager window or icon to its previous size after it
  4792.  has been reduced or enlarged with the Restore command. If you are using a
  4793.  mouse, you can use the Restore box to return a window to its previous size
  4794.  by doing the following:
  4795.  
  4796.        Mouse 
  4797.  
  4798.    1.  Select the window that you want to restore by clicking it.
  4799.  
  4800.        (This figure may be found in the printed book).
  4801.  
  4802.    2.  Click the Restore box.
  4803.  
  4804.  
  4805.  If you are using the keyboard, follow these steps to restore a window to its
  4806.  previous size:
  4807.  
  4808.        Keyboard 
  4809.  
  4810.    1.  Select the window that you want to restore by selecting the Window
  4811.        menu and choosing the window.
  4812.  
  4813.    2.  Select the System menu by pressing CTRL+ - (hyphen key).
  4814.  
  4815.        (This figure may be found in the printed book).
  4816.  
  4817.    3.  Press R to choose the Restore command.
  4818.  
  4819.  
  4820.  To restore an icon to its previous size, do the following:
  4821.  
  4822.  Mouse                             Keyboard
  4823.  ────────────────────────────────────────────────────────────────────────────
  4824.  
  4825.  Double-click the icon.            Select the Window menu and choose the
  4826.                                    window.
  4827.  
  4828.  .ET
  4829.  
  4830.  
  4831.  Arranging Windows in File Manager
  4832.  
  4833.  File Manager has two commands on the Window menu you can use to organize
  4834.  windows on your screen: Tile and Cascade. These commands arrange File
  4835.  Manager windows the same way the Tile All and Cascade All commands in
  4836.  Desktop Manager arrange application windows.
  4837.  
  4838.  The Tile command arranges windows side by side so that each
  4839.  window is visible. None of the windows overlap. .RT
  4840.  
  4841.  The Cascade command arranges windows so that they overlap, starting in the
  4842.  upper-left corner of the File Manager work area. The title bar of each
  4843.  window remains visible. To use the Cascade or Tile command, do the
  4844.  following:
  4845.  
  4846.    ■   Select the Window menu and choose either the Cascade or Tile command.
  4847.  
  4848.  
  4849.  
  4850.  
  4851.  Creating a Directory
  4852.  
  4853.  You can create new directories by using the Create Directory command: Create
  4854.  a subdirectory of the current directory (if the Directory Tree window is
  4855.  active, the current directory is the selected directory), or create a
  4856.  directory in a different location by typing the path of the new directory in
  4857.  a dialog box. To use the Create Directory command, follow these steps:
  4858.  
  4859.    1.  Select the File menu and choose the Create Directory command.
  4860.  
  4861.        The Create Directory dialog box appears.
  4862.  
  4863.        (This figure may be found in the printed book).
  4864.  The current directory is shown in the dialog box.
  4865.  
  4866.    2.  To create a subdirectory of the current directory, type the name in
  4867.        the New Directory Name box; to create a directory in a different
  4868.        location, type the complete path (for example, \e1990\ebooks).
  4869.  
  4870.    3.  Choose the Create button.
  4871.  
  4872.  
  4873.  You can copy files into a directory by using the Move or Copy commands on
  4874.  the File menu, or you can create files by using your applications. For more
  4875.  information on these commands, see the sections later in this chapter.
  4876.  
  4877.  
  4878.  Deleting a File or Directory
  4879.  
  4880.  You can delete a file or directory by using the Delete command on the File
  4881.  menu. Deleting a directory also deletes any files or directories in the
  4882.  directory. To delete a file or directory, do the following:
  4883.  
  4884.    1.  Select the file or directory you want to delete in the File Manager
  4885.        window (in the Directory Tree window, you can delete only
  4886.        directories).
  4887.  
  4888.    2.  Select the File menu and choose the Delete command.
  4889.  
  4890.        The Delete dialog box appears.
  4891.  
  4892.        (This figure may be found in the printed book).
  4893.  
  4894.  The selected file or directory is displayed.
  4895.    3.  Choose the Delete button.
  4896.  
  4897.        A dialog box appears, confirming that you want to delete the directory
  4898.        or file.
  4899.  
  4900.    4.  Choose the Yes button to complete the command; choose the No button to
  4901.        cancel the command.
  4902.  
  4903.  
  4904.  Two check boxes in the Delete dialog box are used to turn off the warning
  4905.  messages that appear when you delete files or directories. The default
  4906.  setting is to display warning messages. The Confirm on Delete message
  4907.  confirms the name of each file you delete. The Confirm on Subtree Delete
  4908.  message confirms that you want to delete a directory and its contents. The
  4909.  message settings you make when using the Delete command affect only the
  4910.  particular files or directories you are deleting. To change whether these
  4911.  messages are displayed by default, use the Confirma- tion command on the
  4912.  Options menu. For more information on the Confirmation command, see "Turning
  4913.  Off a Confirmation Message," later in this chapter.
  4914.  
  4915.  ────────────────────────────────────────────────────────────────────────────
  4916.  Note
  4917.  
  4918.  You cannot delete some MS OS/2 files. If you attempt to delete an MS OS/2
  4919.  system file or a file that an application is using, you receive a message
  4920.  that the file cannot be deleted at the present time. Because MS OS/2 is a
  4921.  multitasking system, it protects you from deleting files that other programs
  4922.  are using and from deleting important system files, such as the OS2.INI file
  4923.  or the program files that are part of the operating system.
  4924.  ────────────────────────────────────────────────────────────────────────────
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  Moving a File or Directory
  4930.  
  4931.  
  4932.  You can move a file or directory by dragging it with a mouse or by using the
  4933.  Move command on the File menu. You can move the file or directory to a
  4934.  directory in the Directory Tree window, to another directory window, to a
  4935.  directory icon, or to a disk-drive icon. If you are moving directories or
  4936.  files by using a mouse, both the items you move and the destination (the
  4937.  window or icon) must be visible.
  4938.  For more information on moving files from one file system to another (for
  4939.  example, from HPFS to the FAT file system), see "Transferring Files Between
  4940.  File Systems," later in this chapter. To move a file or directory to a
  4941.  location on the same disk drive by using a mouse, follow these steps:
  4942.  
  4943.    1.  Select the File Manager window that contains the file or directory you
  4944.        want to move. If you are moving a directory, you can select the
  4945.        Directory Tree window.
  4946.  
  4947.    2.  Select the file or directory in the window.
  4948.  
  4949.    3.  Using the right mouse button, drag the file or directory icon to the
  4950.        destination directory.
  4951.  
  4952.        A dialog box appears, displaying the file or directory that is being
  4953.        moved and the destination directory.
  4954.  
  4955.    4.  If you are moving a directory, a dialog box appears, asking you to
  4956.        confirm the move. Choose the Yes button.
  4957.  
  4958.  
  4959.  To move a file or directory to a different disk drive by using a mouse, do
  4960.  the following:
  4961.  
  4962.        Mouse 
  4963.  
  4964.    1.  Select the File Manager window that contains the file or directory you
  4965.        want to move. If you are moving a directory, you can select the
  4966.        Directory Tree window.
  4967.  
  4968.    2.  Select the file or directory in the window.
  4969.  
  4970.    3.  Press and hold down ALT and, using the right mouse button, drag the
  4971.        file or directory to the appropriate disk drive (the disk-drive icon
  4972.        at the top of the Directory Tree window or any open window on a disk
  4973.        drive).
  4974.  
  4975.        (This figure may be found in the printed book).
  4976.  A dialog box appears, confirming the move.
  4977.  
  4978.    4.  If you are moving a directory, a dialog box appears, asking you if you
  4979.        want to move the directory and any files in it. Choose the Yes button.
  4980.  
  4981.  
  4982.  To move a file or directory by using the keyboard, follow these steps:
  4983.  
  4984.        Keyboard 
  4985.  
  4986.    1.  Open a window on the directory that contains the file or directory you
  4987.        want to move. If you are moving a directory, you can select the
  4988.        Directory Tree window.
  4989.  
  4990.    2.  Select the file or directory you want to move.
  4991.  
  4992.    3.  Select the File menu and choose the Move command.
  4993.  
  4994.        The Move dialog box, shown in the following example, appears.
  4995.  
  4996.        (This figure may be found in the printed book).
  4997.  The file or directory appears in the From box.
  4998.  
  4999.    4.  Type the destination directory in the To box.
  5000.  
  5001.    5.  Choose the Move button.
  5002.  
  5003.  
  5004.  You can move more than one file or directory at a time by extending your
  5005.  selection in the directory window; however, in the Directory Tree window,
  5006.  you can select only one directory at a time. For more information on
  5007.  extending a selection in a directory window, see "Selecting in a Directory
  5008.  Window," earlier in this chapter. If you are moving more than one file or
  5009.  directory, the destination should be a directory rather than a file. If you
  5010.  move more than one item to a file, File Manager attempts to replace the file
  5011.  with each item you are moving. If you are moving multiple files or
  5012.  directories using the Move dialog box, start each filename or directory name
  5013.  on a new line in the From box (press ENTER to start each new line).
  5014.  
  5015.  The Confirm on Replace check box in the Move dialog box is used to turn off
  5016.  the warning message that appears before you overwrite an existing file or
  5017.  directory. Turning off this check box affects only that particular move
  5018.  operation. To change whether the Confirm on Replace message is displayed by
  5019.  default, use the Confirmation command on the Options menu. For more
  5020.  information on the Confirmation command, see "Turning Off a Confirmation
  5021.  Message," later in this chapter.
  5022.  
  5023.  ────────────────────────────────────────────────────────────────────────────
  5024.  Note
  5025.  
  5026.  In the high-performance file system (HPFS), you can use the Move command to
  5027.  change the case of a filename or directory name. For example, to change the
  5028.  file "my.taxfile.txt" to "MY.TAXFILE.TXT", type the new name in the To box.
  5029.  For more information on HPFS, see Chapter 16, "Using the High-Performance
  5030.  File System."
  5031.  ────────────────────────────────────────────────────────────────────────────
  5032.  
  5033.  
  5034.  
  5035.  
  5036.  Copying a File or Directory
  5037.  
  5038.  You can copy a file or directory by using either a mouse or the Copy command
  5039.  on the File menu. You can copy a file or directory to a directory in the
  5040.  Directory Tree window, to another directory window, or to a directory icon.
  5041.  
  5042.  For more information on copying files from one file system to another (for
  5043.  example, from HPFS to the FAT file system), see "Transferring Files Between
  5044.  File Systems," later in this chapter. To copy a file or directory to another
  5045.  directory on the same disk drive by using a mouse, follow these steps:
  5046.  
  5047.        Mouse 
  5048.  
  5049.    1.  Select the File Manager window that contains the file or directory you
  5050.        want to copy. If you are copying a directory, you can select the
  5051.        Directory Tree window. If you are copying files or directories between
  5052.        windows, both windows must be visible.
  5053.  
  5054.    2.  Select the file or directory in the window.
  5055.  
  5056.    3.  Press and hold down CTRL and, using the right mouse button, drag the
  5057.        file or directory icon to the destination directory.
  5058.  
  5059.        A dialog box appears, confirming the copy.
  5060.  
  5061.    4.  If you are copying a directory, a dialog box appears, asking if you
  5062.        want to copy the directory and any files in it. Choose the Yes button.
  5063.  
  5064.  
  5065.  To copy a file or directory to a different disk drive by using a mouse,
  5066.  follow these steps:
  5067.  
  5068.        Mouse 
  5069.  
  5070.    1.  Select the File Manager window that contains the file or directory you
  5071.        want to copy. If you are copying a directory, you can select the
  5072.        Directory Tree window. If you are copying a file or a directory
  5073.        between windows, both windows must be visible in File Manager.
  5074.  
  5075.    2.  Select the file or directory in the window.
  5076.  
  5077.    3.  Using the right mouse button, drag the file or directory icon to the
  5078.        destination directory.
  5079.  
  5080.        A dialog box appears, confirming the copy.
  5081.  
  5082.    4.  If you are copying a directory, a dialog box appears, asking you if
  5083.        you want to copy the directory and any files in it. Choose the Yes
  5084.        button.
  5085.  
  5086.  
  5087.  Follow these steps to copy a file or directory by using the keyboard:
  5088.  
  5089.        Keyboard 
  5090.  
  5091.    1.  Open a window on the directory that contains the file or directory you
  5092.        want to copy. If you are copying a directory, you can select the
  5093.        Directory Tree window.
  5094.  
  5095.    2.  Select the file or directory you want to copy.
  5096.  
  5097.    3.  Select the File menu and choose the Copy command.
  5098.  
  5099.        The Copy dialog box appears.
  5100.  
  5101.        (This figure may be found in the printed book).
  5102.  The file or directory you selected appears in the From box.
  5103.  
  5104.    4.  Type the destination file or directory in the To box.
  5105.  
  5106.    5.  Choose the Copy button.
  5107.  
  5108.  
  5109.  You can copy more than one file or directory at a time to a destination
  5110.  directory by extending your selection in the directory window; however, in
  5111.  the Directory Tree window, you can select only one directory at a time. For
  5112.  more information on extending a selection in a directory window, see
  5113.  "Selecting in a Directory Window," earlier in this chapter.
  5114.  
  5115.  If you are copying multiple files or directories using the Copy dialog box,
  5116.  start each filename on a new line in the From box (press ENTER to start each
  5117.  new line). .ET
  5118.  
  5119.  
  5120.  Transferring Files Between File Systems
  5121.  
  5122.  If you installed the high-performance file system (HPFS) on a disk drive on
  5123.  your hard disk, you may need to move some of your files to a disk drive
  5124.  formatted with the file allocation table (FAT) file system. Because the FAT
  5125.  file system supports only eight-character filenames .RT with three-character
  5126.  file extensions, filenames longer than this must be shortened when
  5127.  transferred to a FAT-formatted disk. (Filenames that contain characters or
  5128.  blank spaces not allowed in the FAT file system are invisible to the FAT
  5129.  file system. You cannot copy or move these files to a FAT-formatted disk
  5130.  without changing their names.)
  5131.  
  5132.  When you transfer files using File Manager, either by using a mouse or by
  5133.  using the Copy and Move commands, long filenames are automatically shortened
  5134.  as follows:
  5135.  
  5136.    ■   The base of the name is the first eight characters or the characters
  5137.        up to the last period, whichever limit is encountered first.
  5138.  
  5139.    ■   Any periods in the base of the name are converted to underscores (_).
  5140.  
  5141.    ■   The first three characters after the last period become the filename
  5142.        extension. (If there is no period in the long filename, the proposed
  5143.        filename has no extension.)
  5144.  
  5145.  
  5146.  When you transfer the file back to HPFS using File Manager, the original
  5147.  long filename is restored.
  5148.  
  5149.  Using the Confirmation command on the Options menu, you can turn on
  5150.  confirmation messages that allow you to edit a proposed short filename or
  5151.  change a restored long filename. If the confirmation message is turned on, a
  5152.  dialog box appears, proposing a short filename each time you use File
  5153.  Manager to transfer files from HPFS to the FAT file system. You can edit the
  5154.  proposed name.
  5155.  
  5156.  (This figure may be found in the printed book).
  5157.  
  5158.  When you use File Manager to transfer a file back to HPFS, a dialog box
  5159.  appears, asking if you want to restore the original long filename. You can
  5160.  accept the proposed name, or choose to keep the shortened name. To turn on
  5161.  the confirmation messages, follow these steps:
  5162.  
  5163.    1.  Select the Options menu and choose the Confirmation command.
  5164.  
  5165.        The Confirmations dialog box appears.
  5166.  
  5167.        (This figure may be found in the printed book).
  5168.  
  5169.    2.  Turn on the Confirm New Name of All Transferred Files check box. A
  5170.        dialog box will be displayed each time you transfer a file from HPFS
  5171.        to the FAT file system.
  5172.  
  5173.    3.  Turn on the Confirm Restored Name of All Transferred Files check box.
  5174.        A dialog box will be displayed each time you move a file with a long
  5175.        filename from the FAT file system to HPFS.
  5176.  
  5177.    4.  Choose the Set button.
  5178.  
  5179.  
  5180.  
  5181.  
  5182.  ────────────────────────────────────────────────────────────────────────────
  5183.  Note
  5184.  
  5185.  Earlier versions of MS OS/2 (1.1 or earlier) and DOS (ver- sions 4.1 or
  5186.  earlier) do not support the extended attribute feature of MS OS/2. If you
  5187.  copy or move a file with extended attributes to a file system that does not
  5188.  support extended attributes, a message will appear telling you that the
  5189.  extended attributes will be discarded. If the file requires the extended
  5190.  attributes, MS OS/2 will not copy the file, and will display a message
  5191.  telling you that the extended attributes cannot be copied. If you are
  5192.  transferring files to the FAT file system for use on a computer running DOS
  5193.  or an earlier version of MS OS/2, you can use the MS OS/2 eautil utility to
  5194.  ensure that extended-attribute information for your files is saved. See the
  5195.  eautil entry in the Microsoft Operating System/2 Command Reference for more
  5196.  information.
  5197.  ────────────────────────────────────────────────────────────────────────────
  5198.  
  5199.  
  5200.  
  5201.  
  5202.  Renaming a File or Directory
  5203.  
  5204.  You can rename a file or directory by using the Rename command on the File
  5205.  menu. To rename a file or directory, do the following:
  5206.  
  5207.    1.  Select the File Manager window that contains the file or directory you
  5208.        want to rename. If you are renaming a directory, you can select the
  5209.        Directory Tree window.
  5210.  
  5211.    2.  Select the file or directory you want to rename (you should rename
  5212.        only one file or directory at a time).
  5213.  
  5214.    3.  Select the File menu and choose the Rename command.
  5215.  
  5216.        The Rename dialog box appears.
  5217.  
  5218.        (This figure may be found in the printed book).
  5219.  The file or directory you selected appears in the From box.
  5220.  
  5221.    4.  Type the new name in the To box.
  5222.  
  5223.    5.  Choose the Rename button.
  5224.  
  5225.  
  5226.  The Confirm on Replace check box in the Rename dialog box is used to turn
  5227.  off the warning message that appears before you overwrite an existing file
  5228.  or directory with the Rename command. Turning off the check box affects only
  5229.  that particular rename operation. To change whether the Confirm on Replace
  5230.  message is displayed by default, use the Confirmation command on the Options
  5231.  menu. For more information on the Confirmation command, see "Turning Off a
  5232.  Confirmation Message," later in this chapter.
  5233.  
  5234.  ────────────────────────────────────────────────────────────────────────────
  5235.  Note
  5236.  
  5237.  In the high-performance file system (HPFS), you can use the Rename command
  5238.  to change the case of a filename or directory name. For example, to change
  5239.  the file "my.taxfile.txt" to "MY.TAXFILE.TXT", type the new name in the To
  5240.  box. For more information on HPFS, see Chapter 16, "Using the
  5241.  High-Performance File System."
  5242.  ────────────────────────────────────────────────────────────────────────────
  5243.  
  5244.  
  5245.  
  5246.  
  5247.  Printing a File
  5248.  
  5249.  You print text files by using a mouse or by
  5250.  using the Print command on the File menu. Most MS OS/2 applications have a
  5251.  print command you can use to print files that were created with the
  5252.  application. You should use that command, rather than printing from File
  5253.  Manager, whenever possible. Before you print from File Manager, you should
  5254.  set up your printer. When you installed MS OS/2, a default printer,
  5255.  PRINTER1, was set up; however, you may need to change printer settings in
  5256.  Print Manager for use with your printer. For more information, see Chapter
  5257.  4, "Printing Files." To print files by using a mouse, follow these steps:
  5258.  
  5259.        Mouse 
  5260.  
  5261.    1.  Open a window on the directory that contains the file you want to
  5262.        print.
  5263.  
  5264.    2.  Select the file you want to print.
  5265.  
  5266.    3.  Using the right mouse button, drag the file onto the Print Manager
  5267.        icon. If Print Manager has been enlarged to a window, drag the file
  5268.        into the Print Manager window.
  5269.  
  5270.        A dialog box appears, listing the print queues and printers set up on
  5271.        your system.
  5272.  
  5273.    4.  Select the print queue or printer you want to send the file to for
  5274.        printing.
  5275.  
  5276.    5.  Choose the OK button.
  5277.  
  5278.  
  5279.  To print files by using the keyboard, follow these steps:
  5280.  
  5281.        Keyboard 
  5282.  
  5283.    1.  Open a window on the directory that contains the file you want to
  5284.        print.
  5285.  
  5286.    2.  Select the file you want to print.
  5287.  
  5288.    3.  Select the File menu and choose the Print command.
  5289.  
  5290.        A dialog box appears, listing the print queues and printers set up on
  5291.        your system.
  5292.  
  5293.    4.  Select the print queue or printer you want to send the file to for
  5294.        printing.
  5295.  
  5296.    5.  Choose the OK button.
  5297.  
  5298.  
  5299.  
  5300.  
  5301.  Searching for a File or Directory
  5302.  
  5303.  You can search for a file or directory by using the Search command on the
  5304.  File menu. You can base the search on the filename or directory name; for
  5305.  files, you can base the search on other file information, such as the file
  5306.  size, the date files were changed, or extended-attribute information.
  5307.  Extended attributes are created by applications designed to run in MS OS/2
  5308.  and can include information such as the subject of the file or key phrases
  5309.  in the file. For more information on viewing and creating extended
  5310.  attributes, see "Viewing and Setting File Attributes," later in this
  5311.  chapter.
  5312.  
  5313.  If files or directories are found matching the pattern or information you
  5314.  specified, the results are displayed in a special File Manager window. You
  5315.  can select items in this window and use File Manager commands just as you
  5316.  would in any directory window. To search for a file or a directory, follow
  5317.  these steps:
  5318.  
  5319.    1.  Select the File menu and choose the Search command.
  5320.  
  5321.        The Search dialog box, as shown in the following example, appears.
  5322.  
  5323.        (This figure may be found in the printed book).
  5324.  
  5325.    2.  If you are basing the search on name, type the filename or directory
  5326.        name you want to find in the Search For box. You can use wildcard
  5327.        characters, * and ?, to specify a range of files matching a pattern.
  5328.  
  5329.    3.  The Search on Property box contains the different file and directory
  5330.        properties on which you can base your search. The default setting is
  5331.        Name. To see the list of other properties, click the Down arrow or, if
  5332.        you are using the keyboard, move to the Search on Property box and
  5333.        press ALT+DOWN.
  5334.  
  5335.    4.  If you are basing your search on a property other than name, select
  5336.        the property from the Search on Property box. For details on each of
  5337.        the file properties available, see the information following this
  5338.        procedure list.
  5339.  
  5340.    5.  The Search From Directory box specifies the root directory of the
  5341.        current drive. This is where a search begins, continuing through all
  5342.        the directories on your current drive. You can change this, for
  5343.        example, to specify a particular directory or a different drive. To
  5344.        change this information, type the path for the directory where you
  5345.        want the search to begin.
  5346.  
  5347.    6.  Choose the Search button.
  5348.  
  5349.    7.  If you are basing your search on a property other than filename or
  5350.        directory name, a dialog box appears for the particular property.
  5351.  
  5352.        Complete the dialog box and choose the Search button.
  5353.  
  5354.  
  5355.  You can base your search for files and directories on the following
  5356.  properties:
  5357.  
  5358.  Property                          Searches for
  5359.  ────────────────────────────────────────────────────────────────────────────
  5360.  
  5361.  Subject                           Descriptive text about the subject of a
  5362.                                    file or directory. This information is
  5363.                                    stored as an extended attribute. You can
  5364.                                    specify the Subject text to be searched
  5365.                                    for and whether the search is
  5366.                                    case-sensitive.
  5367.  
  5368.  Date                              The date the file or directory was last
  5369.                                    changed. You can search for files and
  5370.                                    directories that changed before, on, or
  5371.                                    after a specific date.
  5372.  
  5373.  Size                              The size of a file, in bytes, or the
  5374.                                    number of files in a directory. You can
  5375.                                    search for files and directories that
  5376.                                    are larger than or equal to a particular
  5377.                                    size or that are smaller than or equal
  5378.                                    to the size.
  5379.  
  5380.  Flags                             The file flags set for the file or
  5381.                                    directory. You can search for files and
  5382.                                    directories with the Archive, Read-only,
  5383.                                    and Hidden file flags set.
  5384.  
  5385.  Type                              The file or directory type. This
  5386.                                    information is stored as an extended
  5387.                                    attribute. You select a type, such as
  5388.                                    Plain Text or Command File, from a list
  5389.                                    of types.
  5390.  
  5391.  Comments                          Descriptive text stored as an extended
  5392.                                    attribute. You can specify the Comment
  5393.                                    text to be searched for and whether the
  5394.                                    search is case-sensitive.
  5395.  
  5396.  Key Phrases                       Descriptive text stored as an extended
  5397.                                    attribute. You can specify the Key
  5398.                                    Phrases text to be searched for and
  5399.                                    whether the search is case-sensitive.
  5400.  
  5401.  History                           Descriptive text stored as an extended
  5402.                                    attribute. You can specify the History
  5403.                                    text to be searched for and whether the
  5404.                                    search is case-sensitive.
  5405.  
  5406.  Some files and directories may not have extended-attribute information
  5407.  associated with them, so searches based on that information will miss those
  5408.  files. After a search is completed, the files and directories that are found
  5409.  appear in a File Manager window called Search Results. For example, if you
  5410.  search your C drive for files matching MEMO*, the Search Results window
  5411.  might contain the following files:
  5412.  
  5413.  (This figure may be found in the printed book).
  5414.  
  5415.  The Search Results window resembles a directory window except that the full
  5416.  path for each file and directory always appears. You cannot use the Name or
  5417.  Icon commands on the View menu to change the way this information is
  5418.  displayed. However, you can select files or directories in the window and
  5419.  use File menu commands to perform tasks such as printing or copying and
  5420.  moving. The Search Results window is also listed in the Window menu, along
  5421.  with the other open windows.
  5422.  
  5423.  (This figure may be found in the printed book).
  5424.  
  5425.  You can also reduce the Search Results window to an icon.
  5426.  
  5427.  (This figure may be found in the printed book).
  5428.  
  5429.  The Search Results window remains open until you close it or reduce it to an
  5430.  icon. The contents of the Search Results window are replaced when you use
  5431.  the Search command again.
  5432.  
  5433.  
  5434.  Starting an Application
  5435.  
  5436.  
  5437.  You can start an MS OS/2 application from File Manager by opening the program
  5438.  file. Program files end with the characters or .BAT. If the application can
  5439.  run in a window, the window appears in front of File Manager when you start
  5440.  it. If the application is a full-screen application, the application screen
  5441.  replaces the Presentation Manager screen.
  5442.  If the application is a DOS application, you can start it from File Manager;
  5443.  however, you can run only one DOS application at a time. If you already have
  5444.  an application running in the DOS session, a message appears, asking you to
  5445.  quit the program.
  5446.  
  5447.  ────────────────────────────────────────────────────────────────────────────
  5448.  Note
  5449.  
  5450.  If you plan to use an application frequently, you should add it to a Desktop
  5451.  Manager group window rather than starting it from File Manager. For more
  5452.  information on adding applications to group windows, see Chapter 2, "Running
  5453.  Applications with MS OS/2."
  5454.  ────────────────────────────────────────────────────────────────────────────
  5455.  
  5456.  
  5457.  To start an application by using a mouse, do the following:
  5458.  
  5459.        Mouse 
  5460.  
  5461.    1.  Open a window on the directory that contains the application file.
  5462.  
  5463.    2.  Double-click the application filename.
  5464.  
  5465.  
  5466.  To start an application by using the keyboard, do the following:
  5467.  
  5468.        Keyboard 
  5469.  
  5470.    1.  Open a window on the directory that contains the application file.
  5471.  
  5472.    2.  Select the application filename.
  5473.  
  5474.    3.  Select the File menu and choose the Open command.
  5475.  
  5476.  
  5477.  Or
  5478.  
  5479.    ■   Select the filename in the directory window and press ENTER.
  5480.  
  5481.  
  5482.  You can also start an application from a data file by using a mouse or the
  5483.  Run command on the File menu. When you start an application this way, the
  5484.  application opens the data file. For example, you might start a text-editing
  5485.  application by using the file you want to edit. To start an application from
  5486.  a data file by using a mouse, follow these steps:
  5487.  
  5488.    1.  Open a window on the directory that contains the data file (the window
  5489.        containing the application file must be visible as well).
  5490.  
  5491.    2.  Select the data file and, using the right mouse button, drag the
  5492.        data-file icon onto the application file.
  5493.  
  5494.  
  5495.  You can extend the selection in the directory window to select more than one
  5496.  file. If you select more than one file and drag them onto a program file,
  5497.  File Manager starts a separate program for each data file. To start one
  5498.  application and open several selected files by using a mouse, do the
  5499.  following:
  5500.  
  5501.    1.  In the directory window, select each file you want to open.
  5502.  
  5503.    2.  Press and hold down ALT and, using the right mouse button, drag the
  5504.        multiple-file icon onto the application file.
  5505.  
  5506.  
  5507.  Some applications do not allow multiple files to be opened at once. In this
  5508.  case, only the first file is opened and the others are ignored. To start an
  5509.  application from a data file by using the keyboard, follow these steps:
  5510.  
  5511.    1.  Open a window on the directory that contains the data file.
  5512.  
  5513.    2.  Select the data file you want to run with the application.
  5514.  
  5515.    3.  Select the File menu and choose the Run command.
  5516.  
  5517.        The Run dialog box appears.
  5518.  
  5519.        (This figure may be found in the printed book).
  5520.  
  5521.    4.  Type the program filename in the Program box. If the program is not in
  5522.        the current directory, type the path and filename of the program file.
  5523.  
  5524.    5.  If you selected more than one file in the directory window, select one
  5525.        of the following options: Run a Separate Program for Each File or Run
  5526.        a Single Program for All Files.
  5527.  
  5528.    6.  Choose the Run button.
  5529.  
  5530.  
  5531.  You can use the Minimize On Run command on the Options menu to automatically
  5532.  reduce File Manager to an icon whenever you start an application.
  5533.  
  5534.  (This figure may be found in the printed book).
  5535.  
  5536.  To use the Minimize On Run command, do the following:
  5537.  
  5538.    ■   Select the Options menu and choose the Minimize On Run command.
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  Associating Application Files
  5544.  
  5545.  The Associate command on the File menu allows you to associate an
  5546.  application file with other files. For example, you can associate data files
  5547.  with the application you used to create them. Once you create the
  5548.  association, you can start the application by opening the data file in File
  5549.  Manager. Often, data files created with an application have a particular
  5550.  filename format; for example, files created with a text-editing application
  5551.  might end with the characters .TXT.
  5552.  
  5553.  You also can create associations based on combinations of filenames and
  5554.  wildcard characters, or based on file type; for example, you could associate
  5555.  an application with all files that have the Plain Text file type.
  5556.  
  5557.  You can associate files in two ways:
  5558.  
  5559.    ■   By selecting a specific program file and providing the file type or
  5560.        filename information
  5561.  
  5562.    ■   By selecting a specific data-file name and providing program-file
  5563.        information
  5564.  
  5565.  
  5566.  Follow these steps to use the Associate command:
  5567.  
  5568.    1.  Open a window on the directory that contains the file you want to
  5569.        associate. The file can be either a program file or a data file.
  5570.  
  5571.    2.  Select the file you want to associate.
  5572.  
  5573.    3.  Select the File menu and choose the Associate command.
  5574.  
  5575.        The Add Association dialog box appears.
  5576.  
  5577.        (This figure may be found in the printed book).
  5578.  
  5579.    4.  Type the requested information in the dialog box.
  5580.  
  5581.        For details on completing the Add Association dialog box, see the
  5582.        information following this procedure list.
  5583.  
  5584.    5.  Choose the Add button.
  5585.  
  5586.        The Associate dialog box appears, displaying the file association you
  5587.        created.
  5588.  
  5589.    6.  Choose the OK button.
  5590.  
  5591.  
  5592.  
  5593.  The following list describes each section of the Add Association dialog box:
  5594.  
  5595.    ■   In the Program section, the Filename box contains the name of the
  5596.        program file you selected in the File Manager window. If you selected
  5597.        a data file, this box is empty. You can type the name of the program
  5598.        file you want to associate in the Filename box. You can also specify
  5599.        the path of the program file. If you do not include the path, File
  5600.        Manager searches for the program file in the path specified in your
  5601.        CONFIG.SYS file.
  5602.  
  5603.    ■   In the Parameters box, you type any command arguments─for example, an
  5604.        option or filename. Type these arguments just as you would if you were
  5605.        typing the command at the MS OS/2 command prompt. This information is
  5606.        optional.
  5607.  
  5608.        To display a dialog box asking for command arguments each time you
  5609.        start the program, you can type the message text, enclosed in square
  5610.        brackets ([ ]) in the Parameters box. By default, the data-file name
  5611.        is the last command argument on a command line. If you want the
  5612.        data-file name to be placed at another location in relation to the
  5613.        command arguments you specified in the Parameters section, type %* at
  5614.        the correct location.
  5615.  
  5616.    ■   The File Type box lists the file types that can be associated. If you
  5617.        selected a data file, the data-file type is listed─for example, Plain
  5618.        Text or Data. If you selected a program file, all available file types
  5619.        are listed. You can select a type of file from the File Type box to
  5620.        associate with the program file.
  5621.  
  5622.    ■   The Name Filter box specifies which filenames are associated with the
  5623.        program file. If you selected a data file in the File Manager window,
  5624.        this box contains an asterisk and the filename extension─for example,
  5625.        *.TXT. If you selected a program file, you can type the filename
  5626.        filter, a combination of wildcard and filename characters that match
  5627.        the filenames you want to be associated with the program file.
  5628.  
  5629.        You can associate a filename filter with more than one application.
  5630.        Then, when you open a file with an associated filename filter, a
  5631.        dialog box appears, asking you to select the application you want to
  5632.        start.
  5633.  
  5634.  
  5635.  You can change command-argument information associated with a file. Follow
  5636.  these steps:
  5637.  
  5638.    1.  Open a window on the directory that contains the application file or
  5639.        filename extension you want to change.
  5640.  
  5641.    2.  Select the file for which you want to change the associated file
  5642.        information.
  5643.  
  5644.    3.  Select the File menu and choose the Associate command.
  5645.  
  5646.        The Associate dialog box appears.
  5647.  
  5648.    4.  Choose the Change button.
  5649.  
  5650.        The Change Association dialog box appears.
  5651.  
  5652.        (This figure may be found in the printed book).
  5653.  
  5654.    5.  To change or add command-argument information, edit the contents of
  5655.        the Parameters box.
  5656.  
  5657.    6.  Choose the Change button.
  5658.  
  5659.        The Associate dialog box is displayed again.
  5660.  
  5661.    7.  Choose the OK button.
  5662.  
  5663.  
  5664.  You can remove a file or a filename extension from the list of associated
  5665.  files. Follow these steps:
  5666.  
  5667.    1.  Open a window on the directory that contains the application file or
  5668.        filename extension you want to delete.
  5669.  
  5670.    2.  Select the file you want to delete from the list of associated files.
  5671.  
  5672.    3.  Select the File menu and choose the Associate command.
  5673.  
  5674.        If you choose an application file, a list of files associated with it
  5675.        is displayed. If you choose a file with an associated extension, a
  5676.        list of associated program files is displayed.
  5677.  
  5678.    4.  To delete an association, select the item─either the program file or
  5679.        the filename extension─you want to delete.
  5680.  
  5681.    5.  Choose the Delete button.
  5682.  
  5683.    6.  If you are deleting a program file from the list of associations with
  5684.        a filename extension, a dialog box appears, confirming that you want
  5685.        to delete the association. Choose the Yes button.
  5686.  
  5687.  
  5688.  
  5689.  
  5690.  Changing File Flags
  5691.  
  5692.  
  5693.  
  5694.  File flags are part of the directory information for a file. This infor-
  5695.  mation is used to identify a file to MS OS/2 and controls the kinds of
  5696.  operations you perform on the file. You can see the file flags in a
  5697.  directory window by using the File Details command on the View menu. This
  5698.  displays all file information, including the file flags.
  5699.  (This figure may be found in the printed book).
  5700.  
  5701.  File flags can be turned on and off by using the Change Flags command on the
  5702.  File menu. There are four MS OS/2 file flags:
  5703.  
  5704.    ■   The Read-only flag prevents a file from being changed. When it is
  5705.        turned on, the letter "R" appears in the flag-information column in
  5706.        the directory listing.
  5707.  
  5708.    ■   The Archive flag is turned on by MS OS/2 utilities such as backup and
  5709.        xcopy. When it is turned on, the letter "A" appears in the
  5710.        flag-information column in the directory listing. Other applications
  5711.        such as text-editing programs then turn off this flag to indicate to
  5712.        MS OS/2 that the file has been changed.
  5713.  
  5714.    ■   The Hidden flag prevents a file from appearing in most directory
  5715.        listings. When this flag is turned on, the letter "H" appears in the
  5716.        directory listing.
  5717.  
  5718.    ■   The System flag identifies a file as an MS OS/2 system file. When this
  5719.        flag is turned on, the letter "S" appears in the directory listing.
  5720.        You cannot delete a file when this flag is set. This flag, like the
  5721.        Hidden flag, prevents a file from appearing in directory listings.
  5722.  
  5723.  
  5724.  To turn file flags on or off, do the following:
  5725.  
  5726.    1.  Open a window on the directory that contains the file for which you
  5727.        want to set flags.
  5728.  
  5729.    2.  Select the file.
  5730.  
  5731.    3.  Select the File menu and choose the Change Flags command.
  5732.  
  5733.        The Change Flags dialog box appears.
  5734.  
  5735.        (This figure may be found in the printed book).
  5736.  
  5737.    4.  Turn on or off the file flags you want.
  5738.  
  5739.    5.  Choose the Change button.
  5740.  
  5741.  
  5742.  You can change file flags for more than one file at a time by extending your
  5743.  selection in the directory window.
  5744.  
  5745.  
  5746.  Viewing and Setting File Attributes
  5747.  
  5748.  In MS OS/2, applications can create additional pieces of informa- tion about
  5749.  files in the form of extended attributes. This information is stored
  5750.  separately from the file itself and is used to identify the file to MS OS/2,
  5751.  File Manager, and to other applications. For example, extended attributes
  5752.  could contain the following kinds of information:
  5753.  
  5754.    ■   The file type, such as program file, data file, or command file
  5755.  
  5756.    ■   The icon that appears in File Manager
  5757.  
  5758.    ■   Other information specific to the application
  5759.  
  5760.  
  5761.  Extended attributes are created and supported by applications designed to
  5762.  run in MS OS/2. The information contained in extended attributes may vary
  5763.  from application to application. There are some standard kinds of extended
  5764.  attributes. The Properties command on the File menu is used to view and
  5765.  modify some of the extended attributes, as well as to view other file
  5766.  information such as file flags and size. You also can use the Properties
  5767.  command to create some kinds of extended attributes for files that do not
  5768.  already have them.
  5769.  
  5770.  You can base file searches on the extended-attribute information by using
  5771.  the Search command on the File menu. See "Searching for a File or
  5772.  Directory," earlier in this chapter, for more information. To view the
  5773.  extended attributes, follow these steps:
  5774.  
  5775.    1.  Select the file in the directory window.
  5776.  
  5777.    2.  Select the File menu and choose the Properties command.
  5778.  
  5779.        When the Properties dialog box is first displayed, the bottom half of
  5780.        the dialog box does not appear. To expand the dialog box, choose the
  5781.        More button.
  5782.  
  5783.        (This figure may be found in the printed book).
  5784.  For details about each of the areas in the Properties dialog box, see the
  5785.  information following this procedure list.
  5786.  
  5787.    3.  To add a file type to the list of types, choose the Type button.
  5788.  
  5789.        A dialog box appears, showing the available file types.
  5790.  
  5791.    4.  Select the file type you want to add and choose the Add button.
  5792.  
  5793.        A dialog box appears, showing the types for the file.
  5794.  
  5795.    5.  You can choose to add or delete more file types by using the Add and
  5796.        Delete buttons.
  5797.  
  5798.    6.  When you finish adding or deleting file types, choose the OK button.
  5799.  
  5800.        The Properties dialog box appears again.
  5801.  
  5802.    7.  If you have an icon editor (an application that creates icons), you
  5803.        can customize the icon that is used by the file. Choose the Icon
  5804.        button to specify a new icon file.
  5805.  
  5806.        A dialog box appears.
  5807.  
  5808.    8.  Type the path and filename of the new icon file.
  5809.  
  5810.    9.  Choose the OK button.
  5811.  
  5812.       The Properties dialog box appears again.
  5813.  
  5814.    10. If you want the Properties dialog box to be expanded each time you use
  5815.        the Properties command, turn on the Unfold check box.
  5816.  
  5817.    11. When you finish viewing or changing the information in the Properties
  5818.        dialog box, choose the OK button.
  5819.  
  5820.  
  5821.  The following list explains each section of the Properties dialog box:
  5822.  
  5823.  Dialog-box area                   Contains
  5824.  ────────────────────────────────────────────────────────────────────────────
  5825.  
  5826.  Name                              Selected filename in File Manager.
  5827.  
  5828.  Path                              Path for the selected file.
  5829.  
  5830.  Subject                           Subject of the file. This information is
  5831.                                    stored in an extended attribute. You can
  5832.                                    change the subject or create one if none
  5833.                                    exists.
  5834.  
  5835.  Flags                             Settings for the Read-only, Archive, and
  5836.                                    Hidden flags. You can turn these flags
  5837.                                    on or off. (For more information on file
  5838.                                    flags, see "Changing File Flags,"
  5839.                                    earlier in this chapter.)
  5840.  
  5841.  Created                           The date the file was created. This
  5842.                                    information appears only if you are
  5843.                                    using the high-performance file system.
  5844.  
  5845.  Last Modification                 The date the file was last changed.
  5846.  
  5847.  Last Access                       The date the file was last opened by an
  5848.                                    application. This information appears
  5849.                                    only if you are using the
  5850.                                    high-performance file system.
  5851.  
  5852.  Default Type                      The file type─for example, Data or
  5853.                                    Program. A file can be associated with
  5854.                                    more than one type. The default file
  5855.                                    type appears in this section. You can
  5856.                                    change the default type using the Type
  5857.                                    button.
  5858.  
  5859.  
  5860.  
  5861.  Dialog-box area                   Contains
  5862.  ────────────────────────────────────────────────────────────────────────────
  5863.  
  5864.  Size                              The file size, in bytes, or the number
  5865.                                    of files in a directory.
  5866.  
  5867.  Comments                          Any comments that are associated with
  5868.                                    the file. Comments are stored in an
  5869.                                    extended attribute. You can edit
  5870.                                    existing comments in the Comments box or
  5871.                                    create new comments for a file. An
  5872.                                    application can also create comments
  5873.                                    that include graphics information.
  5874.  
  5875.  Key Phrases                       Any key phrases associated with the file.
  5876.                                    Some applications may use key phrases to
  5877.                                    search for files. Key phrases are stored
  5878.                                    in an extended attribute. You can edit
  5879.                                    existing key phrases in the Key Phrases
  5880.                                    box or create new key phrases for the
  5881.                                    file.
  5882.  
  5883.  History                           Information on changes made to the file.
  5884.                                    This information is stored in an
  5885.                                    extended attribute. This information, if
  5886.                                    it exists, can only be viewed, not
  5887.                                    edited.
  5888.  
  5889.  
  5890.  
  5891.  Turning Off a Confirmation Message
  5892.  
  5893.  The Confirmation command on the Options menu is used to turn confirmation
  5894.  messages on and off. These messages usually appear in File Manager and ask
  5895.  you to confirm that you want to carry out a particular action, such as
  5896.  deleting a file.
  5897.  
  5898.  The settings you make with the Confirmation command can be saved when you
  5899.  quit File Manager if you turn on the Save Settings check box. Dialog boxes
  5900.  in File Manager often have check boxes that let you turn on or off the
  5901.  message for an individual command; the settings you make with the
  5902.  Confirmation command become the default settings. The following list
  5903.  explains each message you can set using the Confirmation command:
  5904.  
  5905.  Message                           Confirms
  5906.  ────────────────────────────────────────────────────────────────────────────
  5907.  
  5908.  Confirm on Delete                 Deleting files using the Delete command
  5909.  
  5910.  Confirm on Subtree Delete         Deleting directories using the Delete
  5911.                                    command
  5912.  
  5913.  
  5914.  
  5915.  Message                           Confirms
  5916.  ────────────────────────────────────────────────────────────────────────────
  5917.  
  5918.  Confirm on Replace                Overwriting existing files or
  5919.                                    directories using the Move, Rename, or
  5920.                                    Copy commands
  5921.  
  5922.  Confirm on Subtree Direct         Moving and copying directories and files
  5923.  Manipulation                      using a mouse
  5924.  
  5925.  Confirm New Name of All           Moving and copying directories and files
  5926.  Transferred Files                 from the high-performance file system
  5927.                                    (HPFS) to new short names in the file
  5928.                                    allocation table (FAT) file system
  5929.  
  5930.  Confirm Restored Name of All      Moving and copying directories and files
  5931.  Transferred Files                 from the FAT file system to original
  5932.                                    long names in HPFS.
  5933.  
  5934.  To turn warning messages on and off, follow these steps:
  5935.  
  5936.    1.  Select the Options menu and choose the Confirmation command.
  5937.  
  5938.        The Confirmations dialog box appears.
  5939.  
  5940.        (This figure may be found in the printed book).
  5941.  
  5942.    2.  Select the messages you want to turn on or off.
  5943.  
  5944.    3.  Choose the Set button.
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  Closing a Directory Window
  5950.  
  5951.  You can close any window
  5952.  in File Manager except the Directory Tree window. You can close a directory
  5953.  window by using the Close command on the System menu or by using a mouse. To
  5954.  close a directory window, do the following:
  5955.  
  5956.  Mouse                             Keyboard
  5957.  ────────────────────────────────────────────────────────────────────────────
  5958.  
  5959.  Double-click the System-menu box  1  Press CTRL+ - (hyphen key) to select
  5960.  in the directory window.          the System menu in the directory window.
  5961.  
  5962.                                    2  Press C to choose the Close command.
  5963.  
  5964.  You can close all directory windows at once by using the Close All
  5965.  Directories command on the Window menu.
  5966.  
  5967.  (This figure may be found in the printed book).
  5968.  
  5969.  To close all directories, do the following:
  5970.  
  5971.    ■   Select the Window menu and choose the Close All Directories command.
  5972.  
  5973.  
  5974.  
  5975.  
  5976.  Quitting File Manager
  5977.  
  5978.  You can quit File Manager by using the Exit command on the File menu. File
  5979.  Manager asks if you want to save your settings. If you choose to save
  5980.  settings, settings created with the following commands are saved:
  5981.  
  5982.    ■   Settings made using commands on the View menu
  5983.  
  5984.    ■   Confirmation-command settings (Options menu)
  5985.  
  5986.    ■   Settings made using the Minimize On Run command (Options menu)
  5987.  
  5988.  
  5989.  To quit File Manager, do the following:
  5990.  
  5991.    1.  Select the File menu and choose the Exit command.
  5992.  
  5993.        The Exit File Manager dialog box appears.
  5994.  
  5995.    2.  To save your settings, turn on the Save Settings check box.
  5996.  
  5997.    3.  Choose the Yes button.
  5998.  
  5999.  
  6000.  
  6001.  
  6002.  
  6003.  
  6004.  
  6005.  
  6006.  Chapter 4  Printing Files
  6007.  ────────────────────────────────────────────────────────────────────────────
  6008.  
  6009.  
  6010.  
  6011.  
  6012.  Introduction
  6013.  
  6014.  
  6015.  This chapter explains how to set up printers and print files on your system.
  6016.  Printer Installer, a Presentation Manager application, lets you quickly set
  6017.  up a printer with your computer. For more complicated printer setups (for
  6018.  example, if you want print jobs to be shared between several printers), you
  6019.  can use Print Manager. However, Printer Installer is the recommended
  6020.  application to use for installing printers. Both methods for setting up
  6021.  printers are described in this chapter.
  6022.  After you have set up your printer, you can also use Print Manager to
  6023.  control the way files print after you send them to the printer. Print
  6024.  Manager is the Presentation Manager application that organizes and controls
  6025.  printing for MS OS/2. Print Manager starts each time you start your system;
  6026.  it appears as an icon at the bottom of your screen.
  6027.  
  6028.  ────────────────────────────────────────────────────────────────────────────
  6029.  Note
  6030.  
  6031.  All examples of filenames and directory names in this chapter use the file
  6032.  allocation table (FAT) file system, which is the file system used by DOS and
  6033.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  6034.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  6035.  High-Performance File System."
  6036.  ────────────────────────────────────────────────────────────────────────────
  6037.  
  6038.  
  6039.  
  6040.  
  6041.  Setting Up a Printer by Using Printer Installer
  6042.  
  6043.  
  6044.  Printer Installer, a Presentation Manager application, lets you quickly set
  6045.  up a printer on your system. Before you set up a printer by using Printer
  6046.  Installer, you need to know the following information about your printer:
  6047.    ■   The name and model of your printer.
  6048.  
  6049.    ■   That the necessary physical connections have been made to use your
  6050.        printer. See your printer manual for more information on installing
  6051.        your printer.
  6052.  
  6053.    ■   Which port your printer is connected to.
  6054.  
  6055.  
  6056.  
  6057.  
  6058.  ────────────────────────────────────────────────────────────────────────────
  6059.  Note
  6060.  
  6061.  If you are adding a serial printer that is connected to a communications
  6062.  port (COM1, COM2, or COM3), you must first use the Communications Port
  6063.  command in Control Panel to create communications-port settings. The COM
  6064.  ports are not listed as ports in the Printer Installer dialog box until you
  6065.  create a setting for them by using Control Panel. For information on using
  6066.  the Communications Port command, see Chapter 5, "Changing System Settings
  6067.  with Control Panel."
  6068.  ────────────────────────────────────────────────────────────────────────────
  6069.  
  6070.  
  6071.  To set up a printer by using Printer Installer, follow these steps:
  6072.  
  6073.    1.  Switch to Desktop Manager and choose the Utilities Group.
  6074.  
  6075.    2.  Choose Printer Installer.
  6076.  
  6077.        A message appears while any installed printer drivers are being
  6078.        located on your disk drive. After the search is completed, the Printer
  6079.        Installer dialog box appears.
  6080.  
  6081.        (This figure may be found in the printed book).
  6082.  
  6083.    3.  The Model list box contains the names and models of printers currently
  6084.        available for installation on your computer. If your printer model
  6085.        appears in the list box, select your printer.
  6086.  
  6087.    4.  If your printer does not appear in the list box, choose the New
  6088.        command button.
  6089.  
  6090.        A dialog box appears, asking you to insert in drive A the disk that
  6091.        contains the printer-driver files. Insert your printer-driver disk in
  6092.        drive A or type the path of the directory containing the
  6093.        printer-driver files and choose the OK button. A dialog box appears,
  6094.        listing the printer models and their corresponding printer-driver
  6095.        files. Select the appropriate printer model and choose OK to return to
  6096.        the Printer Installer dialog box.
  6097.  
  6098.    5.  In the Connect To list box, select the port your printer is connected
  6099.        to.
  6100.  
  6101.    6.  The Default check box is turned on, indicating that the printer will
  6102.        be the default printer for your computer. If you want to change the
  6103.        setting, turn off the check box.
  6104.  
  6105.    7.  Choose the OK button.
  6106.  
  6107.    8.  Depending upon which printer you selected, an additional dialog box
  6108.        may appear, asking you to confirm or change the settings for your
  6109.        printer. Change any settings, if necessary, and choose the OK button.
  6110.  
  6111.  
  6112.  If, after you set up a printer, you need to change the printer settings or
  6113.  delete the printer, use Print Manager. If you make a mistake when you set up
  6114.  your printer by using Printer Installer (for example, if you select the
  6115.  wrong printer model or port), you can delete the printer by using Print
  6116.  Manager and then re-install it by using Printer Installer.
  6117.  
  6118.  Printer Installer makes all the necessary print and print queue settings. If
  6119.  you use Print Manager to re-install your printer, you will need to create
  6120.  these settings by using several commands from Print Manager and Control
  6121.  Panel. For more information, see "Setting Up a Printer by Using Print
  6122.  Manager" later in this chapter.
  6123.  
  6124.  
  6125.  Printing a File
  6126.  
  6127.  If you have a printer connected to your computer, you can print text files
  6128.  from Presentation Manager, from the MS OS/2 command interpreter (cmd), from
  6129.  the DOS session, or by using your application's print command. To print a
  6130.  text file from Presentation Manager by using a mouse, follow these steps:
  6131.  
  6132.        Mouse 
  6133.  
  6134.    1.  Switch to the Main-group window and start File Manager.
  6135.  
  6136.    2.  In File Manager, click the directory that contains the file you want
  6137.        to print.
  6138.  
  6139.    3.  In the directory window, select the file you want to print.
  6140.  
  6141.    4.  Using the right mouse button, drag the file icon into the Print
  6142.        Manager window or onto the Print Manager icon.
  6143.  
  6144.        A dialog box appears, showing the printers and print queues set up on
  6145.        your system.
  6146.  
  6147.    5.  Select the print queue or printer you want.
  6148.  
  6149.    6.  Choose the OK button.
  6150.  
  6151.  
  6152.  To print a text file from Presentation Manager by using the keyboard, follow
  6153.  these steps:
  6154.  
  6155.        Keyboard 
  6156.  
  6157.    1.  Switch to the Main-group window and start File Manager.
  6158.  
  6159.    2.  In File Manager, open a directory window that contains the file you
  6160.        want to print.
  6161.  
  6162.    3.  In the directory window, select the file you want to print.
  6163.  
  6164.    4.  Select the File menu and choose the Print command.
  6165.  
  6166.        (This figure may be found in the printed book).
  6167.  A dialog box appears, showing the printers and print queues set up on your
  6168.  system.
  6169.  
  6170.    5.  Select the print queue or printer you want.
  6171.  
  6172.    6.  Choose the OK button.
  6173.  
  6174.  
  6175.  You use the print utility to print files from the MS OS/2 command
  6176.  interpreter, cmd, or from the DOS session by doing the following:
  6177.  
  6178.    1.  Switch to the Main-group window and start OS/2 Window. To print from
  6179.        the DOS session, use the Task List to switch to the DOS session.
  6180.  
  6181.    2.  At the prompt, type print, the path (if necessary), and the filename
  6182.        of the file you want to print. For example, to print the file
  6183.        PROPOSAL.TXT in the PROJECT directory on drive C, type the following:
  6184.  
  6185.  print c:\eproject\eproposal.txt
  6186.  
  6187.  
  6188.  
  6189.  
  6190.    3.  Press ENTER.
  6191.  
  6192.        The file is sent to the default print queue on your system.
  6193.  
  6194.  
  6195.  For more information on the print utility, see Chapter 9, "Using MS OS/2
  6196.  Utilities," and the print entry in the Microsoft Operating System/2 Command
  6197.  Reference.
  6198.  
  6199.  To print from your application, see your application manual for information
  6200.  on its print command.
  6201.  
  6202.  
  6203.  Setting Up a Printer by Using Print Manager
  6204.  
  6205.  You can use Print Manager to change how
  6206.  printers are set up, to add and remove printers, and to change print-queue
  6207.  settings. With Print Manager, you can set up several printers and print
  6208.  queues on your system. Then, when you are printing multiple files, you can
  6209.  use Print Manager to prioritize and distribute print jobs so that they are
  6210.  processed as quickly as possible. Print Manager commands also let you
  6211.  control the kinds of jobs printed on a particular printer.
  6212.  
  6213.  Setting up a printer by using Print Manager involves several steps. You
  6214.  should be familiar with all the steps before you use this method to set up a
  6215.  printer. Printer Installer provides a more streamlined approach to setting
  6216.  up a printer and is recommended for most users, particularly if you do not
  6217.  plan to have multiple printers set up for a print queue. You can also use
  6218.  Printer Installer to initially set up a printer and print queue and then use
  6219.  Print Manager to install additional printers that will use the queue.
  6220.  
  6221.  Before you use the printer commands in Print Manager, you should be familiar
  6222.  with the following terms:
  6223.  
  6224.    ■   The printer name is a name you assign to your printer. When you set up
  6225.        MS OS/2, the printer name PRINTER1 (the default setting) was created,
  6226.        even if you do not have an actual printer on your system. You can use
  6227.        Print Manager to change the settings for PRINTER1 or to create new
  6228.        printers.
  6229.  
  6230.    ■   The default printer is the printer your files are printed on unless
  6231.        your application specifies a different printer. The default printer is
  6232.        PRINTER1 when you first set up MS OS/2 on your system. You can change
  6233.        the default printer by using Print Manager.
  6234.  
  6235.    ■   The port is a slot in your computer where you connect your printer.
  6236.        There are three printer ports (LPT1, LPT2, and LPT3) and three
  6237.        communications ports (COM1, COM2, and COM3). You connect parallel
  6238.        printers to printer ports and serial printers to communications ports.
  6239.        You connect a printer to a particular port by plugging it in or, if
  6240.        you are sharing a printer over a network, by assigning it to a port by
  6241.        using a network command. In order to use communications ports with
  6242.        your system, you need to set up the communications-port device drivers
  6243.        on your system. You can set up these device drivers by selecting the
  6244.        Add Serial Device Support option while running the MS OS/2
  6245.        installation program or by editing your CONFIG.SYS file to add this
  6246.        support after installation. For more information on adding a
  6247.        communications-port line to your CONFIG.SYS file, see Chapter 17,
  6248.        "Using MS OS/2 Device Drivers."
  6249.  
  6250.    ■   A printer driver, sometimes called a "device driver," is a program
  6251.        that controls printing and lets you set options such as paper size,
  6252.        the printer model, and the amount of printer memory for your printer.
  6253.        Some printer drivers are included with your MS OS/2 installation
  6254.        disks. You use Control Panel to install printer drivers on your
  6255.        system. Using Print Manager, you associate printer drivers with a
  6256.        particular printer by specifying the name of the printer. You can also
  6257.        use Print Manager to change printer-driver settings for a printer.
  6258.  
  6259.    ■   A print queue is a list of files or print jobs waiting to be printed.
  6260.        Print Manager maintains print queues. Printers must be connected to a
  6261.        print queue for printing to take place. When you print files from
  6262.        Presentation Manager, the files are first sent to the print queue and
  6263.        then sent to the printer that uses the queue. You make this connection
  6264.        by using Print Manager. More than one printer can be connected to a
  6265.        queue; Print Manager prioritizes and organizes printing so that print
  6266.        jobs in a queue are sent to the first available printer. A printer can
  6267.        be shared by more than one queue. By default setting, each queue uses
  6268.        one printer driver. (An application can also specify a different
  6269.        printer driver.) You can change print-queue settings or create a new
  6270.        queue by using Print Manager commands.
  6271.  
  6272.  
  6273.  Setting up a printer and a print queue involves several steps. The following
  6274.  is an overview of the process and the commands you use to set up a printer:
  6275.  
  6276.    ■   Install the appropriate printer driver by using the Add Printer Driver
  6277.        command in Control Panel. Check your printer manual for the correct
  6278.        printer driver to use. For more information, see the next section,
  6279.        "Adding and Deleting a Printer Driver."
  6280.  
  6281.    ■   Add the printer and set the printer options by using the Printers
  6282.        command in Print Manager. For more information, see "Adding a Printer"
  6283.        later in this chapter.
  6284.  
  6285.    ■   Add the print queue and set the options for the print jobs by using
  6286.        the Queues command in Print Manager. For more information, see
  6287.        "Setting Up a Print Queue" later in this chapter.
  6288.  
  6289.  
  6290.  
  6291.  
  6292.  ────────────────────────────────────────────────────────────────────────────
  6293.  Note
  6294.  
  6295.  Some applications, such as full-screen OS/2 applications, are not designed
  6296.  to use the print-spooling capabilities of Print Manager. These applications
  6297.  may print directly to printer ports rather than to print queues. See your
  6298.  application manual for information on setting up printing from these
  6299.  applications.
  6300.  ────────────────────────────────────────────────────────────────────────────
  6301.  
  6302.  
  6303.  
  6304.  
  6305.  Adding and Deleting a Printer Driver
  6306.  
  6307.  Printer drivers, sometimes called device drivers, are programs that control
  6308.  how your printer prints. Some printer drivers are included with your MS OS/2
  6309.  installation disks; others may be supplied by the printer manufacturer.
  6310.  Printer-driver files have a .DRV filename extension; the files often support
  6311.  more than one printer model. Check your printer manual for information on
  6312.  which printer driver to use with your printer.
  6313.  
  6314.  Printer Installer also lets you set up new printer drivers on your system as
  6315.  part of the printer installation process. For more information, see "Setting
  6316.  Up a Printer by Using Printer Installer" earlier in this chapter.
  6317.  
  6318.  ────────────────────────────────────────────────────────────────────────────
  6319.  Note
  6320.  
  6321.  One printer-driver file, IBMNULL.DRV, sends the printer only data and
  6322.  printer control characters created by an application. If there is no printer
  6323.  driver available for your printer, you can use this printer driver to print
  6324.  from an application. Check the application manual to see whether the
  6325.  application uses this printer driver to support your printer. Your
  6326.  application must provide all printer support if you are using the IBMNULL
  6327.  driver; MS OS/2 print functions are not supported for this printer driver.
  6328.  ────────────────────────────────────────────────────────────────────────────
  6329.  
  6330.  
  6331.  
  6332.  In addition, you should create a separate print queue for printing from your
  6333.  application. This print queue should not be the default print queue for your
  6334.  computer. For information on setting up print queues, see "Adding a Print
  6335.  Queue" later in this chapter.
  6336.  You can use the Add Printer Driver command in Control Panel to install
  6337.  printer drivers for use by Print Manager. To add a printer driver, follow
  6338.  these steps:
  6339.  
  6340.    1.  Switch to Desktop Manager and choose the Utilities group.
  6341.  
  6342.    2.  Choose Control Panel.
  6343.  
  6344.    3.  Select the Installation menu and choose the Add Printer Driver
  6345.        command.
  6346.  
  6347.        The Add Printer Driver dialog box appears, asking you to insert in
  6348.        drive A the disk that contains the printer-driver files.
  6349.  
  6350.        (This figure may be found in the printed book).
  6351.  
  6352.    4.  Insert your printer-driver disk or type the path for the
  6353.        printer-driver files. If printer-driver files are already copied to
  6354.        your hard disk, they are located in the \eOS2\eDLL directory.
  6355.  
  6356.    5.  Choose the Add button.
  6357.  
  6358.        The Add Printer Driver dialog box appears, displaying the
  6359.        printer-driver files.
  6360.  
  6361.    6.  Select the printer driver you want in the Printer Drivers box. You can
  6362.        select more than one printer driver. Click each printer driver you
  6363.        want; if you are using the keyboard, press the DIRECTION keys to move
  6364.        to each printer driver and press the SPACEBAR to select it.
  6365.  
  6366.    7.  Choose the Add button.
  6367.  
  6368.  
  6369.  To delete a printer driver by using the Delete Printer Driver command in
  6370.  Control Panel, follow these steps:
  6371.  
  6372.    1.  In Control Panel, select the Installation menu and choose the Delete
  6373.        Printer Driver command.
  6374.  
  6375.        The Delete Printer Driver dialog box appears, displaying the printer
  6376.        drivers installed on your system.
  6377.  
  6378.        (This figure may be found in the printed book).
  6379.  
  6380.    2.  In the Printer Drivers box, select the printer driver you want to
  6381.        delete.
  6382.  
  6383.    3.  Choose the Delete button.
  6384.  
  6385.        A dialog box appears, asking you to confirm deleting the printer
  6386.        driver.
  6387.  
  6388.    4.  To delete the printer driver, choose the Yes button.
  6389.  
  6390.        The Delete Printer Driver dialog box appears, displaying the path
  6391.        where the printer-driver file is located.
  6392.  
  6393.        (This figure may be found in the printed book).
  6394.  
  6395.    5.  Choose the Yes button.
  6396.  
  6397.  
  6398.  
  6399.  
  6400.  Adding a Printer
  6401.  
  6402.  You can add a printer to your system by using
  6403.  Print Manager. Before you start this procedure, you should know the
  6404.  following information about your printer:
  6405.  
  6406.    ■   That the necessary physical connections have been made to use your
  6407.        printer. See your printer manual for more information on installing
  6408.        your printer.
  6409.  
  6410.    ■   Which port your printer is connected to.
  6411.  
  6412.    ■   Which printer driver you want to use and that it has been installed by
  6413.        using Control Panel.
  6414.  
  6415.  
  6416.  You can also add a printer to your system by using Printer Installer. For
  6417.  more information, see "Setting Up a Printer by Using Printer Installer"
  6418.  earlier in this chapter.
  6419.  
  6420.  ────────────────────────────────────────────────────────────────────────────
  6421.  Note
  6422.  
  6423.  If you are adding a serial printer that is connected to a communications
  6424.  port (COM1, COM2, or COM3), you must first use the Communications Port
  6425.  command in Control Panel to create communications-port settings. The COM
  6426.  ports are not listed as ports in Printer Manager until you create a setting
  6427.  for them by using Control Panel. For information on using the Communications
  6428.  Port command, see Chapter 5, "Changing System Settings with Control Panel."
  6429.  ────────────────────────────────────────────────────────────────────────────
  6430.  
  6431.  
  6432.  
  6433.  If you want to print to a serial printer from a full-screen OS/2
  6434.  application, you may need to use the spool command to redirect printer
  6435.  output from a printer port (for example, LPT1) to a communications port. For
  6436.  more information on using this command, see the spool entry in the Microsoft
  6437.  Operating System/2 Command Reference.
  6438.  To add a printer, follow these steps:
  6439.  
  6440.    1.  In Print Manager, select the Setup menu and choose the Printers
  6441.        command.
  6442.  
  6443.        The Printers dialog box appears, displaying the printers that are set
  6444.        up on your system.
  6445.  
  6446.        (This figure may be found in the printed book).
  6447.  
  6448.    2.  To add a new printer, choose the Add button.
  6449.  
  6450.        The Add Printer dialog box appears.
  6451.  
  6452.        (This figure may be found in the printed book).
  6453.  
  6454.    3.  In the Name box, type the new printer name.
  6455.  
  6456.    4.  In the Description box, type a description of the printer (for
  6457.        example, the type of printer and its location).
  6458.  
  6459.    5.  In the Device section, select the port the printer is connected to. To
  6460.        see a list of available ports by using a mouse, click the Down arrow;
  6461.        to see the list by using the keyboard, press ALT+DOWN.
  6462.  
  6463.    6.  In the Printer Drivers section, select the printer driver to be used
  6464.        with the printer. You can select more than one printer driver; the
  6465.        last printer driver selected is listed as the default driver in the
  6466.        dialog box. Check your printer manual for the appropriate driver. (If
  6467.        you need to add a new printer-driver file, see "Adding and Deleting a
  6468.        Printer Driver" earlier in this chapter.)
  6469.  
  6470.    7.  To create printer settings, choose the Printer Properties button.
  6471.  
  6472.        A dialog box appears, displaying the options specific to the printer
  6473.        driver you selected. The options may include the printer model, number
  6474.        of paper bins, the types of forms (for example, Legal), or how much
  6475.        memory the printer has. You may also be able to create new settings if
  6476.        you are using nonstandard paper sizes in your printing. The Printer
  6477.        Properties dialog box may also allow you to set the properties of a
  6478.        particular print job (for example, to specify landscape instead of
  6479.        portrait paper orientation). Set the options you want and choose the
  6480.        OK button to return to the Add Printer dialog box.
  6481.  
  6482.    8.  Choose the Add button.
  6483.  
  6484.        The Printers dialog box appears again.
  6485.  
  6486.    9.  Choose the OK button.
  6487.  
  6488.  
  6489.  After you set up a printer, you must create a print queue for it or specify
  6490.  an existing print queue. For more information, see "Adding a Print Queue"
  6491.  later in this chapter.
  6492.  
  6493.  
  6494.  Deleting a Printer
  6495.  
  6496.  You can delete a printer by using Print Manager. The print-queue name
  6497.  remains in the Print Manager window until you delete the print queue. For
  6498.  more information on deleting print queues, see "Deleting a Print Queue"
  6499.  later in this chapter. To delete a printer, do the following:
  6500.  
  6501.    1.  Select the Setup menu and choose the Printers command.
  6502.  
  6503.        The Printers dialog box appears, listing your printers.
  6504.  
  6505.    2.  Select the name of the printer you want to remove.
  6506.  
  6507.    3.  Choose the Delete button.
  6508.  
  6509.        A dialog box appears, asking you to confirm deleting the printer.
  6510.  
  6511.    4.  To remove the printer, choose the Yes button.
  6512.  
  6513.        The Printers dialog box appears again.
  6514.  
  6515.    5.  Choose the OK button.
  6516.  
  6517.  
  6518.  .ET
  6519.  
  6520.  
  6521.  Changing Printer Settings
  6522.  
  6523.  You can change any of the information or settings associated with a printer
  6524.  by using the Printers command in Print Manager. To change printer settings,
  6525.  follow these steps:
  6526.  
  6527.    1.  Select the Setup menu and choose the Printers command.
  6528.  
  6529.        The Printers dialog box appears, listing the names of the printers on
  6530.        your system and their descriptions.
  6531.  
  6532.    2.  Select the printer you want.
  6533.  
  6534.    3.  Choose the Change button.
  6535.  
  6536.        The Change Printer dialog box appears. .RT
  6537.  
  6538.        (This figure may be found in the printed book).
  6539.  For a complete description of this dialog box, see the information following
  6540.  this procedure list.
  6541.  
  6542.    4.  Change any of the settings you want to change.
  6543.  
  6544.    5.  To change printer-driver settings for a printer, select the printer
  6545.        driver in the Printer Driver box and choose the Printer Properties
  6546.        button.
  6547.  
  6548.        A dialog box appears, displaying the options for a particular printer
  6549.        driver. These options vary, depending on the printer driver you
  6550.        selected. The options can include the printer model, paper bins, and
  6551.        the paper size in each bin. You may be able to set properties for
  6552.        print jobs (for example, selecting the paper orientation or the print
  6553.        quality) by using the Printer Properties dialog box. Set the options
  6554.        you want and choose the OK button to return to the Change Printer
  6555.        dialog box.
  6556.  
  6557.    6.  Choose the Change button.
  6558.  
  6559.        The Printers dialog box appears again.
  6560.  
  6561.    7.  Choose the OK button.
  6562.  
  6563.  
  6564.  The Change Printer dialog box contains the following sections:
  6565.  
  6566.    ■   The Name box contains the printer name. You cannot edit the
  6567.        information in this box.
  6568.  
  6569.    ■   The Description box contains a description you assign to your
  6570.        printer─for example, the type of printer and its location.
  6571.  
  6572.    ■   The Device section contains the printer port for a particular printer.
  6573.        To see the available ports on your system by using a mouse, click the
  6574.        Down arrow; to see the ports by using the keyboard, press ALT+DOWN.
  6575.  
  6576.    ■   The Printer Drivers section contains the printer drivers set up on
  6577.        your system. You can select more than one printer driver; the last
  6578.        printer driver you select becomes the default printer driver. Check
  6579.        your printer manual for the appropriate printer drivers to use with
  6580.        the printer. To add a new printer-driver file, see "Adding and
  6581.        Deleting a Printer Driver" earlier in this chapter.
  6582.  
  6583.  
  6584.  If you are connecting a serial printer to one of the communications ports
  6585.  (COM1, COM2, or COM3), you must set the options for the port, such as baud
  6586.  rate and parity (see your printer manual for information on the correct
  6587.  settings to use). You can do this using the Communications Port command in
  6588.  Control Panel. For information on changing communications-port settings, see
  6589.  Chapter 5, "Changing System Settings with Control Panel."
  6590.  
  6591.  
  6592.  Setting Up a Print Queue
  6593.  
  6594.  You can set up new print queues and make adjustments to existing queues by
  6595.  using the commands on the Setup menu in Print Manager. Printers you set up
  6596.  must be connected to a print queue. If you set up a printer by using Printer
  6597.  Installer, the print queue is created automatically and named according to
  6598.  your printer model. For more information, see "Adding a Printer by Using
  6599.  Printer Installer" earlier in this chapter.
  6600.  
  6601.  
  6602.  Adding a Print Queue
  6603.  
  6604.  To add a print queue, you use the Queues command on the Setup menu in Print
  6605.  Manager.
  6606.  
  6607.  Before you set up a print queue, you should become familiar with the
  6608.  following information:
  6609.  
  6610.    ■   Which printers the queue will use. You should set up the printers to
  6611.        be used with the queue before you set up the queue.
  6612.  
  6613.    ■   Which printer driver will be used with the print queue. A print queue
  6614.        can be shared by more than one printer, but the printers and the print
  6615.        queue must have a printer driver in common.
  6616.  
  6617.        You may want to organize print queues by the kind of print jobs you
  6618.        will be printing. For example, draft-quality documents that are
  6619.        printed by using landscape mode are sent to one queue, and
  6620.        letter-quality documents that are printed in portrait mode are sent to
  6621.        another. Both queues can send print jobs to the same printers, but the
  6622.        print-job settings determine the kind of printing to be done.
  6623.  
  6624.    ■   Which queue driver will be used with a particular queue. A queue
  6625.        driver is the program that prepares a file for printing. Queue drivers
  6626.        are installed on your system when you install MS OS/2. You use one
  6627.        queue driver for printers and another for other printing devices, such
  6628.        as plotters. To add a print queue, follow these steps:
  6629.        1.  In Print Manager, select the Setup menu and choose the Queues
  6630.            command.
  6631.  
  6632.            The Queues dialog box appears, displaying the existing queue names
  6633.            and descriptions.
  6634.  
  6635.            (This figure may be found in the printed book).
  6636.  
  6637.        2.  Choose the Add button.
  6638.  
  6639.            The Add Queue dialog box appears.
  6640.  
  6641.            (This figure may be found in the printed book).
  6642.  
  6643.        3.  To add a new queue, type the new queue name in the Name box.
  6644.  
  6645.        4.  Move to the Description box and type a description of the queue;
  6646.            for example, you may want to describe the type of print jobs that
  6647.            will be printed on the queue, such as "Draft-Quality Printing."
  6648.  
  6649.        5.  Move to the Queue Driver box. If you are using a mouse to view a
  6650.            list of the queue drivers set up on your system, click the Down
  6651.            arrow; to view the list by using the keyboard, press ALT+DOWN.
  6652.            Select the queue driver you want.
  6653.  
  6654.        6.  Move to the Separator box. Type the name of the separator-page
  6655.            file, if any. The separator-page file contains instructions for
  6656.            printing a separating page between each print job. This box can be
  6657.            empty.
  6658.  
  6659.        7.  Move to the Priority box. Type the priority of the print queue.
  6660.            This is represented by a number from 1 through 9; the default
  6661.            priority is 5. If more than one queue needs to print on the same
  6662.            printers, the queue priority determines which queue can access the
  6663.            printers first.
  6664.  
  6665.        8.  Move to the Scheduling section. This section controls the hours
  6666.            the print jobs will be printed. The default is to print jobs on a
  6667.            24-hour basis; the From and To boxes are empty. If you want to
  6668.            limit the hours that print jobs will be printed, type the times in
  6669.            the From and To boxes. The time format depends on the country
  6670.            settings for your computer (for example, if you are using the US
  6671.            country settings, type the time as 12:00A).
  6672.  
  6673.        9.  Move to the box showing the available printers. Select the printer
  6674.            you want to use this queue. You can select more than one printer,
  6675.            but the printers must use the same printer driver as the print
  6676.            queue. To select a printer, click the printer name; if you are
  6677.            using the keyboard, press the DIRECTION keys to move the selection
  6678.            cursor and press the SPACEBAR to select a printer.
  6679.  
  6680.        10. Move to the Printer Driver box. To see a list of the printer
  6681.            drivers available, click the Down arrow; to see the list by using
  6682.            the keyboard, press ALT+DOWN. Select the printer driver you want.
  6683.            If you selected more than one printer, only the printer drivers
  6684.            that can be used with the printers you selected appear in the list
  6685.            box.
  6686.  
  6687.        11. To set the default print-job properties for the queue, choose the
  6688.            Job Properties button.
  6689.  
  6690.            A dialog box appears, displaying the print-job options for the
  6691.            selected printer driver─for example, the paper size and
  6692.            orientation.
  6693.  
  6694.        12. Change any settings you want to change and choose the OK button.
  6695.  
  6696.            The Add Queue dialog box reappears.
  6697.  
  6698.        13. Choose the Setup button to change the default queue-driver
  6699.            settings.
  6700.  
  6701.            A dialog box appears, displaying the options (for example,
  6702.            error-message options) for the queue driver you selected. Some
  6703.            queue drivers do not have settings that can be changed.
  6704.  
  6705.        14. Change any of the default settings and choose the Select button.
  6706.  
  6707.            The Add Queue dialog box appears again.
  6708.  
  6709.        15. Choose the Add button.
  6710.  
  6711.            The Queues dialog box appears again.
  6712.  
  6713.        16. Choose the OK button.
  6714.  
  6715.  
  6716.  
  6717.  
  6718.  
  6719.  Deleting a Print Queue
  6720.  
  6721.  You can delete a print queue by using the Queues command in Print Manager.
  6722.  Before you delete a print queue, check to make sure that all of your printer
  6723.  selections for the queue have been removed. For information on how to cancel
  6724.  printer selections, see the next section, "Changing Print-Queue Options." To
  6725.  delete a print queue, do the following:
  6726.  
  6727.    1.  Select the Setup menu and choose the Queues command.
  6728.  
  6729.        A dialog box appears, showing the queues set up on your system.
  6730.  
  6731.    2.  To delete a queue name, select the queue name and choose the Delete
  6732.        button.
  6733.  
  6734.        A dialog box appears, warning you that the queue will be deleted.
  6735.  
  6736.    3.  Choose the Yes button to delete the queue.
  6737.  
  6738.    4.  Choose the OK button.
  6739.  
  6740.  
  6741.  
  6742.  
  6743.  Changing Print-Queue Options
  6744.  
  6745.  You can change print-queue options, such as
  6746.  which printers a particular queue will use, by using the Queues command in
  6747.  Print Manager. To change print-queue options, do the following:
  6748.  
  6749.    1.  Select the Setup menu and choose the Queues command.
  6750.  
  6751.        The Queues dialog box appears, displaying the print-queue names and
  6752.        descriptions.
  6753.  
  6754.    2.  Select the print queue.
  6755.  
  6756.    3.  Choose the Change button.
  6757.  
  6758.        The Change Queue dialog box appears, displaying information about the
  6759.        selected queue.
  6760.  
  6761.        (This figure may be found in the printed book).
  6762.  For a complete description of each section in this dialog box, see the
  6763.  information following this procedure list.
  6764.  
  6765.    4.  To change print-job options for a particular printer driver, choose
  6766.        the Job Properties button.
  6767.  
  6768.        A dialog box appears, displaying available options for the selected
  6769.        printer driver.
  6770.  
  6771.    5.  Change the options you want to change and choose the OK button.
  6772.  
  6773.        The Change Queue dialog box appears again.
  6774.  
  6775.    6.  To change the options for the queue driver, choose the Setup button.
  6776.  
  6777.        A dialog box appears, displaying the available options for the
  6778.        selected queue driver. Some queue drivers do not have options that can
  6779.        be changed.
  6780.  
  6781.    7.  Change the options you want to change and choose the Select button.
  6782.  
  6783.        The Change Queue dialog box appears again.
  6784.  
  6785.    8.  Choose the Change button.
  6786.  
  6787.        The Queues dialog box appears again.
  6788.  
  6789.    9.  Choose the OK button.
  6790.  
  6791.  
  6792.  The Change Queue dialog box has the following sections:
  6793.  
  6794.    ■   The Name box contains the selected print-queue name. You cannot edit
  6795.        the information in this box.
  6796.  
  6797.    ■   The Description box contains a short description of the print queue
  6798.        (you create this description).
  6799.  
  6800.    ■   The Queue Driver box contains the queue drivers installed on your
  6801.        system. To see all queue drivers available on your system, click the
  6802.        Down arrow; to see the list by using the keyboard, press ALT+DOWN. You
  6803.        can select only one queue driver from the list. Queue drivers are
  6804.        copied to your system when you install MS OS/2. You can add and delete
  6805.        queue drivers by using Control Panel (for more information, see
  6806.        "Adding and Deleting a Queue Driver" later in this chapter).
  6807.  
  6808.    ■   The Separator box contains the name of the separator-page file, if
  6809.        any. The separator-page file contains instructions for printing a
  6810.        separating page between each print job. This box can be empty.
  6811.  
  6812.    ■   The Priority box contains the priority of the print queue. This is
  6813.        represented by a number from 1 through 9; the default priority is 5.
  6814.        If more than one queue needs to print on the same printers, the queue
  6815.        priority determines which queue can access the printers first.
  6816.  
  6817.    ■   The Scheduling section controls the hours that print jobs are printed.
  6818.        The default is to print jobs on a 24-hour basis; the From and To boxes
  6819.        are empty. If you want to limit the hours print jobs will be accepted,
  6820.        type the times in the From and To boxes. The time format depends on
  6821.        the country settings for your computer (for example, if you are using
  6822.        the US country settings, type the time as 12:00A).
  6823.  
  6824.    ■   The list of printers and their descriptions shows the printers that
  6825.        are set up on your system. You can select which printer the queue will
  6826.        send print jobs to. You can also select more than one printer. To
  6827.        cancel a printer selection, click the printer selection; to cancel a
  6828.        printer selection by using the keyboard, press the DIRECTION keys to
  6829.        move to the selected item and press the SPACEBAR.
  6830.  
  6831.    ■   The Printer Driver box shows the printer driver that is set up for the
  6832.        printers associated with the queue. You can change printer drivers. To
  6833.        see a list of available printer drivers, click the Down arrow; to see
  6834.        the list by using the keyboard, press ALT+DOWN. Only printer drivers
  6835.        that can be used with all the selected printers appear in the box.
  6836.  
  6837.  
  6838.  
  6839.  
  6840.  Adding and Deleting a Queue Driver
  6841.  
  6842.  When you install MS OS/2, a program called a
  6843.  queue driver is copied to your hard disk for use by Print Manager. Queue
  6844.  drivers control the way files are sent to your printer or other devices. If
  6845.  you need to add or change a queue driver, you can use the Add Queue Driver
  6846.  command in Control Panel. To add a queue driver, follow these steps:
  6847.  
  6848.    1.  In Control Panel, select the Installation menu and choose the Add
  6849.        Queue Driver command.
  6850.  
  6851.        The Add Queue Driver dialog box appears, requesting you to insert in
  6852.        drive A the disk that contains the queue-driver file.
  6853.  
  6854.        (This figure may be found in the printed book).
  6855.  
  6856.    2.  Insert the disk or type the path for the queue-driver file and choose
  6857.        the Add button.
  6858.  
  6859.        The Add Queue Driver dialog box appears, showing you the queue drivers
  6860.        available on your system or on disk.
  6861.  
  6862.    3.  Select the queue driver you want to add and choose the Add button.
  6863.  
  6864.        A dialog box appears, asking you to confirm the directory to which the
  6865.        queue-driver file will be copied.
  6866.  
  6867.    4.  Choose the Yes button.
  6868.  
  6869.  
  6870.  You can change the directory that contains your queue-driver files, but you
  6871.  may need to edit your CONFIG.SYS file so that Print Manager can find the
  6872.  files. For information on changing your CONFIG.SYS file, see Chapter 15,
  6873.  "Using MS OS/2 Configuration Commands."
  6874.  
  6875.  You can delete queue-driver files by using the Delete Queue Driver command
  6876.  in Control Panel. To delete a queue driver, follow these steps:
  6877.  
  6878.    1.  In Control Panel, select the Installation menu and choose the Delete
  6879.        Queue Driver command.
  6880.  
  6881.        The Delete Queue Driver dialog box appears, displaying the queue
  6882.        drivers installed on your system.
  6883.  
  6884.        (This figure may be found in the printed book).
  6885.  
  6886.    2.  Select the queue driver you want to delete.
  6887.  
  6888.        A dialog box appears, asking you to confirm that you want to delete
  6889.        the queue driver.
  6890.  
  6891.    3.  Choose the Yes button to delete the queue driver.
  6892.  
  6893.        A dialog box containing the path of the queue-driver file appears,
  6894.        asking you to confirm that you want to delete the file.
  6895.  
  6896.    4.  Choose the Yes button.
  6897.  
  6898.  
  6899.  
  6900.  
  6901.  Changing the Default Print Queue and Printer
  6902.  
  6903.  
  6904.  When you install MS OS/2, a default print queue, LPT1Q, is set up on your
  6905.  system. It is the default print queue for your Presentation Manager
  6906.  applications. Some applications, such as File Manager, display a dialog box
  6907.  when you use the Print command that allows you to choose the print queue or
  6908.  printer you want to send the file to. Many applications send print jobs to
  6909.  the default print queue, however, which you specify by using the Application
  6910.  Defaults command on the Setup menu in Print Manager. If you set up more than
  6911.  one print queue or printer, you may want to change the default settings for
  6912.  your system. Some applications, such as Presentation Manager applications
  6913.  designed for MS OS/2 version 1.1, may send files to the default printer. If
  6914.  you have more than one printer, you can change a default printer by using
  6915.  the Application Defaults command.
  6916.  ────────────────────────────────────────────────────────────────────────────
  6917.  Note
  6918.  
  6919.  The Application Defaults command establishes the default print queue and
  6920.  printer for Presentation Manager applications only. Applications that do not
  6921.  use Print Manager, such as full-screen OS/2 applications, are not affected
  6922.  by these settings.
  6923.  ────────────────────────────────────────────────────────────────────────────
  6924.  
  6925.  
  6926.  
  6927.  To change the default print queue or printer, follow these steps:
  6928.  
  6929.    1.  In Print Manager, select the Setup menu and choose the Application
  6930.        Defaults command.
  6931.  
  6932.        The Application Defaults dialog box appears.
  6933.  
  6934.        (This figure may be found in the printed book).
  6935.  
  6936.    2.  Move to the list of print queues available on your system and select
  6937.        the new default print queue.
  6938.  
  6939.    3.  Move to the list of printers and select the new default direct
  6940.        printer.
  6941.  
  6942.    4.  Choose the Set button.
  6943.  
  6944.  
  6945.  
  6946.  
  6947.  Controlling a Print Job by Using Print Manager
  6948.  
  6949.  Print Manager helps you control printing. Before you use Print
  6950.  Manager, you should be familiar with the following terms:
  6951.  
  6952.    ■   A print queue is a list of files waiting to be printed. From the print
  6953.        queue, files are sent to the first available printer. A print queue
  6954.        can send files to more than one printer.
  6955.  
  6956.    ■   A print job is a file that has been sent for printing.
  6957.  
  6958.    ■   Spooling is the process of sending print jobs to printers and managing
  6959.        print queues. Spooling is one of the tasks that Print Manager
  6960.        performs.
  6961.  
  6962.    ■   A job identifier is a number that identifies a particular print job.
  6963.  
  6964.  
  6965.  With Print Manager, you can see status information on an entire print queue
  6966.  or on an individual print job. To check on the status of a print job, do the
  6967.  following:
  6968.  
  6969.    ■   Switch to Print Manager.
  6970.  
  6971.        (This figure may be found in the printed book).
  6972.  
  6973.  
  6974.  In the Print Manager work area, you see each print queue listed with the
  6975.  number of print jobs (files) in the queue. Each print job is identified by
  6976.  its job identifier, document name, and the date and time it was sent to the
  6977.  print queue. For some print jobs, the name of the application you are
  6978.  printing from also appears.
  6979.  
  6980.  Before you can use the commands on the Queue or Job menus, you must select a
  6981.  print job or queue. You can select more than one item at a time. To select a
  6982.  print queue or print job by using the mouse, do the following:
  6983.  
  6984.        Mouse 
  6985.  
  6986.    ■   Click the item or items you want to select.
  6987.  
  6988.  
  6989.  To select a print queue or print job by using the keyboard, do the
  6990.  following:
  6991.  
  6992.        Keyboard 
  6993.  
  6994.    1.  Press the DIRECTION keys to move the cursor to each item.
  6995.  
  6996.    2.  Press the SPACEBAR to select the item.
  6997.  
  6998.  
  6999.  To cancel your selection by using the mouse, click the item again. If you
  7000.  are using the keyboard, press the SPACEBAR again to cancel a selection.
  7001.  
  7002.  If you select a print job, you can use the commands on the Queue and Job
  7003.  menus; if you select a print queue, you can only use the commands on the
  7004.  Queue menu.
  7005.  
  7006.  
  7007.  Controlling Print Queues
  7008.  
  7009.  You can stop, restart, or cancel printing by controlling the print queue;
  7010.  for example, you may need to stop printing to change paper or fix a problem
  7011.  with your printer. You use the commands on the Queue menu to control print
  7012.  queues. You can stop all printing from a queue by using the Hold Queue
  7013.  command on the Queue menu. If a file is printing when you choose this
  7014.  command, it finishes printing. To use the Hold Queue command, follow these
  7015.  steps:
  7016.  
  7017.    1.  Select the print queue in the Print Manager work area.
  7018.  
  7019.    2.  Select the Queue menu and choose the Hold Queue command.
  7020.  
  7021.        (This figure may be found in the printed book).
  7022.  
  7023.  
  7024.  To resume printing, do the following:
  7025.  
  7026.    1.  Select the print queue in the Print Manager work area.
  7027.  
  7028.    2.  Select the Queue menu and choose the Release Queue command.
  7029.  
  7030.  
  7031.  
  7032.  
  7033.  Controlling Print Jobs
  7034.  
  7035.  You can control print jobs─files that you are printing on a printer─by using
  7036.  Print Manager commands.
  7037.  
  7038.  Looking at Print-Job Information
  7039.  
  7040.  You can find out information on a particular print job by using the Job
  7041.  Details command on the Job menu. You can also use this command to change the
  7042.  number of copies you are printing. To see print-job information, do the
  7043.  following:
  7044.  
  7045.    1.  In the Print Manager work area, select the print jobs you want.
  7046.  
  7047.    2.  Select the Job menu and choose the Job Details command.
  7048.  
  7049.        The Job Details dialog box appears (for details on each area of the
  7050.        dialog box, see the information following this procedure list). A
  7051.        separate Job Details dialog box appears for each print job you
  7052.        selected.
  7053.  
  7054.        (This figure may be found in the printed book).
  7055.  
  7056.    3.  When you finish looking at the print-job information, choose the
  7057.        Cancel button.
  7058.  
  7059.  
  7060.  The following list explains each area of the Job Details dialog box.
  7061.  
  7062.  Dialog-box area                   Contains
  7063.  ────────────────────────────────────────────────────────────────────────────
  7064.  
  7065.  Comment String                    The name of the application you used to
  7066.                                    send the print job to a printer. This
  7067.                                    section may be blank. If you print a
  7068.                                    file from the MS OS/2 command
  7069.                                    interpreter (cmd) or from the DOS
  7070.                                    session, "System" appears in this
  7071.                                    section. You can type a comment in the
  7072.                                    text box.
  7073.  
  7074.  Document Name                     The name of the file you are printing.
  7075.  
  7076.  Job Identifier                    The identification number of your print
  7077.                                    job in the queue.
  7078.  
  7079.  Date/Time                         The date and time you sent your file to
  7080.                                    the print queue.
  7081.  
  7082.  Size                              The size of the print job in bytes.
  7083.  
  7084.  User                              If you are connected to a network that
  7085.                                    uses the appropriate network software,
  7086.                                    your network name appears.
  7087.  
  7088.  Notify                            The network name of the person to be
  7089.                                    notified when the print job is completed.
  7090.                                    You can use this feature only if you are
  7091.                                    connected to a network that uses the
  7092.                                    appropriate network software.
  7093.  
  7094.  Job Priority                      The priority of your print job. This is
  7095.                                    represented by a number from 1 through
  7096.                                    99; the default priority is 50 (the
  7097.                                    higher the number, the higher the
  7098.                                    priority). You can change this number to
  7099.                                    increase or decrease the priority of a
  7100.                                    print job.
  7101.  
  7102.  Copies                            The number of copies you are printing.
  7103.                                    You can change this number. The default
  7104.                                    is one.
  7105.  
  7106.  Form                              The print-job paper size.
  7107.  
  7108.  Queue Name                        The name of the print queue.
  7109.  
  7110.  Queue Description                 A description of the print queue. You
  7111.                                    can provide this information when you
  7112.                                    set up the print queue.
  7113.  
  7114.  Queue Options                     Additional options supplied by the
  7115.                                    application for the print queue.
  7116.  
  7117.  Queue Processor                   The name of the queue driver.
  7118.  
  7119.  Printer Name                      The name of the printer on which the job
  7120.                                    is printing.
  7121.  
  7122.  Printer Description               A description of your printer. You can
  7123.                                    provide this information when you set up
  7124.                                    the printer.
  7125.  
  7126.  Device                            The name of the device driver (the
  7127.                                    program that controls your printer). The
  7128.                                    name of the printer port appears in this
  7129.                                    area when your job is printing.
  7130.  
  7131.  Status                            The current status of the print job (for
  7132.                                    example, if the print job is printing,
  7133.                                    "Printing" appears).
  7134.  
  7135.  
  7136.  Canceling a Print Job
  7137.  
  7138.  You can stop a file from printing by canceling the print job. When you
  7139.  cancel a print job, it is removed from the print queue. To cancel a print
  7140.  job, use the Cancel Job command on the Job menu. Follow these steps:
  7141.  
  7142.    1.  In the Print Manager work area, select the print job you want to
  7143.        cancel.
  7144.  
  7145.        (This figure may be found in the printed book).
  7146.  
  7147.    2.  Select the Job menu and choose the Cancel Job command.
  7148.  
  7149.        A dialog box appears, asking you to confirm the cancellation.
  7150.  
  7151.    3.  Choose the Yes button.
  7152.  
  7153.  
  7154.  
  7155.  You can cancel all print jobs in a print queue by doing the following:
  7156.    1.  In the Print Manager work area, select the queue name.
  7157.  
  7158.    2.  Select the Queue menu and choose the Cancel All Jobs command.
  7159.  
  7160.        A dialog box appears, asking you to confirm that you want all jobs
  7161.        removed from the queue.
  7162.  
  7163.    3.  Choose the Yes button.
  7164.  
  7165.  
  7166.  .ET
  7167.  
  7168.  Moving a Print Job in the Print Queue
  7169.  
  7170.  You can prioritize a particular print job so that it prints ahead of other
  7171.  jobs in the queue by using the Print Job Next command on the Job menu. The
  7172.  file prints when a printer becomes available. If you prioritize a print job
  7173.  that has been held, it becomes the first job in the queue but it is still
  7174.  held until you release it. For more information on holding and releasing a
  7175.  print job, see "Holding a Print Job" later in this chapter. .RT To move a
  7176.  print job to the top of the queue, follow these steps:
  7177.  
  7178.    1.  In the Print Manager work area, select the print job.
  7179.  
  7180.    2.  Select the Job menu and choose the Print Job Next command.
  7181.  
  7182.        The priority of the print job is set to 99─the highest priority.
  7183.  
  7184.  
  7185.  You also can change the priority of a print job by using the Job Details
  7186.  command on the Job menu. The priority of a print job is represented by a
  7187.  number from 1 through 99; the default is 50 (the higher the number, the
  7188.  sooner the job is printed). To change the priority of a print
  7189.  ob, do the following:
  7190.  
  7191.    1.  In the Print Manager work area, select the print job.
  7192.  
  7193.    2.  Select the Job menu and choose the Job Details command.
  7194.  
  7195.        The Job Details dialog box appears, displaying information on the job.
  7196.  
  7197.        (This figure may be found in the printed book).
  7198.  
  7199.    3.  Move to the Job Priority box and select the current priority; type a
  7200.        new priority─a number from 1 through 99.
  7201.  
  7202.    4.  Choose the Set button.
  7203.  
  7204.  
  7205.  Files are printed in the order of their priority. If print jobs share the
  7206.  same priority, they are printed in the order they appear in the Print
  7207.  Manager work area.
  7208.  
  7209.  Restarting a Print Job
  7210.  
  7211.  
  7212.  You may want to stop and completely restart a print job that is currently
  7213.  printing─for example, when you have problems with your printer. When you use
  7214.  the Start Job Again command on the Job menu, Print Manager stops the print
  7215.  job and restarts it from the beginning. To restart a print job, follow these
  7216.  steps:
  7217.    1.  In the Print Manager work area, select the print job you want to start
  7218.        over. The status information for the print job must be "Printing."
  7219.  
  7220.    2.  Select the Job menu and choose the Start Job Again command.
  7221.  
  7222.  
  7223.  
  7224.  Holding a Print Job
  7225.  
  7226.  You can temporarily prevent a print job from printing by using the Hold Job
  7227.  command on the Job menu. The print job is held until you release it by using
  7228.  the Release Job command. To use the Hold Job command, do the following:
  7229.  
  7230.    1.  In the Print Manager work area, select the print job you want held.
  7231.  
  7232.    2.  Select the Job menu and choose the Hold Job command.
  7233.  
  7234.        (This figure may be found in the printed book).
  7235.  
  7236.  
  7237.  To release a print job, follow these steps:
  7238.  
  7239.    1.  In the Print Manager work area, select the print job you want
  7240.        released.
  7241.  
  7242.    2.  Select the Job menu and choose the Release Job command.
  7243.  
  7244.        (This figure may be found in the printed book).
  7245.  
  7246.  
  7247.  
  7248.  
  7249.  Updating Print Manager Information
  7250.  
  7251.  Information in the Print Manager work area is always changing as print jobs
  7252.  finish and new print jobs are submitted. The Refresh Now command can be used
  7253.  to keep this information current.
  7254.  
  7255.  (This figure may be found in the printed book).
  7256.  
  7257.  To update the information in the Print Manager work area, do the following:
  7258.  
  7259.    ■   Select the Refresh menu and choose the Refresh Now command.
  7260.  
  7261.  
  7262.  
  7263.  
  7264.  Changing the Spooler Path
  7265.  
  7266.  As part of the process of organizing and prioritizing print jobs, Print
  7267.  Manager creates temporary files waiting to be printed. You can change the
  7268.  directory where these temporary files are stored by using the Spooler Path
  7269.  command on the Setup menu. By default setting, the files are stored in the
  7270.  SPOOL directory. To change the directory where Print Manager files are
  7271.  stored, follow these steps:
  7272.  
  7273.    1.  In Print Manager, select the Setup menu and choose the Spooler Path
  7274.        command.
  7275.  
  7276.        The Spooler Path dialog box appears, listing the path where spooler
  7277.        files are stored.
  7278.  
  7279.    2.  To change the directory where Print Manager files are stored, type a
  7280.        new path in the Spooler Path box.
  7281.  
  7282.    3.  Choose the Set button.
  7283.  
  7284.  
  7285.  
  7286.  
  7287.  
  7288.  
  7289.  
  7290.  
  7291.  
  7292.  Chapter 5  Changing System Settings with Control Panel
  7293.  ────────────────────────────────────────────────────────────────────────────
  7294.  
  7295.  
  7296.  
  7297.  
  7298.  Introduction
  7299.  
  7300.  You can adjust system settings, such as the date and time or screen colors
  7301.  in Presentation Manager windows, by using Control Panel. Some settings, such
  7302.  as the time or date, can be adjusted directly in the main Control Panel
  7303.  window. Other settings, such as screen colors or baud rates for a modem or
  7304.  serial printer, are set using Control Panel menus and commands. You can also
  7305.  use Control Panel to install printing software such as printer drivers and
  7306.  print-queue drivers. For more information, see Chapter 4, "Printing Files."
  7307.  
  7308.  ────────────────────────────────────────────────────────────────────────────
  7309.  Note
  7310.  
  7311.  All examples of filenames and directory names in this chapter use the file
  7312.  allocation table (FAT) file system, which is the file system used by DOS and
  7313.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  7314.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  7315.  High-Performance File System."
  7316.  ────────────────────────────────────────────────────────────────────────────
  7317.  
  7318.  
  7319.  
  7320.  
  7321.  Starting Control Panel
  7322.  
  7323.  To start Control Panel, do the following:
  7324.  
  7325.    1.  Switch to Desktop Manager.
  7326.  
  7327.    2.  Choose the Utilities group.
  7328.  
  7329.    3.  Choose Control Panel.
  7330.  
  7331.  
  7332.  When you start Control Panel, it creates a window that contains the
  7333.  following sections:
  7334.  
  7335.    ■   Time
  7336.  
  7337.    ■   Date
  7338.  
  7339.    ■   Cursor Blink
  7340.  
  7341.    ■   Double-Click
  7342.  
  7343.  
  7344.  The following example shows the Control Panel window.
  7345.  
  7346.  (This figure may be found in the printed book).
  7347.  
  7348.  
  7349.  
  7350.  Changing the Time
  7351.  
  7352.  You can use Control Panel to change the system time. The time you set is
  7353.  reflected in any applications that use the system time. You change the time
  7354.  by directly adjusting settings in the Time section in the Control Panel work
  7355.  area. Follow these steps to change the time by using a mouse:
  7356.  
  7357.        Mouse 
  7358.  
  7359.    1.  Click the hours, minutes, or seconds you want to change.
  7360.  
  7361.        (This figure may be found in the printed book).
  7362.  
  7363.    2.  Click the Up arrow to increase the number; click the Down arrow to
  7364.        decrease the number. You can also type a new number.
  7365.  
  7366.  
  7367.  To change the time by using the keyboard, do the following:
  7368.  
  7369.        Keyboard 
  7370.  
  7371.    1.  Press TAB to move to the Time section.
  7372.  
  7373.    2.  Press the RIGHT or LEFT key to select the part of the time (hours,
  7374.        minutes, or seconds) that you want to change.
  7375.  
  7376.    3.  Press the UP key to increase the number; press the DOWN key to
  7377.        decrease the number. You can also type a new number.
  7378.  
  7379.  
  7380.  The system time changes when you move to another section or when you quit
  7381.  Control Panel.
  7382.  
  7383.  
  7384.  Changing the Date
  7385.  
  7386.  Some
  7387.  applications record the date when files are created or edited. You change
  7388.  the system date the same way you change the system time. If you are using a
  7389.  mouse, follow these steps to change the date:
  7390.  
  7391.        Mouse 
  7392.  
  7393.    1.  Click the month, day, or year you want to change.
  7394.  
  7395.        (This figure may be found in the printed book).
  7396.  
  7397.    2.  Click the Up arrow to increase the number; click the Down arrow to
  7398.        decrease the number.
  7399.  
  7400.  
  7401.  If you are using the keyboard, follow these steps to change the date:
  7402.  
  7403.        Keyboard 
  7404.  
  7405.    1.  Press TAB to move to the Date section.
  7406.  
  7407.    2.  Press the RIGHT or LEFT key to select the part of the date (month,
  7408.        day, or year) that you want to change.
  7409.  
  7410.    3.  Press the UP key to increase the number; press the DOWN key to
  7411.        decrease the number. You can also type a new number.
  7412.  
  7413.  
  7414.  
  7415.  
  7416.  Changing the Cursor-Blink Rate
  7417.  
  7418.  Some applications have a cursor or insertion point that blinks. The blink
  7419.  rate is the frequency at which the cursor flashes. The vertical cursor in
  7420.  the Cursor-Blink section reflects the current setting. To change the
  7421.  cursor-blink rate by using a mouse, do the following:
  7422.  
  7423.        Mouse 
  7424.  
  7425.    ■   Click the Right arrow to increase the rate; click the Left arrow to
  7426.        decrease the rate.
  7427.  
  7428.        (This figure may be found in the printed book).
  7429.  
  7430.  
  7431.  Or
  7432.  
  7433.    ■   Drag the scroll box to change the cursor-blink rate.
  7434.  
  7435.  
  7436.  Follow these steps to change the cursor-blink rate by using the keyboard:
  7437.  
  7438.        Keyboard 
  7439.  
  7440.    1.  Press TAB to move to the Cursor-Blink section.
  7441.  
  7442.    2.  Press the RIGHT key to increase the rate; press the LEFT key to
  7443.        decrease the rate.
  7444.  
  7445.  
  7446.  
  7447.  
  7448.  Changing the Mouse Double-Click Rate
  7449.  
  7450.  When you double-click the mouse button, Presentation Manager interprets your
  7451.  action by the speed with which one click follows another. You can change
  7452.  this speed by adjusting the setting in the Double-Click section. Do the
  7453.  following to change the mouse double-click rate:
  7454.  
  7455.        Mouse 
  7456.  
  7457.    ■   Click the Right arrow to increase the rate; click the Left arrow to
  7458.        decrease the rate.
  7459.  
  7460.        (This figure may be found in the printed book).
  7461.  
  7462.  
  7463.  Or
  7464.  
  7465.    ■   Drag the scroll box in the scroll bar.
  7466.  
  7467.  
  7468.  To test the new double-click setting, do the following:
  7469.  
  7470.    ■   Double-click the Test button.
  7471.  
  7472.        The button color changes according to the new double-click rate.
  7473.  
  7474.  
  7475.  
  7476.  
  7477.  Selecting Screen Colors
  7478.  
  7479.  You use the Screen Colors command on the
  7480.  Options menu to adjust the text and background colors on your screen. You
  7481.  can specify color, shade, and amount of color for each screen area.
  7482.  
  7483.  You change colors by first selecting a part of the screen in the Screen
  7484.  Colors list box and then using the Color, Shade, and Amount scroll bars to
  7485.  change the color. The Color scroll bar controls the color; the shade and the
  7486.  intensity of the color are controlled by the other two scroll bars.
  7487.  
  7488.  After you pick a color, experiment to find the combination that you want.
  7489.  You can see your changes in the Sample Window box. The numbers in the Sample
  7490.  Window box represent the red, green, blue (RGB) settings, from 0 through
  7491.  255. The setting 0 0 0 represents no color (black); the setting 255 255 255
  7492.  represents fully saturated color (white). To change screen colors, follow
  7493.  these steps:
  7494.  
  7495.    1.  Select the Options menu and choose the Screen Colors command.
  7496.  
  7497.        The Screen Colors dialog box appears.
  7498.  
  7499.        (This figure may be found in the printed book).
  7500.  
  7501.    2.  In the Screen Colors list box, select the part of the screen or window
  7502.        you want to adjust.
  7503.  
  7504.    3.  To change the color, move to the Color scroll bar. Available colors
  7505.        are shown in the color palette above the scroll bar. Scroll to the
  7506.        right or left to choose a color.
  7507.  
  7508.    4.  To change the brightness, move to the Shade scroll bar and scroll to
  7509.        the right to brighten the color (increase the amount of white); scroll
  7510.        to the left to darken the color.
  7511.  
  7512.        If the Shade scroll box is at the extreme left of the scroll bar, the
  7513.        color is black. If the scroll box is at the extreme right, the color
  7514.        is white.
  7515.  
  7516.    5.  To change the amount of color, move to the Amount scroll bar and
  7517.        scroll to the right for a more vibrant, intense color; scroll to the
  7518.        left for less intensity.
  7519.  
  7520.        If the Amount scroll box is at the extreme left of the scroll bar,
  7521.        adjustments to the Color and Shade scroll bars result in black, white,
  7522.        and shades of gray.
  7523.  
  7524.    6.  To return to the previous color settings, choose the Reset button. The
  7525.        Screen Colors dialog box remains open.
  7526.  
  7527.    7.  To restore the Presentation Manager default color settings, choose the
  7528.        Defaults button. The Screen Colors dialog box remains open.
  7529.  
  7530.    8.  When you finish adjusting your screen colors, choose the OK button.
  7531.  
  7532.  
  7533.  If you have an IBM Enhanced Color Display (ECD) or compatible monitor, you
  7534.  can adjust the screen contrast by using the Screen Colors command. To adjust
  7535.  the contrast, follow these steps:
  7536.  
  7537.    1.  Select the Options menu and choose the Screen Colors command.
  7538.  
  7539.    2.  Choose the Contrast button.
  7540.  
  7541.        The Adjust Screen Contrast dialog box appears.
  7542.  
  7543.    3.  Turn the contrast button on your monitor until the dark and light
  7544.        bands of color appear equally bright.
  7545.  
  7546.    4.  When you finish adjusting the contrast, choose the Cancel button.
  7547.  
  7548.  
  7549.  
  7550.  
  7551.  Changing the Window-Border Width
  7552.  
  7553.  
  7554.  You can adjust the width of window borders by using the Border Width command
  7555.  on the Options menu. However, you cannot change the border width of a
  7556.  fixed-size window, such as the Control Panel window. To change the border
  7557.  width, follow these steps:
  7558.    1.  Select the Options menu and choose the Border Width command.
  7559.  
  7560.        The Border Width dialog box appears.
  7561.  
  7562.        (This figure may be found in the printed book).
  7563.  
  7564.    2.  The Border Width dialog box displays the current width. To change the
  7565.        width, type a new number from 1 through 50. The larger the number, the
  7566.        wider the border.
  7567.  
  7568.    3.  Choose the Set button.
  7569.  
  7570.  
  7571.  
  7572.  
  7573.  Turning Off the Warning Beep
  7574.  
  7575.  When you use MS OS/2, your computer may make a beeping sound─for example,
  7576.  when you press the wrong key. You can turn off the beep by using the Warning
  7577.  Beep command on the Options menu.
  7578.  
  7579.  You can tell if the warning-beep feature is turned on by looking at the
  7580.  Options menu. A check mark appears next to the Warning Beep command.
  7581.  
  7582.  (This figure may be found in the printed book).
  7583.  
  7584.  To turn the beep on or off, do the following:
  7585.  
  7586.    ■   Select the Options menu and choose the Warning Beep command.
  7587.  
  7588.  
  7589.  
  7590.  
  7591.  Changing Mouse Options
  7592.  
  7593.  The Mouse command on the Options menu lets you change which mouse button you
  7594.  press to perform various Presentation Manager tasks. You can switch usage
  7595.  from the left mouse button to the right mouse button (and vice versa) for
  7596.  the following tasks:
  7597.  
  7598.    ■   Selecting and dragging objects (the default setting is to use the left
  7599.        button to select objects and the right button to drag objects such as
  7600.        files).
  7601.  
  7602.    ■   Accessing the Task List (the default setting is to double-click the
  7603.        right button).
  7604.  
  7605.  
  7606.  Follow these steps to switch mouse buttons:
  7607.  
  7608.    1.  Select the Options menu and choose the Mouse command.
  7609.  
  7610.        The Mouse dialog box appears.
  7611.  
  7612.        (This figure may be found in the printed book).
  7613.  
  7614.    2.  Select the mouse type you want to use: Right Handed (the default
  7615.        setting) uses the left mouse button for selecting and the right button
  7616.        for dragging objects; Left Handed reverses the button usage.
  7617.  
  7618.    3.  To change the button you use to display the Task List, select either
  7619.        the Selection Button or the Manipulation Button (the button you use to
  7620.        drag objects).
  7621.  
  7622.    4.  To change the number of clicks required to see the Task List, select
  7623.        Single-Click or Double-Click.
  7624.  
  7625.    5.  Choose the Set button.
  7626.  
  7627.  
  7628.  If you switch mouse buttons, applications that normally use the right button
  7629.  to carry out tasks will use the left button instead.
  7630.  
  7631.  
  7632.  Adjusting the Logo Display Time
  7633.  
  7634.  When you start some Presentation Manager applications, a logo appears before
  7635.  the application screen appears. You can control how long a logo is displayed
  7636.  by using the Logo Display command. The choices are to display the logo until
  7637.  you press ENTER, to display the logo for a specified number of milliseconds,
  7638.  or not to display the logo. To change the logo display time, do the
  7639.  following:
  7640.  
  7641.    1.  Select the Options menu and choose the Logo Display command.
  7642.  
  7643.        The Logo Display dialog box appears.
  7644.  
  7645.        (This figure may be found in the printed book).
  7646.  
  7647.    2.  Select the logo display option you want: Indefinite displays the logo
  7648.        until you press ENTER; None eliminates the logo display; Timed
  7649.        displays the logo for the number of milliseconds you type in the
  7650.        Milliseconds box. You can type a number from 1 through 32,767.
  7651.  
  7652.    3.  To save your changes, choose the Set button.
  7653.  
  7654.  
  7655.  
  7656.  
  7657.  Changing Country Settings
  7658.  
  7659.  You can set variables (such as date, number, and time formats) for a
  7660.  particular country by using the Country command on the Options menu. You can
  7661.  use the predefined settings for each country, modify the existing country
  7662.  settings, or create a special set of settings. To change the
  7663.  country-settings information, follow these steps:
  7664.  
  7665.    1.  Select the Options menu and choose the Country command.
  7666.  
  7667.        The Country dialog box, shown in the following example, appears.
  7668.  
  7669.        (This figure may be found in the printed book).
  7670.  
  7671.    2.  In the Country Settings box, select the appropriate country name. To
  7672.        create a new setting, select Other Country.
  7673.  
  7674.        The country settings automatically change to correspond to the country
  7675.        you select.
  7676.  
  7677.    3.  Make changes to any of the settings you want.
  7678.  
  7679.        For details on completing the Country dialog box, see the information
  7680.        following this procedure list.
  7681.  
  7682.    4.  If you want to return to the original settings, choose the Reset
  7683.        button (the Country dialog box remains open).
  7684.  
  7685.    5.  To save your new country settings, choose the OK button.
  7686.  
  7687.  
  7688.  The following list explains the sections in the Country dialog box:
  7689.  
  7690.    ■   The Country Settings section contains a list of country names. The
  7691.        Other Country entry is used to create your own set of country
  7692.        settings.
  7693.  
  7694.    ■   The Date Format section controls how dates are displayed.
  7695.  
  7696.        (This figure may be found in the printed book).
  7697.  You can choose one of three options: month-day-year (MDY); day-month-year
  7698.  (DMY); or year-month-day (YMD). The Separator box contains the symbol used
  7699.  to separate the day, month, and year─for example, a slash (/) or a period
  7700.  (.).
  7701.  
  7702.    ■   The Time Format section contains two options: a 12-hour-clock option
  7703.        and a 24-hour-clock option.
  7704.  
  7705.        (This figure may be found in the printed book).
  7706.  If the country you choose uses a 12-hour clock, "AM" and "PM" appear in the
  7707.  box. The Separator box contains the symbol used to separate hours and
  7708.  minutes─for example, a colon (:).
  7709.  
  7710.    ■   The Number Format section controls how numbers are displayed.
  7711.  
  7712.        (This figure may be found in the printed book).
  7713.  The 1000 box shows the symbol used to separate the "1" from the "000"─for
  7714.  example, a comma (,). The Decimal box contains the symbol used to separate
  7715.  integers from decimals─for example, a period (.). The List box contains the
  7716.  symbol used to separate lists of numbers. The number of decimal digits
  7717.  displayed is indicated in the Decimal Digits box. If the Leading Zero check
  7718.  box is turned on, a zero is displayed for numbers less than 1─for example,
  7719.  0.59.
  7720.  
  7721.    ■   The Currency Format section controls the currency symbol and its
  7722.        location in relation to a number (as a prefix or a suffix).
  7723.  
  7724.        (This figure may be found in the printed book).
  7725.  
  7726.  
  7727.  
  7728.  
  7729.  Setting Up a Communications Port
  7730.  
  7731.  You use the Communications Port command on the Options menu to set up a
  7732.  serial communications port for a communication device, such as a modem or a
  7733.  serial printer.
  7734.  
  7735.  ────────────────────────────────────────────────────────────────────────────
  7736.  Note
  7737.  
  7738.  If you are setting up a serial printer, check your printer manual to make
  7739.  sure that the port settings you select are correct.
  7740.  ────────────────────────────────────────────────────────────────────────────
  7741.  
  7742.  
  7743.  
  7744.  To set up a communications port, follow these steps:
  7745.  
  7746.    1.  Select the Options menu and choose the Communications Port command.
  7747.  
  7748.        The Communications Port dialog box appears.
  7749.  
  7750.        (This figure may be found in the printed book).
  7751.  
  7752.    2.  Select a port.
  7753.  
  7754.        The settings for that port appear.
  7755.  
  7756.    3.  Select the options you want.
  7757.  
  7758.        For details on the Communications Port dialog box, see the information
  7759.        following this procedure list.
  7760.  
  7761.    4.  Choose the Set button.
  7762.  
  7763.  
  7764.  The following list explains the various sections of the Communications Port
  7765.  dialog box:
  7766.  
  7767.    ■   The Port section connects a communication device to one of three
  7768.        ports: COM1, COM2, or COM3.
  7769.  
  7770.    ■   The Baud Rate section controls the speed at which information is sent
  7771.        and received. Examples of baud rates include 1200, 1800, 2400, and
  7772.        7200.
  7773.  
  7774.    ■   The Word Length section controls the number of bits used in sending
  7775.        individual characters.
  7776.  
  7777.    ■   The Parity section sets how your communication device checks for
  7778.        errors in sending and receiving information. If your device checks for
  7779.        parity, select the Even or Odd option where appropriate; if it does
  7780.        not check for parity, select the None option.
  7781.  
  7782.    ■   The Stop Bits section controls end-character signals.
  7783.  
  7784.    ■   The Handshake section controls how a communication device signals the
  7785.        beginning and end of a transmission.
  7786.  
  7787.  
  7788.  For information on the settings for your particular communication device,
  7789.  see your owner's manual.
  7790.  
  7791.  
  7792.  Adding a Font File
  7793.  
  7794.  Applications use fonts for displaying text on your screen and for printing.
  7795.  These fonts are contained in font files; one font file may contain several
  7796.  fonts. For example, the font file TIMESfor Times Roman, Times Roman Bold,
  7797.  and Times Roman Italic, among others. Font files were copied to your hard
  7798.  disk when you installed MS OS/2 and are located in the \eOS2\eDLL directory.
  7799.  To add a font, follow these steps:
  7800.  
  7801.    1.  Select the Installation menu and choose the Add Font command.
  7802.  
  7803.        The Add Font dialog box, shown in the following example, appears,
  7804.        asking you to insert in drive A the disk that contains the font file.
  7805.  
  7806.        (This figure may be found in the printed book).
  7807.  
  7808.    2.  Insert the font-file disk in the disk drive or type the path of the
  7809.        directory that contains the font files.
  7810.  
  7811.    3.  Choose the Add button.
  7812.  
  7813.        The Add New Font dialog box appears, displaying the font files and
  7814.        font names on the disk. Each font file contains several fonts.
  7815.  
  7816.    4.  In the Font Files box, select the font file that contains the font you
  7817.        want to add. You can select more than one file by clicking each
  7818.        filename or, if you are using the keyboard, by pressing the DIRECTION
  7819.        keys to move the selection cursor to each file and then pressing the
  7820.        SPACEBAR to select each font file.
  7821.  
  7822.        Fonts contained in the selected font file appear in the Font Names
  7823.        box.
  7824.  
  7825.    5.  To change the directory to which the font files will be copied, edit
  7826.        the path shown in the Drive/Directory box.
  7827.  
  7828.    6.  Choose the Add button.
  7829.  
  7830.  
  7831.  If you change the directory to which the font files are copied, you may also
  7832.  have to edit your CONFIG.SYS file. See Chapter 15, "Using MS OS/2
  7833.  Configuration Commands," for more information on changing this file.
  7834.  
  7835.  
  7836.  Deleting a Font File
  7837.  
  7838.  You can remove fonts by using the Delete Font command. Because font files
  7839.  contain several fonts, you must first delete all the fonts before you can
  7840.  delete the file itself. To delete a font, follow these steps:
  7841.  
  7842.    1.  Select the Installation menu and choose the Delete Font command.
  7843.  
  7844.        The Delete Font dialog box appears, displaying the font files and font
  7845.        names on your system.
  7846.  
  7847.        (This figure may be found in the printed book).
  7848.  
  7849.    2.  In the Font Files box, select the font file that contains the font you
  7850.        want to delete (font names appear in the Font Names box).
  7851.  
  7852.    3.  In the Font Names box, select the font you want to delete.
  7853.  
  7854.    4.  Choose the Delete button.
  7855.  
  7856.        A dialog box appears, asking you to confirm deleting the font.
  7857.  
  7858.    5.  Choose the Yes button to delete the font.
  7859.  
  7860.        A dialog box appears, asking you if you want to delete the font file.
  7861.        Choose the Yes button to delete the file; choose No to delete the font
  7862.        from the list of installed fonts (the font file remains in the
  7863.        directory).
  7864.  
  7865.  
  7866.  .ET
  7867.  
  7868.  
  7869.  Quitting Control Panel
  7870.  
  7871.  Once you finish adjusting your system settings, you can quit Control Panel.
  7872.  To quit Control Panel, do the following:
  7873.  
  7874.    ■   Select the Options menu and choose the Exit command.
  7875.  
  7876.  
  7877.  .RT
  7878.  
  7879.  
  7880.  
  7881.  
  7882.  
  7883.  
  7884.  Chapter 6  Using System Editor
  7885.  ────────────────────────────────────────────────────────────────────────────
  7886.  
  7887.  
  7888.  
  7889.  
  7890.  Introduction
  7891.  
  7892.  System Editor is a Presentation Manager application that you can use to edit
  7893.  data files, such as your CONFIG.SYS file or any of your own data files. This
  7894.  chapter describes how to use System Editor to perform the following tasks:
  7895.  
  7896.    ■   Formatting text
  7897.  
  7898.    ■   Moving and copying text
  7899.  
  7900.    ■   Searching for and replacing text
  7901.  
  7902.    ■   Changing text fonts
  7903.  
  7904.    ■   Changing display colors
  7905.  
  7906.    ■   Working with text files
  7907.  
  7908.  
  7909.  
  7910.  
  7911.  ────────────────────────────────────────────────────────────────────────────
  7912.  Note
  7913.  
  7914.  All examples of filenames and directory names in this chapter use the file
  7915.  allocation table (FAT) file system, which is the file system used by DOS and
  7916.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  7917.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  7918.  High-Performance File System."
  7919.  ────────────────────────────────────────────────────────────────────────────
  7920.  
  7921.  
  7922.  
  7923.  
  7924.  Starting System Editor
  7925.  
  7926.  During installation, MS OS/2 adds System Editor to the Main group in Desktop
  7927.  Manager. To start System Editor from the Main group, follow these steps:
  7928.  
  7929.    ■   Switch to the Main-group window and choose System Editor.
  7930.  
  7931.  
  7932.  When you start System Editor, it appears in a window on your screen, as
  7933.  shown in the following example.
  7934.  
  7935.  (This figure may be found in the printed book).
  7936.  
  7937.  
  7938.  
  7939.  Entering Text
  7940.  
  7941.  You can start entering or editing text as soon as you start System Editor.
  7942.  The insertion point moves to the right as you type.
  7943.  
  7944.  
  7945.  Wrapping Text
  7946.  
  7947.  System Editor includes a word-wrap option. As you type, the text is
  7948.  automatically "wrapped" to the next line in the work area and remains within
  7949.  the borders of the window. If you want text to remain within the borders of
  7950.  the window, you can turn on the word-wrap option.
  7951.  
  7952.  If you do not want text to wrap onto the next line, you can turn off the
  7953.  word-wrap option. When the word-wrap option is turned off, text you type
  7954.  extends beyond the borders of the window and System Editor automatically
  7955.  scrolls the text to the left so that the insertion point remains visible. To
  7956.  turn the word-wrap option on or off, do the following:
  7957.  
  7958.    ■   Select the Options menu and choose the Word Wrap command.
  7959.  
  7960.  
  7961.  If the word-wrap option is turned on, you will see a check mark next to the
  7962.  Word Wrap command. If the word-wrap option is turned off, the check mark
  7963.  disappears.
  7964.  
  7965.  
  7966.  Moving the Insertion Point
  7967.  
  7968.  When you start System Editor, the insertion point appears in the upper-left
  7969.  corner of the work area. You can move the insertion point to wherever you
  7970.  want to insert or edit text. To move the insertion point by using a mouse,
  7971.  do the following:
  7972.  
  7973.        Mouse 
  7974.  
  7975.    ■   Click the place where you want the insertion point to appear.
  7976.  
  7977.  
  7978.  The following list describes how to move the insertion point by using the
  7979.  keyboard:
  7980.  
  7981.  To move                           Press
  7982.  ────────────────────────────────────────────────────────────────────────────
  7983.  
  7984.  Up one line                       UP
  7985.  
  7986.  Down one line                     DOWN
  7987.  
  7988.  Left one character                LEFT
  7989.  
  7990.  Right one character               RIGHT
  7991.  
  7992.  To the beginning of the current   CTRL+LEFT
  7993.  or previous word
  7994.  
  7995.  To the beginning of the next      CTRL+RIGHT
  7996.  word
  7997.  
  7998.  To the beginning of the current   HOME
  7999.  line
  8000.  
  8001.  To the end of the current line    END
  8002.  
  8003.  To the beginning of the file      CTRL+HOME
  8004.  
  8005.  To the end of the file            CTRL+END
  8006.  
  8007.  
  8008.  
  8009.  Selecting Text
  8010.  
  8011.  Some editing activities in System Editor require you to select the text you
  8012.  want to affect. For example, if you want to replace existing text with new
  8013.  text, you must first select the text you want to replace. To select text by
  8014.  using a mouse, do the following:
  8015.  
  8016.    ■   Drag the pointer across the text you want to select.
  8017.  
  8018.        (This figure may be found in the printed book).
  8019.  
  8020.  
  8021.  
  8022.  
  8023.    ■   Double-click a word to quickly select it.
  8024.  
  8025.        To select text by using the keyboard, do the following:
  8026.  
  8027.         Keyboard 
  8028.        1.  Press the DIRECTION keys to move the insertion point to the
  8029.            beginning of the text you want to select.
  8030.  
  8031.        2.  Press and hold down SHIFT and press the DIRECTION keys to move the
  8032.            insertion point to the end of the text you want to select.
  8033.  
  8034.  
  8035.  
  8036.  The following list describes other methods of selecting text by using the
  8037.  keyboard. All selections described in the following list begin at the
  8038.  insertion point.
  8039.  
  8040.  To select text                    Press
  8041.  ────────────────────────────────────────────────────────────────────────────
  8042.  
  8043.  To the beginning of the current   CTRL+SHIFT+LEFT
  8044.  or previous word
  8045.  
  8046.  To the beginning of the next      CTRL+SHIFT+RIGHT
  8047.  word
  8048.  
  8049.  To the beginning of the current   SHIFT+HOME
  8050.  line
  8051.  
  8052.  To the end of the current line    SHIFT+END
  8053.  
  8054.  To the beginning of a file        CTRL+SHIFT+HOME
  8055.  
  8056.  To the end of a file              CTRL+SHIFT+END
  8057.  
  8058.  To cancel a selection, do the following:
  8059.  
  8060.  Mouse                             Keyboard
  8061.  ────────────────────────────────────────────────────────────────────────────
  8062.  
  8063.  Click the mouse button.           Press any DIRECTION key.
  8064.  
  8065.  
  8066.  Extending a Selection
  8067.  
  8068.  If you want to include additional text in an existing selection, you can
  8069.  extend the selection by using a mouse or the keyboard. To extend a selection
  8070.  of text, do the following:
  8071.  
  8072.  Mouse                             Keyboard
  8073.  ────────────────────────────────────────────────────────────────────────────
  8074.  
  8075.  Press and hold down SHIFT and     Press and hold down SHIFT, then press
  8076.  drag the pointer across the       the DIRECTION keys to select the
  8077.  additional text you want to       additional text.
  8078.  select.
  8079.  
  8080.  
  8081.  Selecting an Entire File
  8082.  
  8083.  You may want to select all of the text in your file; for example, you may
  8084.  want to copy the contents of an entire file and paste them into another
  8085.  file. To select an entire file, do the following:
  8086.  
  8087.    ■   Select the Edit menu and choose the Select All command.
  8088.  
  8089.  
  8090.  
  8091.  
  8092.  Inserting and Replacing Text
  8093.  
  8094.  With System Editor, you can insert new text between existing text or replace
  8095.  existing text by typing over it. To insert new text, do the following:
  8096.  
  8097.    ■   Move the insertion point to the location where you want to insert text
  8098.        and start typing.
  8099.  
  8100.        As you insert new text, existing text moves to the right of the
  8101.        insertion point.
  8102.  
  8103.  
  8104.  You can type text exactly as you want it to appear. The following keys can
  8105.  be used to insert and replace text:
  8106.  
  8107.  To                                Press
  8108.  ────────────────────────────────────────────────────────────────────────────
  8109.  
  8110.  Insert one space                  SPACEBAR
  8111.  
  8112.  Delete a character to the left    BACKSPACE
  8113.  of the insertion point
  8114.  
  8115.  Delete a character to the right   DEL
  8116.  of the insertion point
  8117.  
  8118.  End a line of text                ENTER
  8119.  
  8120.  Insert a tab stop (six character  TAB
  8121.  spaces).
  8122.  
  8123.  To insert a blank line in a line of text, do the following:
  8124.  
  8125.    ■   Move the insertion point to the beginning of the text that you want to
  8126.        move to a new line and press ENTER.
  8127.  
  8128.  
  8129.  To join two lines of text, do the following:
  8130.  
  8131.    ■   Move the insertion point to the end of the line and press DEL.
  8132.  
  8133.  
  8134.  Or
  8135.  
  8136.    ■   Move the insertion point to the beginning of the next line and press
  8137.        BACKSPACE.
  8138.  
  8139.  
  8140.  To replace existing text, do the following:
  8141.  
  8142.    1.  Select the text you want to replace.
  8143.  
  8144.    2.  Type new text.
  8145.  
  8146.  
  8147.  
  8148.  
  8149.  Scrolling Text in a Window
  8150.  
  8151.  If the text in a file is longer or wider than can be displayed in one
  8152.  window, you can scroll through the file to view the text. The following list
  8153.  explains how to scroll text using a mouse:
  8154.  
  8155.  To scroll                         Click
  8156.  ────────────────────────────────────────────────────────────────────────────
  8157.  
  8158.  Up one line                       Up scroll arrow
  8159.  
  8160.  Down one line                     Down scroll arrow
  8161.  
  8162.  Right                             Right scroll arrow
  8163.  
  8164.  Left                              Left scroll arrow
  8165.  
  8166.  Up one window                     Area above the scroll box in the
  8167.                                    vertical scroll bar
  8168.  
  8169.  Down one window                   Area below the scroll box in the
  8170.                                    vertical scroll bar
  8171.  
  8172.  Right one window                  Area to the right of the scroll box in
  8173.                                    the horizontal scroll bar
  8174.  
  8175.  Left one window                   Area to the left of the scroll box in
  8176.                                    the horizontal scroll bar
  8177.  
  8178.  You can quickly scroll through a file by dragging either the vertical or
  8179.  horizontal scroll box.
  8180.  
  8181.  ────────────────────────────────────────────────────────────────────────────
  8182.  Note
  8183.  
  8184.  You do not see a horizontal scroll bar when the word-wrap option is turned
  8185.  on because the text does not extend past the right window border.
  8186.  ────────────────────────────────────────────────────────────────────────────
  8187.  
  8188.  
  8189.  
  8190.  To scroll through a file by using the keyboard, do the following (actions
  8191.  involving DIRECTION keys are based on the insertion point being at a window
  8192.  border):
  8193.  
  8194.  To scroll                         Press
  8195.  ────────────────────────────────────────────────────────────────────────────
  8196.  
  8197.  Up one line                       UP
  8198.  
  8199.  Down one line                     DOWN
  8200.  
  8201.  Right                             RIGHT
  8202.  
  8203.  Left                              LEFT
  8204.  
  8205.  Up one window                     PAGE UP
  8206.  
  8207.  Down one window                   PAGE DOWN
  8208.  
  8209.  To the beginning of the current   HOME
  8210.  line
  8211.  
  8212.  To the end of the current line    END
  8213.  
  8214.  
  8215.  
  8216.  ────────────────────────────────────────────────────────────────────────────
  8217.  Note
  8218.  
  8219.  You do not see a horizontal scroll bar when the word-wrap option is turned
  8220.  on because the text does not extend past the right window border.
  8221.  ────────────────────────────────────────────────────────────────────────────
  8222.  
  8223.  
  8224.  
  8225.  
  8226.  Editing Text
  8227.  
  8228.  You edit a file with System Editor by using commands from the Edit and
  8229.  Options menus. You can delete text, change fonts, move or copy text, and
  8230.  search for specific text. You can also undo your last edit.
  8231.  
  8232.  
  8233.  Moving Text
  8234.  
  8235.  In System Editor, you can move text from one location in a file to another
  8236.  by using the Cut and Paste commands on the Edit menu. If you are working
  8237.  with another text-editing application that also supports cut and paste
  8238.  operations, you can move text between applications. Follow these steps to
  8239.  move text:
  8240.  
  8241.    1.  Select the text you want to move.
  8242.  
  8243.    2.  Select the Edit menu and choose the Cut command.
  8244.  
  8245.    3.  Move the insertion point to the location in your file where you want
  8246.        the text to appear.
  8247.  
  8248.    4.  Select the Edit menu and choose the Paste command.
  8249.  
  8250.  
  8251.  
  8252.  
  8253.  Copying Text
  8254.  
  8255.  If you want text to appear in more than one location in a file, you can copy
  8256.  and paste it by using the Copy and Paste commands on the Edit menu. Follow
  8257.  these steps to copy text:
  8258.  
  8259.    1.  Select the text you want to copy.
  8260.  
  8261.    2.  Select the Edit menu and choose the Copy command.
  8262.  
  8263.    3.  Move the insertion point to the location in your file where you want
  8264.        the copied text to appear.
  8265.  
  8266.    4.  Select the Edit menu and choose the Paste command.
  8267.  
  8268.  
  8269.  
  8270.  
  8271.  Changing the Text Font
  8272.  
  8273.  With System Editor, you can change the typeface, size, and type style of
  8274.  your text to any typeface, size, or style that is installed on your system.
  8275.  Typefaces, for example, include Courier, Helvetica, and System Proportional.
  8276.  The type size is the height of the type measured in points; for example,
  8277.  Courier may be available in 10-, 12-, 14-, and 16-point sizes. Examples of
  8278.  type styles include bold, italic, and underscore. You change the typeface,
  8279.  size, and type style by using the Set Font command on the Options menu. To
  8280.  change the text font, follow these steps:
  8281.  
  8282.    1.  Select the Options menu and choose the Set Font command.
  8283.  
  8284.        The Set Font dialog box appears.
  8285.  
  8286.        (This figure may be found in the printed book).
  8287.  
  8288.    2.  Select the typeface you want from the Font box.
  8289.  
  8290.    3.  Select the text size you want from the Size box.
  8291.  
  8292.    4.  Select the type style you want from the Typestyle box.
  8293.  
  8294.        .ET As you select different typefaces, sizes, and type styles, the
  8295.        Font Sample box displays an example of how the text will appear.
  8296.  
  8297.        (This figure may be found in the printed book).
  8298.  
  8299.    5.  If you decide to keep your selections, choose the Set button.
  8300.  
  8301.  
  8302.  .RT
  8303.  
  8304.  ────────────────────────────────────────────────────────────────────────────
  8305.  Note
  8306.  
  8307.  Choosing the Apply button changes the text font based on the selections you
  8308.  made in the Set Font dialog box. The dialog box remains open so that you can
  8309.  make additional changes. Choosing the Cancel button after choosing the Apply
  8310.  button does not cancel your selections. Instead, it closes the dialog box.
  8311.  The selections you made are applied to the text in the window.
  8312.  ────────────────────────────────────────────────────────────────────────────
  8313.  
  8314.  
  8315.  
  8316.  
  8317.  Deleting Text
  8318.  
  8319.  To delete selected text, do the following:
  8320.  
  8321.    ■   Press BACKSPACE or DEL.
  8322.  
  8323.  
  8324.  Or
  8325.  
  8326.    ■   Select the Edit menu and choose the Clear command.
  8327.  
  8328.  
  8329.  
  8330.  
  8331.  Undoing an Edit
  8332.  
  8333.  You can use the Undo command on the Edit menu to cancel your last edit. For
  8334.  example, you may have deleted text that you want to keep, or you may have
  8335.  copied text to the wrong location in your file. Choosing the Undo command
  8336.  immediately after your last edit restores the text to the way it was before
  8337.  you changed it.
  8338.  
  8339.  The Undo command name on the Edit menu changes to reflect the last edit you
  8340.  made. For example, if you deleted text, the Undo command appears on the Edit
  8341.  menu as "Undo Clear." If you typed new text, the Undo command appears as
  8342.  "Undo Typing." To undo your last edit, follow this step:
  8343.  
  8344.    ■   Select the Edit menu and choose the Undo command.
  8345.  
  8346.  
  8347.  
  8348.  
  8349.  Searching for and Replacing Text
  8350.  
  8351.  With System Editor, you can search for specific text by using the Find
  8352.  command on the Edit menu. You can also replace one or more occurrences of
  8353.  existing text with new text that you specify.
  8354.  
  8355.  When you use the Find command, you can start your search at any point in a
  8356.  file. You can also specify whether System Editor should match all upperand
  8357.  lowercase characters in the search text. Follow these steps to search for
  8358.  text:
  8359.  
  8360.    1.  1 Move the insertion point to where you want the search to begin.
  8361.  
  8362.    2.  2 Select the Edit menu and choose the Find command.
  8363.  
  8364.        The Find dialog box appears.
  8365.  
  8366.        (This figure may be found in the printed book).
  8367.  
  8368.    3.  3 In the Find box, type the characters or words you want System Editor
  8369.        to find.
  8370.  
  8371.    4.  4 You can customize your search by selecting one or more of the
  8372.        following options:
  8373.        ■   If you want System Editor to replace the text it finds with new
  8374.            text, type the new text in the Change To box.
  8375.  
  8376.        ■   If you want System Editor to ignore capitalization when it
  8377.            searches for text, turn off the Case Sensitive check box. System
  8378.            Editor is preset to find only those occurrences with the same
  8379.            arrangement of upper- and lowercase letters.
  8380.  
  8381.        ■   If you want System Editor to go to the beginning of your file and
  8382.            continue searching, turn on the Wrap check box. System Editor is
  8383.            preset to end the search at the end of a file.
  8384.  
  8385.  
  8386.  
  8387.  
  8388.  
  8389.    1.  5 Choose one of the following buttons to carry out the action you
  8390.        want:
  8391.  
  8392.  To                                Choose
  8393.  ────────────────────────────────────────────────────────────────────────────
  8394.  
  8395.  Search for specified text         Find
  8396.  
  8397.  To change the text that was       Change, Then Find
  8398.  found to new text, then search
  8399.  for another occurrence of the
  8400.  text
  8401.  
  8402.  To change the found text to new   Change
  8403.  text
  8404.  
  8405.  To change all occurrences of the  Change All
  8406.  specified text to new text
  8407.  
  8408.  Cancel the search                 Cancel
  8409.  
  8410.  
  8411.  
  8412.  
  8413.  System Editor searches for the text starting from the insertion point to the
  8414.  end of your file and selects the first occurrence of the specified text. If
  8415.  the Wrap check box is turned on when System Editor reaches the end of the
  8416.  file, it continues the search from the beginning of the file until it
  8417.  reaches the insertion point. If System Editor does not find any occurrences
  8418.  of the specified text, a message appears.
  8419.  
  8420.  (This figure may be found in the printed book).
  8421.  
  8422.  To close the message, do the following:
  8423.  
  8424.    ■   Choose the OK button.
  8425.  
  8426.  
  8427.  The Find dialog box remains open so that you can search for other
  8428.  occurrences of the text or correct any typing mistakes you made in the Find
  8429.  box. To continue searching for the text, do the following:
  8430.  
  8431.    ■   Choose the Find button.
  8432.  
  8433.  
  8434.  If you have finished your search, you can close the Find dialog box by doing
  8435.  the following:
  8436.  
  8437.    ■   Choose the Cancel button.
  8438.  
  8439.  
  8440.  
  8441.  
  8442.  Changing the Display Colors
  8443.  
  8444.  You can use the Set Colors command on the Options menu to change the text
  8445.  and background colors of your work area. To change text and background
  8446.  colors, follow these steps:
  8447.  
  8448.    1.  Select the Options menu and choose the Set Colors command.
  8449.  
  8450.        The Set Colors dialog box appears.
  8451.  
  8452.        (This figure may be found in the printed book).
  8453.  
  8454.    2.  Select the text color you want from the list of colors in the
  8455.        Foreground box.
  8456.  
  8457.    3.  Select the background color you want from the list of colors in the
  8458.        Background box.
  8459.  
  8460.        As you select colors, each selection is reflected in the Color Sample
  8461.        box.
  8462.  
  8463.    4.  If you decide to keep your color selections, choose the Set button.
  8464.  
  8465.  
  8466.  
  8467.  
  8468.  ────────────────────────────────────────────────────────────────────────────
  8469.  Note
  8470.  
  8471.  Choosing the Apply button changes the colors based on your selections in the
  8472.  Set Colors dialog box. The dialog box remains open so that you can make
  8473.  additional changes. Choosing the Cancel button after choosing the Apply
  8474.  button does not cancel your selections. Instead, it closes the dialog box.
  8475.  The selections you made are applied to the window.
  8476.  ────────────────────────────────────────────────────────────────────────────
  8477.  
  8478.  
  8479.  
  8480.  
  8481.  Working with Files
  8482.  
  8483.  The text you enter or edit using System Editor is stored in its own unique
  8484.  text file when you save it. Text files are represented by data-file icons in
  8485.  directory windows in File Manager. You can create, open, and save text files
  8486.  by using commands on the File menu in System Editor.
  8487.  
  8488.  
  8489.  Opening a File
  8490.  
  8491.  You can open a new or existing file in the System Editor window. If you open
  8492.  a file when another file is open, System Editor closes the current file.
  8493.  
  8494.  Creating a New File
  8495.  
  8496.  To create a new file in System Editor, do the following:
  8497.  
  8498.    ■   Select the File menu and choose the New command.
  8499.  
  8500.        The word "Untitled" appears in the title bar of the file.
  8501.  
  8502.  
  8503.  
  8504.  Opening an Existing File
  8505.  
  8506.  With System Editor, you can edit an existing file on any drive or in any
  8507.  directory. To open a file, you use the Open command on the File menu. To
  8508.  open a file, do the following:
  8509.  
  8510.    1.  Select the File menu and choose the Open command.
  8511.  
  8512.        The Open dialog box appears, listing the subdirectories and files
  8513.        located in the current directory.
  8514.  
  8515.        (This figure may be found in the printed book).
  8516.  
  8517.    2.  To open a file located on a different drive or in a different
  8518.        directory, select the drive or directory you want from the Directories
  8519.        box, then choose the OK button.
  8520.  
  8521.        You can also type the path for the file in the File Name box, then
  8522.        press ENTER. For example, if you want to open a file on drive A in the
  8523.        MEMOS directory, type a:\ememos\e, then press ENTER. If the file you
  8524.        want to open is in the parent directory of the directory shown in the
  8525.        Directory Is line, type .., then press ENTER. .ET Files located on the
  8526.        drive or in the directory you specified appear in the Files box.
  8527.  
  8528.        (This figure may be found in the printed book).
  8529.  .RT
  8530.  
  8531.    3.  Select the file you want to open.
  8532.  
  8533.    4.  Choose the OK button.
  8534.  
  8535.    5.  If you have a file currently open when you use the Open command,
  8536.        System Editor automatically closes that file. If you made changes to
  8537.        the file, System Editor displays a message, asking if you want to save
  8538.        the changes. You can close the file in one of several ways. The
  8539.        following options are offered before the current file is closed and
  8540.        the new file is opened:
  8541.  
  8542.  To                                Choose
  8543.  ────────────────────────────────────────────────────────────────────────────
  8544.  
  8545.  Save changes                      Save
  8546.  
  8547.  Save changes using a new          Save As
  8548.  filename
  8549.  
  8550.  Discard changes                   Discard
  8551.  
  8552.  Continue working in the current   Cancel
  8553.  file
  8554.  
  8555.  Display Help information          Help
  8556.  
  8557.  
  8558.  
  8559.  
  8560.  
  8561.  Saving a File
  8562.  
  8563.  When you create a new
  8564.  file, or when you finish working in a file, you can save your changes using
  8565.  two System Editor commands: Save As and Save.
  8566.  
  8567.  Saving a New File
  8568.  
  8569.  You use the Save As command to name and save a new file. You can use this
  8570.  command to save a file in the current directory, or you can save the file on
  8571.  another drive or in another directory. Follow these steps to save a new
  8572.  file:
  8573.  
  8574.    1.  Select the File menu and choose the Save As command.
  8575.  
  8576.        The Save As dialog box appears, listing the subdirectories contained
  8577.        in the current directory.
  8578.  
  8579.        (This figure may be found in the printed book).
  8580.  
  8581.    2.  If you want to save the file in the current directory, type a name for
  8582.        the file.
  8583.  
  8584.        If you want to save the file on another drive or in another directory,
  8585.        type the path followed by the filename; for example, if you want to
  8586.        name your file MYMEMO and save it in the MEMOS directory on drive A,
  8587.        type A:\ememos\emymemo.
  8588.  
  8589.    3.  Choose the Type button.
  8590.  
  8591.        The Type dialog box appears, displaying a list of type attributes for
  8592.        the file.
  8593.  
  8594.        (This figure may be found in the printed book).
  8595.  
  8596.    4.  If the file is a text file, select Plain Text; if the file is an MS
  8597.        OS/2 command file (a file with a .CMD filename extension), select OS/2
  8598.        Command File; if the file is a DOS command file (a file with a .BAT
  8599.        filename extension), select DOS Command File.
  8600.  
  8601.    5.  Choose the Set button.
  8602.  
  8603.        The Save As dialog box appears again.
  8604.  
  8605.    6.  Choose the OK button.
  8606.  
  8607.  
  8608.  If you type a filename that already exists, a message appears, asking if you
  8609.  want to replace the existing file with the file you are saving. To replace
  8610.  the existing file, do the following:
  8611.  
  8612.    ■   Choose the Yes button.
  8613.  
  8614.  
  8615.  If you do not want to replace the existing file, do the following:
  8616.  
  8617.    ■   Choose the No button.
  8618.  
  8619.  
  8620.  
  8621.  Saving Your Changes
  8622.  
  8623.  The Save command saves your changes. To save changes to the current file, do
  8624.  the following:
  8625.  
  8626.    ■   Select the File menu and choose the Save command.
  8627.  
  8628.  
  8629.  
  8630.  Using the Autosave Command
  8631.  
  8632.  You can use the Autosave command to save the current file automatically
  8633.  after a specified number of changes have been made. To use the Autosave
  8634.  command, the file you are working on must already have a name. You cannot
  8635.  use the Autosave command on an unnamed file. To use the Autosave command,
  8636.  follow these steps:
  8637.  
  8638.    1.  Select the File menu and choose the Autosave command.
  8639.  
  8640.        The Autosave dialog box appears.
  8641.  
  8642.        (This figure may be found in the printed book).
  8643.  
  8644.    2.  Turn on the Autosave On check box.
  8645.  
  8646.    3.  Move to the Number of Changes Between Saves box and type the number
  8647.        you want.
  8648.  
  8649.        If you are using a mouse, clicking the arrows changes the number;
  8650.        clicking the Down arrow decreases the number by one, clicking the Up
  8651.        arrow increases the number by one.
  8652.  
  8653.    4.  Choose the Set button.
  8654.  
  8655.  
  8656.  Even if you use the Autosave command, remember to save your file before
  8657.  quitting System Editor─this saves any last-minute changes.
  8658.  
  8659.  
  8660.  Printing a File
  8661.  
  8662.  There are two ways you can print a file:
  8663.  
  8664.    ■   By using the Print command in File Manager
  8665.  
  8666.    ■   By dragging the file icon from a directory window in File Manager onto
  8667.        the Print Manager icon or into the Print Manager window.
  8668.  
  8669.  
  8670.  For more information on printing files by using File Manager, see Chapter 3,
  8671.  "Using File Manager."
  8672.  
  8673.  
  8674.  Deleting a File
  8675.  
  8676.  To delete a file, you can use the Delete command in File Manager, or you can
  8677.  use the del command in the MS OS/2 command interpreter, cmd. For more
  8678.  information on deleting files in File Manager, see Chapter 3, "Using File
  8679.  Manager." For more information on using the del command in cmd, see Chapter
  8680.  8, "Running Cmd."
  8681.  
  8682.  
  8683.  Quitting System Editor
  8684.  
  8685.  You quit System Editor by using the Exit command on the File menu. To quit
  8686.  System Editor, do the following:
  8687.  
  8688.    1.  1 Select the File menu and choose the Exit command.
  8689.  
  8690.        If you have unsaved changes in your file, a dialog box appears.
  8691.  
  8692.    2.  Choose one of the following options:
  8693.  
  8694.  To                                Choose
  8695.  ────────────────────────────────────────────────────────────────────────────
  8696.  
  8697.  Quit System Editor and save your  Save
  8698.  changes
  8699.  
  8700.  Quit System Editor and save your  Save As
  8701.  changes using a new filename
  8702.  
  8703.  Quit System Editor and discard    Discard
  8704.  your changes
  8705.  
  8706.  Cancel the dialog box and         Cancel
  8707.  continue working in the current
  8708.  file
  8709.  
  8710.  Display Help Information          Help
  8711.  
  8712.  
  8713.  
  8714.  
  8715.  
  8716.  Keyboard Reference
  8717.  
  8718.  The following list describes the different keys that you can use in System
  8719.  Editor to select, scroll, and edit text. Use this list as a reference when
  8720.  using your keyboard to work with System Editor.
  8721.  
  8722.  To                                Press
  8723.  ────────────────────────────────────────────────────────────────────────────
  8724.  
  8725.  Insert a space                    SPACEBAR
  8726.  
  8727.  Insert a blank line               ENTER
  8728.  
  8729.  Insert a tab stop                 TAB
  8730.  
  8731.  Delete the character to the       DEL
  8732.  right of the insertion point
  8733.  
  8734.  Delete the character to the left  BACKSPACE
  8735.  of the insertion point
  8736.  
  8737.  Move the insertion point up one   UP
  8738.  line
  8739.  
  8740.  
  8741.  
  8742.  To                                Press
  8743.  ────────────────────────────────────────────────────────────────────────────
  8744.  
  8745.  Move the insertion point down     DOWN
  8746.  one line
  8747.  
  8748.  Move the insertion point right    RIGHT
  8749.  one character
  8750.  
  8751.  Move the insertion point left     LEFT
  8752.  one character
  8753.  
  8754.  Move the insertion point to the   CTRL+RIGHT
  8755.  beginning of the next word
  8756.  
  8757.  Move the insertion point to the   CTRL+LEFT
  8758.  beginning of the current or
  8759.  previous word
  8760.  
  8761.  Move the insertion point to the   HOME
  8762.  beginning of the line
  8763.  
  8764.  Move the insertion point to the   END
  8765.  end of the line
  8766.  
  8767.  Move the insertion point to the   CTRL+HOME
  8768.  beginning of a file
  8769.  
  8770.  Move the insertion point to the   CTRL+END
  8771.  end of a file
  8772.  
  8773.  Scroll down one window            PAGE DOWN
  8774.  
  8775.  Scroll up one window              PAGE UP
  8776.  
  8777.  Select text to the right of the   SHIFT+RIGHT
  8778.  insertion point
  8779.  
  8780.  Select text to the left of the    SHIFT+LEFT
  8781.  insertion point
  8782.  
  8783.  Select text below the insertion   SHIFT+DOWN
  8784.  point
  8785.  
  8786.  Select text above the insertion   SHIFT+UP
  8787.  point
  8788.  
  8789.  Select text from the insertion    SHIFT+HOME
  8790.  point to the beginning of the
  8791.  current line
  8792.  
  8793.  Select text from the insertion    SHIFT+END
  8794.  point to the end of the current
  8795.  line
  8796.  
  8797.  Select text from the insertion    CTRL+SHIFT+RIGHT
  8798.  point to the beginning of the
  8799.  next word
  8800.  
  8801.  Select text from the insertion    CTRL+SHIFT+LEFT
  8802.  point to the beginning of the
  8803.  current or previous word
  8804.  
  8805.  
  8806.  
  8807.  
  8808.  
  8809.  
  8810.  
  8811.  
  8812.  Chapter 7  Using MS OS/2 Command Reference
  8813.  ────────────────────────────────────────────────────────────────────────────
  8814.  
  8815.  
  8816.  
  8817.  
  8818.  Introduction
  8819.  
  8820.  MS OS/2 Command Reference is a Presentation Manager application that you can
  8821.  use to view the contents of the Microsoft Operating System/2 Command
  8822.  Reference on your computer. When you start MS OS/2 Command Reference, the
  8823.  table of contents for the Microsoft Operating System/2 Command Reference
  8824.  appears in a window. From the table of contents, you can view information
  8825.  about specific topics and commands, and you can search and print topic
  8826.  information and use the Bookmark feature to keep track of topics you view
  8827.  most often.
  8828.  
  8829.  MS OS/2 Command Reference is similar to Help. The menus and commands are
  8830.  almost identical, and the way you use them is exactly the same. The tasks
  8831.  presented in this chapter can also be accomplished by using the commands in
  8832.  Help. The difference is that, with MS OS/2 Command Reference, you are
  8833.  viewing and working with the information in the Microsoft Operating System/2
  8834.  Command Reference. With Help, you are viewing and working with Help
  8835.  information for the application you are using.
  8836.  
  8837.  This chapter explains how to perform the following tasks by using MS OS/2
  8838.  Command Reference:
  8839.  
  8840.    ■   Viewing topic information
  8841.  
  8842.    ■   Using the table of contents window
  8843.  
  8844.    ■   Searching, printing, and copying topic information
  8845.  
  8846.    ■   Using the Bookmark feature to mark topics
  8847.  
  8848.  
  8849.  
  8850.  
  8851.  Starting MS OS/2 Command Reference
  8852.  
  8853.  MS OS/2 Command Reference appears in the Main-group window when you start MS
  8854.  OS/2. To start MS OS/2 Command Reference, do the following:
  8855.  
  8856.    1.  Switch to the Main-group window.
  8857.  
  8858.    2.  Choose OS/2 Command Reference.
  8859.  
  8860.  
  8861.  When you start MS OS/2 Command Reference, it appears in a window with the
  8862.  table of contents for the Microsoft Operating System/2 Command Reference
  8863.  displayed in the Contents window.
  8864.  
  8865.  (This figure may be found in the printed book).
  8866.  
  8867.  
  8868.  
  8869.  Viewing a Topic
  8870.  
  8871.  You can view information for any topic in the Contents window by using
  8872.  either a mouse or the keyboard. To view topic information, do the following:
  8873.  .ET
  8874.  
  8875.  Mouse                             Keyboard
  8876.  ────────────────────────────────────────────────────────────────────────────
  8877.  
  8878.  Double-click the topic you want.  1  Press the UP or DOWN key to move to
  8879.                                    and select the topic you want.
  8880.  
  8881.                                    2  Press ENTER.
  8882.  
  8883.  The topic information appears in a window with the heading of the topic
  8884.  displayed in the title bar, as shown in the following example. .RT
  8885.  
  8886.  (This figure may be found in the printed book).
  8887.  
  8888.  Often the information for a topic does not fit in one window. As with other
  8889.  Presentation Manager applications, you can use scroll bars to scroll topic
  8890.  information. If you are using the keyboard, you can use the PAGE UP and PAGE
  8891.  DOWN keys to scroll topic information. For information on scrolling in a
  8892.  window, see Chapter 1, "Learning Basic Presentation Manager Skills."
  8893.  
  8894.  
  8895.  Viewing a Related Topic
  8896.  
  8897.  Some topics include related terms, concepts, or topics that you can view
  8898.  directly from the topic window. These terms, concepts, and topics appear in
  8899.  a different color in the text. To display information for a related term,
  8900.  concept, or topic, do the following:
  8901.  
  8902.  Mouse                             Keyboard
  8903.  ────────────────────────────────────────────────────────────────────────────
  8904.  
  8905.  Double-click the term, concept,   1  Press TAB to select the term, concept,
  8906.  or topic you want.                or topic you want.
  8907.  
  8908.                                    2  Press ENTER.
  8909.  
  8910.  If the information for the related topic is short, it appears in a small
  8911.  window inside the current topic window. If there is a lot of information on
  8912.  the topic, it appears in a separate topic window.
  8913.  
  8914.  
  8915.  Returning to the Contents Window
  8916.  
  8917.  You can return to the Contents window from a topic window at any time by
  8918.  using the Contents command on the Options menu. To return to the Contents
  8919.  window, do the following:
  8920.  
  8921.    ■   Select the Options menu and choose the Contents command.
  8922.  
  8923.  
  8924.  The Contents window appears inside the topic window. When the Contents
  8925.  window is displayed, you can choose another topic to view.
  8926.  
  8927.  (This figure may be found in the printed book).
  8928.  
  8929.  
  8930.  
  8931.  Reviewing a Topic
  8932.  
  8933.  Each time you choose a new topic, the new information appears in a topic
  8934.  window without replacing previous information. This allows you to review
  8935.  previous topic information at any time. To review previous topic
  8936.  information, do the following:
  8937.  
  8938.    ■   Select the Options menu and choose the Previous command.
  8939.  
  8940.  
  8941.  The topic information immediately preceding the current topic information
  8942.  appears. Repeatedly choosing the Previous command displays each previous
  8943.  topic. If there is no previous topic available, then choosing the Previous
  8944.  command returns you to the Contents window.
  8945.  
  8946.  Another way to review a topic is by using the Viewed Pages command. The
  8947.  Viewed Pages command displays a list of all previously viewed topics so that
  8948.  you can quickly look at the topic you want without choosing the Previous
  8949.  command. To display a list of viewed topics, do the following:
  8950.  
  8951.    ■   Select the Options menu and choose the Viewed Pages command.
  8952.  
  8953.        The Viewed Pages window appears inside the current window.
  8954.  
  8955.        (This figure may be found in the printed book).
  8956.  
  8957.  
  8958.  You can use either a mouse or the keyboard to review topic information from
  8959.  the Viewed Pages window. To review topic information, do the following:
  8960.  
  8961.  Mouse                             Keyboard
  8962.  ────────────────────────────────────────────────────────────────────────────
  8963.  
  8964.  Double-click the topic you want.  1  Press the UP or DOWN key to move to
  8965.                                    and select the topic you want.
  8966.  
  8967.                                    2  Press ENTER.
  8968.  
  8969.  
  8970.  
  8971.  Viewing a Subtopic
  8972.  
  8973.  When the Contents window first appears, only main topics are listed.
  8974.  Subtopics are "collapsed," or hidden, from view. A plus sign (+) next to a
  8975.  main topic indicates that it includes subtopics.
  8976.  
  8977.  (This figure may be found in the printed book).
  8978.  
  8979.  You can display subtopics in the Contents window by using a mouse or the
  8980.  keyboard. To "expand" a main topic, do the following:
  8981.  
  8982.  Mouse                             Keyboard
  8983.  ────────────────────────────────────────────────────────────────────────────
  8984.  
  8985.  Click the plus sign next to the   1  Press the UP or DOWN key to move to
  8986.  main topic you want.              and select the topic you want.
  8987.  
  8988.                                    2  Select the Options menu and choose
  8989.                                    the Expand One Level command.
  8990.  
  8991.  When you expand a main topic, the subtopics appear beneath it and the plus
  8992.  sign changes to a minus sign (-).
  8993.  
  8994.  (This figure may be found in the printed book).
  8995.  
  8996.  To collapse a main topic, do the following:
  8997.  
  8998.  Mouse                             Keyboard
  8999.  ────────────────────────────────────────────────────────────────────────────
  9000.  
  9001.  Click the minus sign next to the  1  Press the UP or DOWN key to move to
  9002.  topic.                            and select the topic you want.
  9003.  
  9004.                                    2  Select the Options menu and choose
  9005.                                    the Collapse Branch command.
  9006.  
  9007.  The Options menu includes additional commands that you can use to expand or
  9008.  collapse main topics in the Contents window. The commands and their
  9009.  functions are described in the following list:
  9010.  
  9011.  Command                           Action
  9012.  ────────────────────────────────────────────────────────────────────────────
  9013.  
  9014.  Expand One Level                  Lists the first level of subtopics below
  9015.                                    the selected main topic.
  9016.  
  9017.  Expand Branch                     Lists all levels of subtopics below the
  9018.                                    selected main topic.
  9019.  
  9020.  Expand All                        Lists all levels of subtopics below all
  9021.                                    main topics.
  9022.  
  9023.  Collapse Branch                   Hides all levels of subtopics below the
  9024.                                    selected main topic.
  9025.  
  9026.  Collapse All                      Hides all levels of subtopics below all
  9027.                                    main topics.
  9028.  
  9029.  
  9030.  
  9031.  Using the Index
  9032.  
  9033.  With MS OS/2 Command Reference, you can display the index for the Microsoft
  9034.  Operating System/2 Command Reference. Once the index is displayed, you can
  9035.  use it the same way you use an index in a book: First you find the topic you
  9036.  want, then you display the topic information.
  9037.  
  9038.  
  9039.  Displaying the Index
  9040.  
  9041.  You display the MS OS/2 Command Reference index by doing the following:
  9042.  
  9043.    ■   Select the Options menu and choose the Index command.
  9044.  
  9045.        The Index window appears inside the current window, as shown in the
  9046.        following example.
  9047.  
  9048.  
  9049.  
  9050.  (This figure may be found in the printed book).
  9051.  
  9052.  
  9053.  
  9054.  Viewing a Topic from the Index
  9055.  
  9056.  Once the index is displayed, you can use it to display topic information by
  9057.  choosing the entry you want. To choose an index entry, do the following:
  9058.  
  9059.  Mouse                             Keyboard
  9060.  ────────────────────────────────────────────────────────────────────────────
  9061.  
  9062.  Double-click the entry you want.  1  Press the UP or DOWN key to move to
  9063.                                    and select the entry you want.
  9064.  
  9065.                                    2  Press ENTER.
  9066.  
  9067.  
  9068.  
  9069.  Using the Bookmark Command
  9070.  
  9071.  Using bookmarks in MS OS/2 Command Reference, you can keep track of the
  9072.  topics and commands you view most often. You can place a bookmark on each
  9073.  entry that contains information you will need again. You might also write a
  9074.  quick note on your bookmark to help you remember why a particular page is
  9075.  important to you. Similarly, by using the Bookmark command, you can mark
  9076.  specific topics and type a description of your bookmark.
  9077.  
  9078.  
  9079.  Adding a Bookmark
  9080.  
  9081.  To add a bookmark to a topic, its information must be displayed in a topic
  9082.  window. To add a bookmark, do the following:
  9083.  
  9084.    1.  From the Contents window, select and view the topic you want to mark.
  9085.  
  9086.    2.  Select the Services menu and choose the Bookmark command.
  9087.  
  9088.        The Bookmark dialog box appears with the Place option selected and the
  9089.        heading for the topic displayed.
  9090.  
  9091.        (This figure may be found in the printed book).
  9092.  
  9093.    3.  If you want to use a different heading or a one-line description for
  9094.        your Bookmark, select the text box and type the heading or
  9095.        description.
  9096.  
  9097.    4.  Choose the OK button.
  9098.  
  9099.  
  9100.  
  9101.  
  9102.  Viewing a Marked Topic
  9103.  
  9104.  Once you assign bookmarks to topics, you can use the Bookmark command to
  9105.  refer to specific topics. To view a marked topic, do the following:
  9106.  
  9107.    1.  Select the Services menu and choose the Bookmark command.
  9108.  
  9109.    2.  Select the View option.
  9110.  
  9111.    3.  Move to the list box and select the topic you want to view.
  9112.  
  9113.    4.  Choose the OK button.
  9114.  
  9115.  
  9116.  
  9117.  
  9118.  Deleting a Bookmark
  9119.  
  9120.  If you no longer want a bookmark for a particular topic, you can delete it.
  9121.  You can delete a single bookmark, or you can delete all bookmarks at one
  9122.  time. To delete a bookmark, do the following:
  9123.  
  9124.    1.  Select the Services menu and choose the Bookmark command.
  9125.  
  9126.    2.  If you want to delete one bookmark, select the Remove option. If you
  9127.        want to delete all bookmarks, select the Remove All option.
  9128.  
  9129.    3.  If you are deleting one bookmark, move to the list box and select the
  9130.        Bookmark you want to delete.
  9131.  
  9132.    4.  Choose the OK button.
  9133.  
  9134.        If you selected the Remove All option, a message appears, asking you
  9135.        to confirm your decision to delete all bookmarks.
  9136.  
  9137.        (This figure may be found in the printed book).
  9138.  
  9139.    5.  Choose the OK button.
  9140.  
  9141.  
  9142.  
  9143.  
  9144.  Copying Topic Information
  9145.  
  9146.  With the commands on the Services menu, you can copy topic information to
  9147.  another program or to a file. By using the Copy To File and Append To File
  9148.  commands, you can copy or append current topic information to a file called
  9149.  TEXT.TMP. You can then use a textediting program to edit information in the
  9150.  TEXT.TMP file.
  9151.  
  9152.  If you are using other applications that support the use of the clipboard, a
  9153.  temporary storage area in memory, you can use the Copy command to copy topic
  9154.  information to the clipboard and paste it into other files. To copy or
  9155.  append topic information, do the following:
  9156.  
  9157.    1.  In the Contents window, select and view the topic information you want
  9158.        to copy or append.
  9159.  
  9160.    2.  Select the Services menu and choose the appropriate command. The
  9161.        commands and their functions are described in the following list:
  9162.  
  9163.  
  9164.  
  9165.  
  9166.  Command                           Action
  9167.  ────────────────────────────────────────────────────────────────────────────
  9168.  
  9169.  Copy                              Copies the current topic information to
  9170.                                    the clipboard for use with another
  9171.                                    program.
  9172.  
  9173.  Copy To File                      Creates the file TEXT.TMP and copies the
  9174.                                    current topic information to it, or
  9175.                                    replaces information in the existing
  9176.                                    TEXT.TMP file.
  9177.  
  9178.  Append To File                    Appends the current topic information to
  9179.                                    the TEXT.TMP file.
  9180.  
  9181.  
  9182.  
  9183.  Searching Topic Information
  9184.  
  9185.  With the Search command on the Services menu, you can search topic
  9186.  information for specific text. You can search the index, the topic
  9187.  information currently displayed, topics you select, or the entire Microsoft
  9188.  Operating System/2 Command Reference.
  9189.  
  9190.  
  9191.  Selecting a Topic
  9192.  
  9193.  If you want to search specific topics, you must first select them in the
  9194.  Contents window. You can use either a mouse or the keyboard to select
  9195.  topics. To select a topic, do the following:
  9196.  
  9197.  Mouse                             Keyboard
  9198.  ────────────────────────────────────────────────────────────────────────────
  9199.  
  9200.  1  Display the Contents window.   2  Display the Contents window.
  9201.  
  9202.  3  Press and hold down CTRL and   4  Press the UP or DOWN key to move to
  9203.  click the topic you want.         and select the topic you want.
  9204.  
  9205.  5  To cancel a selection, press   6  Press the SPACEBAR.
  9206.  and hold down CTRL and click the
  9207.  topic again.
  9208.  
  9209.                                    7  To cancel a selection, press the
  9210.                                    SPACEBAR again.
  9211.  
  9212.  
  9213.  
  9214.  Searching a Topic
  9215.  
  9216.  To search topic information for specific text, do the following:
  9217.  
  9218.    1.  Display the Contents window and select the topic you want.
  9219.  
  9220.    2.  Select the Services menu and choose the Search command.
  9221.  
  9222.        The Search dialog box appears.
  9223.  
  9224.        (This figure may be found in the printed book).
  9225.  
  9226.    3.  Select the option that matches the topic information you want to
  9227.        search. The options are described following this procedure list.
  9228.  
  9229.    4.  Type the text you want to search for in the Search String box.
  9230.  
  9231.    5.  Choose the Search button.
  9232.  
  9233.  
  9234.  The following options are available in the Search dialog box:
  9235.  
  9236.  Option                            Searches
  9237.  ────────────────────────────────────────────────────────────────────────────
  9238.  
  9239.  This Section                      Currently displayed topic information
  9240.  
  9241.  Marked Sections                   Information on selected topics in the
  9242.                                    Contents window (this option is grayed
  9243.                                    unless the Contents window is displayed
  9244.                                    and topics are selected)
  9245.  
  9246.  All Sections                      The entire Microsoft Operating System/2
  9247.                                    Command Reference
  9248.  
  9249.  Index                             The index for the Microsoft Operating
  9250.                                    System/2 Command Reference
  9251.  
  9252.  If you search the current topic, the text you are searching for changes
  9253.  color when located. If you search selected topics, all topics, or the index,
  9254.  a Search window appears, listing the topics that contain the text you
  9255.  specified. The specified text appears in the title bar.
  9256.  
  9257.  (This figure may be found in the printed book).
  9258.  
  9259.  
  9260.  
  9261.  Viewing Topic Information from a Search Window
  9262.  
  9263.  You can view topic information from the Search window by using either a
  9264.  mouse or the keyboard. To view topic information from the Search window, do
  9265.  the following:
  9266.  
  9267.  Mouse                             Keyboard
  9268.  ────────────────────────────────────────────────────────────────────────────
  9269.  
  9270.  Double-click the topic you want.  1  Press the UP or DOWN key to move to
  9271.                                    and select the topic you want.
  9272.  
  9273.                                    2  Press ENTER.
  9274.  
  9275.  
  9276.  
  9277.  Printing Topic Information
  9278.  
  9279.  You can print the table of contents, selected topics, the index, the topic
  9280.  information currently displayed, or the entire Microsoft Operating System/2
  9281.  Command Reference. To print topic information, do the following:
  9282.  
  9283.    1.  If you want to print a selected topic, display the Contents window and
  9284.        select the topic you want to print. (For information on selecting
  9285.        topics in the Contents window, see "Selecting a Topic," earlier in
  9286.        this chapter.)
  9287.  
  9288.    2.  Select the Services menu and choose the Print command.
  9289.  
  9290.        The Print dialog box appears.
  9291.  
  9292.        (This figure may be found in the printed book).
  9293.  
  9294.    3.  Select the option that matches the topic information you want to
  9295.        print. The options are described following this procedure list.
  9296.  
  9297.    4.  Choose the Print button.
  9298.  
  9299.  
  9300.  The following options are available in the Print dialog box:
  9301.  
  9302.  Option                            Prints
  9303.  ────────────────────────────────────────────────────────────────────────────
  9304.  
  9305.  This Section                      Currently displayed topic information
  9306.  
  9307.  Marked Sections                   Information on selected topics in the
  9308.                                    Contents window (this option is grayed
  9309.                                    unless the Contents window is displayed
  9310.                                    and topics are selected)
  9311.  
  9312.  All Sections                      The entire Microsoft Operating System/2
  9313.                                    Command Reference
  9314.  
  9315.  Index                             The index for the Microsoft Operating
  9316.                                    System/2 Command Reference
  9317.  
  9318.  Contents                          The table of contents for the Microsoft
  9319.                                    Operating System/2 Command Reference
  9320.  
  9321.  
  9322.  
  9323.  Quitting MS OS/2 Command Reference
  9324.  
  9325.  When you are finished viewing information in the Microsoft Operating
  9326.  System/2 Command Reference, you can quit MS OS/2 Command Reference. To quit
  9327.  MS OS/2 Command Reference, do the following:
  9328.  
  9329.    ■   Select the Services menu and choose the Exit command.
  9330.  
  9331.  
  9332.  
  9333.  
  9334.  
  9335.  
  9336.  
  9337.  
  9338.  
  9339.  Part 2: Using Cmd and the DOS Session
  9340.  ────────────────────────────────────────────────────────────────────────────
  9341.  
  9342.  This part of the Microsoft Operating System/2 User's Guide describes how to
  9343.  work with MS OS/2 if you prefer to use a nongraphical, command-line user
  9344.  interface.
  9345.  
  9346.  You will learn how to use the MS OS/2 command interpreter, cmd, including
  9347.  how to start and stop the program, as well as how to run cmd commands and
  9348.  start other programs.
  9349.  
  9350.  MS OS/2 utilities are also explained. You can use utilities to carry out
  9351.  maintenance tasks with files, directories, and devices.
  9352.  
  9353.  You'll learn how to run programs in the DOS session and how to use the DOS
  9354.  command interpreter, command. Instructions are also provided for running DOS
  9355.  programs and MS OS/2 utilities in the DOS session.
  9356.  
  9357.  Finally, you'll learn how to create and use MS OS/2 batch programs to
  9358.  simplify repetitive tasks and create custom commands.
  9359.  
  9360.  
  9361.  
  9362.  
  9363.  
  9364.  
  9365.  Chapter 8  Running Cmd
  9366.  ────────────────────────────────────────────────────────────────────────────
  9367.  
  9368.  
  9369.  
  9370.  
  9371.  Introduction
  9372.  
  9373.  The MS OS/2 command interpreter, cmd, is a program that translates what you
  9374.  type at a prompt into commands that your computer can use. When you install
  9375.  MS OS/2, the cmd prompt looks like the following:
  9376.  
  9377.  [C:\e]
  9378.  
  9379.  
  9380.  You can run cmd in a full-screen session or in a window. Instead of the
  9381.  Presentation Manager graphical environment, cmd provides a command-line
  9382.  interface. This means that cmd displays a prompt where you type commands to
  9383.  start other programs.
  9384.  
  9385.  Cmd contains a set of built-in commands that help you to manage files and
  9386.  directories, create and run batch programs, and set system features. You can
  9387.  start other programs by using cmd, so it provides an alternative to Desktop
  9388.  Manager if you are working in a full-screen session or if you are running
  9389.  cmd in a window.
  9390.  
  9391.  This chapter describes how to start and quit the cmd program, and how to use
  9392.  cmd commands. It also describes the keys command, which can be used to edit
  9393.  the cmd command line. For more information about utilities that can be run
  9394.  from the cmd program, see Chapter 9, "Using MS OS/2 Utilities."
  9395.  
  9396.  This chapter also contains information about how the cmd program and cmd
  9397.  commands work in the file allocation table (FAT) file system. Some commands
  9398.  may work differently when you use them in the high-performance file system
  9399.  (HPFS). All examples of file and directory names in this chapter are for the
  9400.  FAT file system. For more information about using commands in HPFS, see
  9401.  Chapter 16, "Using the High-Performance File System."
  9402.  
  9403.  
  9404.  Starting and Quitting Cmd
  9405.  
  9406.  You can start the MS OS/2 command interpreter, cmd, either in a full-screen
  9407.  session or in a window in the Presentation Manager session. From the Main
  9408.  group in Desktop Manager, do one of the following:
  9409.  
  9410.    ■   To start cmd in a full-screen session, choose OS/2 Full Screen from
  9411.        the Main group in Desktop Manager.
  9412.  
  9413.  
  9414.  Or
  9415.  
  9416.    ■   To start cmd in a window, choose OS/2 Window from the Main group in
  9417.        Desktop Manager.
  9418.  
  9419.  
  9420.  If you start cmd in a full-screen session, the screen clears and the cmd
  9421.  prompt appears in the full screen. If you start cmd in a window, a new
  9422.  window appears in the Presentation Manager session and the cmd prompt
  9423.  appears in the window.
  9424.  
  9425.  ────────────────────────────────────────────────────────────────────────────
  9426.  Note
  9427.  
  9428.  You can also start cmd in a window from File Manager by double-clicking the
  9429.  CMD.EXE file. For more information about File Manager, see Chapter 3, "Using
  9430.  File Manager."
  9431.  ────────────────────────────────────────────────────────────────────────────
  9432.  
  9433.  
  9434.  
  9435.  To quit cmd, type exit at the prompt. If cmd is running in a full-screen
  9436.  session, Desktop Manager appears. If cmd is running in a window, the window
  9437.  closes and then Desktop Manager appears.
  9438.  
  9439.  If you want to switch from a full-screen session to the Task List without
  9440.  quitting cmd, press CTRL+ESC. The full-screen session will then appear as an
  9441.  entry in the Task List.
  9442.  
  9443.  
  9444.  Using Commands
  9445.  
  9446.  To use a command in cmd, you type the command on the command line and press
  9447.  ENTER. This section explains how to use the command line to start commands,
  9448.  and also how you can use the features of the keys command to edit the
  9449.  command line.
  9450.  
  9451.  
  9452.  Starting Commands
  9453.  
  9454.  After you have started cmd, you are ready to use commands. At the cmd
  9455.  command prompt, do the following:
  9456.  
  9457.    ■   Type the name of the command, followed by any arguments, and press
  9458.        ENTER.
  9459.  
  9460.  
  9461.  In addition to commands built into cmd, you can also start MS OS/2 utilities
  9462.  and other full-screen programs. To start other MS OS/2 programs, see the
  9463.  manual that accompanies your program and "Running Programs," later in this
  9464.  chapter.
  9465.  
  9466.  
  9467.  Editing the Command Line
  9468.  
  9469.  When you are running cmd you can perform editing functions on the command
  9470.  line by using the keys command. These editing functions will save you time
  9471.  when entering commands, by allowing you to call up commands you have already
  9472.  typed and use them again without retyping them. You start these functions by
  9473.  typing the following on the command line:
  9474.  
  9475.  keys on
  9476.  
  9477.  Once you have typed the keys command, every command you enter on the command
  9478.  line is temporarily saved in a list in memory. To see the list of the
  9479.  commands that are currently in memory, type the following on the command
  9480.  line:
  9481.  
  9482.  keys list
  9483.  
  9484.  You can use any of the following keys and key combinations to perform the
  9485.  special editing functions that the keys command provides:
  9486.  
  9487.  Key                               Editing function
  9488.  ────────────────────────────────────────────────────────────────────────────
  9489.  
  9490.  ESC                               Clears the current command line and
  9491.                                    returns the cursor to the position
  9492.                                    immediately following the command prompt.
  9493.  
  9494.  HOME                              Returns the cursor to the position
  9495.                                    immediately following the command prompt.
  9496.  
  9497.  END                               Places the cursor in the position
  9498.                                    immediately following the last character
  9499.                                    you typed (even if the last character
  9500.                                    you typed is a space).
  9501.  
  9502.  
  9503.  
  9504.  Key                               Editing function
  9505.  ────────────────────────────────────────────────────────────────────────────
  9506.  
  9507.  INS                               Turns the insert mode on and off. The
  9508.                                    cursor appears as a half box when you
  9509.                                    are in insert mode. As you insert
  9510.                                    characters, existing characters move to
  9511.                                    the right. At the beginning of each new
  9512.                                    command line, insert mode is turned off.
  9513.  
  9514.  DEL                               Deletes the character marked by the
  9515.                                    cursor. As you delete characters, any
  9516.                                    existing characters to the right of the
  9517.                                    cursor move to the left.
  9518.  
  9519.  LEFT                              Moves the cursor left one character.
  9520.  
  9521.  RIGHT                             Moves the cursor right one character.
  9522.  
  9523.  UP                                Finds the previous command listed in
  9524.                                    memory and displays that command on the
  9525.                                    command line. When you reach the first
  9526.                                    command in the list, pressing UP
  9527.                                    displays the last command.
  9528.  
  9529.  DOWN                              Finds the next command listed in memory
  9530.                                    and displays that command on the command
  9531.                                    line. When you reach the last command in
  9532.                                    the list, pressing DOWN displays the
  9533.                                    first command.
  9534.  
  9535.  BACKSPACE                         Moves the cursor back (left) one
  9536.                                    character and deletes that character.
  9537.                                    Any characters to the right of the
  9538.                                    cursor move left to fill the deleted
  9539.                                    character's position.
  9540.  
  9541.  CTRL+LEFT                         Moves the cursor left to the first
  9542.                                    character of a word. If the cursor is
  9543.                                    already positioned on the first
  9544.                                    character of a word or in the space
  9545.                                    between words, the cursor moves to the
  9546.                                    first character of the word to the left.
  9547.                                    .ET
  9548.  
  9549.  CTRL+RIGHT                        Moves the cursor right to the first
  9550.                                    character of the next word.
  9551.  
  9552.  CTRL+END                          Deletes any characters from the current
  9553.                                    cursor position to the end of the
  9554.                                    command line.
  9555.  
  9556.  CTRL+HOME                         Deletes any characters from the
  9557.                                    beginning of the command line up to (but
  9558.                                    not including) the current cursor
  9559.                                    position.
  9560.  
  9561.  ENTER                             Sends the information on the command
  9562.                                    line to the command interpreter and adds
  9563.                                    it to the list of commands in memory.
  9564.                                    Pressing ENTER also turns off insert
  9565.                                    mode.
  9566.  
  9567.  .RT For example, suppose the keys command is running and when you type keys
  9568.  list to see the list of commands in memory, the following list is displayed:
  9569.  
  9570.  
  9571.  1: cd accounts
  9572.  2: dir sales.feb
  9573.  3: copy a:\sales.feb
  9574.  4: cd ..
  9575.  5: path
  9576.  6: type sales.feb
  9577.  7: keys list
  9578.  
  9579.  
  9580.  Now suppose you want to use any of the keys editing functions. Press the UP
  9581.  key to bring the last command in the list to the command line. Press UP
  9582.  again to display the previous command. As you continue to press UP, the keys
  9583.  command takes you through the entire list and returns to the last command
  9584.  after reaching the beginning of the list.
  9585.  
  9586.  The keys command continues to add commands to the list until you type keys
  9587.  off on the command line or exit the OS/2 session in which it was started. To
  9588.  find out whether the keys command is on or off, type keys and press ENTER.
  9589.  
  9590.  You can also have MS OS/2 start the keys command every time you start or
  9591.  restart your system by placing the following line in your CONFIG.SYS file:
  9592.  
  9593.  set keys=on
  9594.  
  9595.  
  9596.  
  9597.  
  9598.  Getting Help Information
  9599.  
  9600.  When you use cmd commands, error messages may appear on your screen. You can
  9601.  use the Help program to get an explanation of any error message. Each
  9602.  message consists of a number (for example, SYS1002) and a brief description
  9603.  of the error condition. For a more detailed explanation of the error
  9604.  condition, you type help followed by the message number. For example,
  9605.  suppose that when you try to get a directory list in wide format, you
  9606.  accidentally type dir /z instead of dir /w. You receive the following error
  9607.  message, "SYS1003: The syntax of the command is incorrect." To see a
  9608.  detailed explanation of this error message, type the following:
  9609.  
  9610.  help sys1003
  9611.  
  9612.  
  9613.  The following explanation is provided:
  9614.  
  9615.  SYS1003: The syntax of the command is incorrect.
  9616.  
  9617.  EXPLANATION: One of the following occurred:
  9618.  
  9619.  1. An incorrect parameter was specified.
  9620.  2. A required parameter is missing.
  9621.  3. Too many parameters were entered.
  9622.  4. The parameters were entered in the wrong order.
  9623.  ACTION: Check the syntax of the command. Then retry
  9624.  the command.
  9625.  
  9626.  
  9627.  
  9628.  
  9629.  
  9630.  Setting Up the System
  9631.  
  9632.  When you first set up your system, you may want to do such things as
  9633.  customize the MS OS/2 command prompt or set and display the date and the
  9634.  time of day. The cmd program contains several built-in commands that help
  9635.  you perform these types of tasks. This section describes the commands you
  9636.  might use when setting up your system. The commands are as follows:
  9637.  
  9638.  Command                           Purpose
  9639.  ────────────────────────────────────────────────────────────────────────────
  9640.  
  9641.  cls                               Clears your screen.
  9642.  
  9643.  date                              Displays and sets the system date.
  9644.  
  9645.  time                              Displays and sets the system time.
  9646.  
  9647.  ver                               Displays the MS OS/2 version number.
  9648.  
  9649.  prompt                            Changes the cmd prompt.
  9650.  
  9651.  chcp                              Changes the current code page.
  9652.  
  9653.  These commands are described in the following sections.
  9654.  
  9655.  
  9656.  Clearing the Screen
  9657.  
  9658.  The cls command clears your computer screen. Once you clear the screen, you
  9659.  cannot retrieve the information. To use this command, type the following:
  9660.  
  9661.  cls
  9662.  
  9663.  
  9664.  Your screen clears, and the MS OS/2 command prompt appears in the upper-left
  9665.  corner of the screen.
  9666.  
  9667.  
  9668.  Setting and Displaying the Date
  9669.  
  9670.  You can set and display the system date by using the date command. MS OS/2
  9671.  uses this date to update the directory list whenever you create or change a
  9672.  file or directory. The date that you set applies to all sessions. To use the
  9673.  date command, type the following:
  9674.  
  9675.  date
  9676.  
  9677.  
  9678.  You'll see a message similar to this:
  9679.  
  9680.  The current date is Fri  3-24-1989
  9681.  Enter the new date: (mm-dd-yy) _
  9682.  
  9683.  
  9684.  To keep the current date, press ENTER. To change the date, type the new date
  9685.  at the cursor, separating the month, day, and year with hyphens (-), slashes
  9686.  (/), or periods (.). For example, the dates 6-1-89, 6/1/89, and 6.1.89 are
  9687.  equivalent.
  9688.  
  9689.  You can also specify the date directly after the date command, as follows:
  9690.  
  9691.  date 3-1-89
  9692.  
  9693.  
  9694.  
  9695.  ────────────────────────────────────────────────────────────────────────────
  9696.  Note
  9697.  
  9698.  If your system is set up for a country other than the United States, the
  9699.  date and time formats you use may differ from what is shown here. The
  9700.  country command in the CONFIG.SYS file sets this format. For more
  9701.  information about the country command, see Chapter 15, "Using MS OS/2
  9702.  Configuration Commands."
  9703.  ────────────────────────────────────────────────────────────────────────────
  9704.  
  9705.  
  9706.  
  9707.  
  9708.  Setting and Displaying the Time
  9709.  
  9710.  You can set and display the system time with the time command. This command
  9711.  sets the internal clock in your computer. MS OS/2 uses this time to update
  9712.  the directory list whenever you create or change a file or directory. The
  9713.  time that you set applies to all sessions. To use the time command, type the
  9714.  following:
  9715.  
  9716.  time
  9717.  
  9718.  
  9719.  You'll see a message similar to this:
  9720.  
  9721.  The current time is: 10:21:39.03
  9722.  Enter the new time: _
  9723.  
  9724.  
  9725.  To keep the current time, press ENTER. To change the time, you type the new
  9726.  time at the cursor, separating hours, minutes, seconds, and hundredths of a
  9727.  second with colons (:) or periods (.). The separator between seconds and
  9728.  hundredths of a second must be a period. The hour is based upon a 24-hour
  9729.  clock. Seconds and hundredths of a second are optional.
  9730.  
  9731.  You can also specify the time directly after the time command, as follows:
  9732.  
  9733.  time 13:30
  9734.  
  9735.  
  9736.  
  9737.  
  9738.  
  9739.  Displaying the Version Number
  9740.  
  9741.  To display the MS OS/2 version number, use the ver command. To use this
  9742.  command, type the following:
  9743.  
  9744.  ver
  9745.  
  9746.  
  9747.  
  9748.  
  9749.  
  9750.  Changing the Cmd Prompt
  9751.  
  9752.  You can change the way your prompt looks by using the prompt command. Prompt
  9753.  recognizes several character combinations, all of which begin with a dollar
  9754.  sign ($). Each character combination displays a different prompt. The prompt
  9755.  command affects only the current session. To change the prompt, you type
  9756.  prompt followed by one or more character combinations. For example, to
  9757.  change the prompt to an equal sign followed by a greater-than sign, type the
  9758.  following:
  9759.  
  9760.  prompt $q$g
  9761.  
  9762.  
  9763.  Now your prompt looks like this:
  9764.  
  9765.  =>
  9766.  
  9767.  
  9768.  You can use any of the following character combinations to create your
  9769.  prompt:
  9770.  
  9771.  Characters                        Prompt
  9772.  ────────────────────────────────────────────────────────────────────────────
  9773.  
  9774.  $$                                Dollar sign ($)
  9775.  
  9776.  $t                                Current time
  9777.  
  9778.  $d                                Current date
  9779.  
  9780.  $p                                Current directory on the current drive
  9781.  
  9782.  $v                                Version number
  9783.  
  9784.  $n                                Current drive letter
  9785.  
  9786.  $g                                Greater-than sign (>)
  9787.  
  9788.  $l                                Less-than sign (<)
  9789.  
  9790.  $b                                Pipe symbol ( | )
  9791.  
  9792.  $_                                New line (the equivalent of pressing
  9793.                                    ENTER)
  9794.  
  9795.  $e                                ANSI escape character
  9796.  
  9797.  $q                                Equal sign (=)
  9798.  
  9799.  $h                                Backspace (to erase a character in the
  9800.                                    prompt)
  9801.  
  9802.  $i                                Help line
  9803.  
  9804.  $c                                Left parenthesis [ ( ] (in cmd only)
  9805.  
  9806.  $f                                Right parenthesis [ ) ] (in cmd only)
  9807.  
  9808.  $a                                Ampersand (&) (in cmd only)
  9809.  
  9810.  You can also change your prompt to any string of characters or combination
  9811.  of characters and symbols. For more information on how to change your prompt
  9812.  to a string of characters, see the Microsoft Operating System/2 Command
  9813.  Reference. If you type prompt by itself, the prompt changes to the default
  9814.  system prompt.
  9815.  
  9816.  
  9817.  Changing the Code Page
  9818.  
  9819.  To display or switch the current code page, use the chcp command. The code
  9820.  page defines a character correspondence table that is used to set up
  9821.  foreign-language versions of MS OS/2. Four code pages are supported:
  9822.  Multilingual (850), United States (437), Portuguese (860), and Canadian
  9823.  French (863).
  9824.  
  9825.  Before you can switch to a different code page, you must set up your system
  9826.  for code-page switching. This can be done during installation of MS OS/2.
  9827.  Or, you can modify your CONFIG.SYS file by following the instructions found
  9828.  in Chapter 15, "Using MS OS/2 Configuration Commands." To find out which
  9829.  code page is currently active and which code pages are prepared for your
  9830.  system, you type chcp by itself. You can switch to any code page that is
  9831.  prepared for your system. To switch to a different code page, type chcp and
  9832.  the number of the code page. For example, to switch to the Canadian French
  9833.  code page, type the following:
  9834.  
  9835.  chcp 863
  9836.  
  9837.  
  9838.  For a list of countries and their supported code pages, see Chapter 15,
  9839.  "Using MS OS/2 Configuration Commands."
  9840.  
  9841.  
  9842.  Managing Files, Directories, and Drives
  9843.  
  9844.  MS OS/2 provides several commands that help you manage files, directories,
  9845.  and drives. These commands, with their alternative forms shown in
  9846.  parentheses, are as follows:
  9847.  
  9848.  Command                           Purpose
  9849.  ────────────────────────────────────────────────────────────────────────────
  9850.  
  9851.  dir                               Displays the contents of a directory.
  9852.  
  9853.  mkdir (md)                        Makes a new directory.
  9854.  
  9855.  chdir (cd)                        Switches to a different directory.
  9856.  
  9857.  
  9858.  
  9859.  Command                           Purpose
  9860.  ────────────────────────────────────────────────────────────────────────────
  9861.  
  9862.  rmdir (rd)                        Removes a directory.
  9863.  
  9864.  type                              Displays the contents of a file.
  9865.  
  9866.  copy                              Copies a file.
  9867.  
  9868.  move                              Moves a file or directory.
  9869.  
  9870.  del (erase)                       Deletes a file.
  9871.  
  9872.  rename (ren)                      Renames a file or directory.
  9873.  
  9874.  vol                               Displays the volume identification of
  9875.                                    the current drive.
  9876.  
  9877.  Unless you specify otherwise, all commands that you type at the cmd prompt
  9878.  work with the contents of the current directory. Many of these commands
  9879.  accept options, which are letters preceded by a slash (/) and that modify
  9880.  how a command works. While most command options are described in this
  9881.  chapter, see the Microsoft Operating System/2 Command Reference for a
  9882.  complete list and description of the options for each command.
  9883.  
  9884.  
  9885.  Displaying Directory Information
  9886.  
  9887.  To display a list of the contents of a directory, use the dir command. A
  9888.  directory list consists of individual directory entries, each of which
  9889.  describes one file or subdirectory (a directory created within another
  9890.  directory).
  9891.  
  9892.  You can display the directory list for your current directory, for a
  9893.  specific directory or file, for more than one directory, or for a group of
  9894.  files. In addition, the dir command can display the list in a
  9895.  multiple-column format or a page-by-page format. You can also choose the
  9896.  order in which the directory information is displayed. The various options
  9897.  are described in the following sections.
  9898.  
  9899.  Displaying the Contents of the Current Directory
  9900.  
  9901.  To display the contents of the current directory, you type the dir command
  9902.  without any arguments.
  9903.  
  9904.  For example, suppose you are working in a directory called FINANCE. To
  9905.  display the directory entries, type the following:
  9906.  
  9907.  dir
  9908.  
  9909.  
  9910.  The cmd command interpreter displays a list similar to the following:
  9911.  
  9912.   The volume label in drive C is RALPH.
  9913.   The Volume Serial Number is E392:1C15
  9914.   Directory of C:\eFINANCE
  9915.  
  9916.  .            <DIR>      1-30-89   9:10p
  9917.  ..           <DIR>      1-30-89   9:10p
  9918.  BUSINESS     <DIR>      1-30-89   9:11a
  9919.  PERSONAL     <DIR>      1-30-89   9:12a
  9920.  TAXES        <DIR>     10-15-89   8:47a
  9921.  1QUARTER SUM      452   4-20-89  10:31a
  9922.  2QUARTER SUM      590   7-27-89   9:05a
  9923.  3QUARTER SUM      524  10-08-89   3:54p
  9924.  REPORT   TXT     1168  11-08-89   2:15p
  9925.       9 File(s)   1880064 bytes free
  9926.  
  9927.  
  9928.  Here is what each directory entry contains:
  9929.  
  9930.    ■   The volume label and serial number of your current drive
  9931.  
  9932.    ■   The name of the current drive and directory
  9933.  
  9934.    ■   The filename and filename extension (if any) or the directory name
  9935.  
  9936.    ■   The size of the file (in bytes)
  9937.  
  9938.    ■   The date that the file or directory was created or last modified
  9939.  
  9940.    ■   The time that the file or directory was created or last modified
  9941.  
  9942.  
  9943.  Directories have <DIR> listed after their names. At the end of the list, dir
  9944.  displays the number of files in the directory and the number of bytes that
  9945.  are free on the disk. It is a good idea to check your available disk space
  9946.  regularly, especially if your disk space is limited.
  9947.  
  9948.  If you are viewing a directory list for a directory other than the root
  9949.  directory by using the file allocation table (FAT) file system, you'll see
  9950.  periods (. and ..) listed as directory entries. These characters are a
  9951.  shorthand notation for the current (.) and parent (..) directories. The
  9952.  current directory is the one you are now working in, and the parent
  9953.  directory is one level above the current directory in the directory
  9954.  structure. In the high-performance file system (HPFS), you'll see these
  9955.  entries in the root directory as well; because the root directory has no
  9956.  parent directory, the parent (..) notation listed there has no meaning.
  9957.  You can use this notation in any cmd command or utility to specify the
  9958.  current or parent directory. For example, to see the directory list for a
  9959.  parent directory, type the following:
  9960.  dir ..
  9961.  
  9962.  
  9963.  You can also display directory entries for the current directory on a
  9964.  different drive. For example, to see what is in the current directory on
  9965.  drive A, type the following:
  9966.  
  9967.  dir a:
  9968.  
  9969.  
  9970.  A list of the files and directories for drive A appears on your screen. You
  9971.  may want to see only a directory list of filenames, instead of the complete
  9972.  directory entries described previously. For a list of the filenames on drive
  9973.  A, type the following:
  9974.  
  9975.  dir a: /f
  9976.  
  9977.  
  9978.  When you use the /f option, the dir command also displays the complete
  9979.  directory path of the files.
  9980.  
  9981.  Viewing a Directory List for a Specific File or Directory
  9982.  
  9983.  The dir command lets you view any directory list without changing your
  9984.  current directory.
  9985.  
  9986.  To do this, you must tell cmd the path of the directory you want to view.
  9987.  You can specify the directory's full path from the root directory, or you
  9988.  can specify a relative path from your current directory. Although you can
  9989.  always type the full path of a directory, it is not required. For example,
  9990.  suppose you have your business-travel schedules stored in the TRAVEL
  9991.  subdirectory of the \FINANCE\BUSINESS directory. To view the files in your
  9992.  TRAVEL subdirectory from the root directory, type the following:
  9993.  
  9994.  dir \finance\business\travel
  9995.  
  9996.  
  9997.  However, if you are in the FINANCE directory, you only need to type the path
  9998.  from the current directory to the TRAVEL subdirectory:
  9999.  
  10000.  dir business\travel
  10001.  
  10002.  
  10003.  If you prefer to see your personal-travel schedules that are stored in the
  10004.  TRAVEL subdirectory of the \eFINANCE\ePERSONAL directory on drive A, type
  10005.  the following:
  10006.  
  10007.  dir a:\finance\personal\travel
  10008.  
  10009.  
  10010.  
  10011.  ────────────────────────────────────────────────────────────────────────────
  10012.  Note
  10013.  
  10014.  If you will be doing much work in another directory, you can also use the
  10015.  chdir command to move to that directory before using the dir command. The
  10016.  chdir command is described in detail in "Changing to Another Directory,"
  10017.  later in this chapter.
  10018.  ────────────────────────────────────────────────────────────────────────────
  10019.  
  10020.  
  10021.  
  10022.  Displaying the Contents of Multiple Directories
  10023.  
  10024.  You can display directory lists for more than one directory by typing the
  10025.  name of each directory after the dir command. For example, suppose that you
  10026.  are planning to purchase new desks and lamps for your employees. Although
  10027.  you have price lists for many items in your current directory, you would
  10028.  like to see the lists that pertain only to desks and lamps. To see the
  10029.  directory lists for the DESKS directory, which is on your current drive, and
  10030.  the directory list for the LAMPS directory, which is on drive A, type the
  10031.  following:
  10032.  
  10033.  dir desks a:\lamps
  10034.  
  10035.  
  10036.  You will first see the list for DESKS, followed by the list for LAMPS:
  10037.  
  10038.   The volume label in drive C is RALPH.
  10039.   The Volume Serial Number is 2520:9C15
  10040.   Directory of C:\DESKS
  10041.  
  10042.  .            <DIR>      6-23-89   2:58p
  10043.  ..           <DIR>      6-23-89   2:58p
  10044.  STUDY    DSK      899   6-09-89  12:35p
  10045.  TOOLS    DSK     3821   2-02-89   1:41p
  10046.  WORK     DSK       16   3-16-89   8:40a
  10047.       5 File(s)   1646592 bytes free
  10048.  
  10049.  
  10050.  The volume label in drive A is INVENTORY.
  10051.  The Volume Serial Number is 0A73:331B
  10052.  Directory of A:\LAMPS
  10053.  
  10054.  .            <DIR>      4-28-89   6:30p
  10055.  ..           <DIR>      4-28-89   6:30p
  10056.  DESK    LMP       240   1-09-89   1:02p
  10057.  TABLE   LMP      1234   4-16-89   3:54p
  10058.  SPOT    LMP        80   2-10-89   8:59a
  10059.       5 File(s)   512 bytes free
  10060.  
  10061.  
  10062.  If the dir command cannot find one of the specified directories, it displays
  10063.  an error message telling you which directory could not be found and then
  10064.  displays the other directory.
  10065.  
  10066.  Displaying a Directory List for a Group of Files
  10067.  
  10068.  You might find that you want to view a directory list for a specific group
  10069.  of files. For example, to view a directory list in your current directory
  10070.  for all of the files that have the filename extension .DOC, type the
  10071.  following:
  10072.  
  10073.  dir *.doc
  10074.  
  10075.  
  10076.  The asterisk (*) is a wildcard character, which has a special meaning to
  10077.  cmd. The cmd program replaces the asterisk with any alphanumeric character
  10078.  or string of characters. In the previous example, the files REPORT.DOC,
  10079.  REPLY.DOC, and LETTER.DOC are all displayed.
  10080.  
  10081.  Wildcard characters can be used with the dir command to specify other groups
  10082.  of files. For example, to view all of the files that begin with the letter
  10083.  "R," type the following:
  10084.  
  10085.  dir r*
  10086.  
  10087.  
  10088.  This displays the files REPORT.DOC and REPLY.DOC, but not LETTER.DOC.
  10089.  
  10090.  To view all files beginning with the characters FIN, regardless of their
  10091.  filename extensions, type the following:
  10092.  
  10093.  dir fin*
  10094.  
  10095.  
  10096.  The files FINANCE.TXT, FIND.TXT, and FIN024.DAT are all included in the
  10097.  list. In addition to the asterisk, the question mark (?) can also be used as
  10098.  a wildcard character. A question mark in a filename or filename extension
  10099.  means that any one character or no character at all may occupy that
  10100.  position. For example, to display a directory list for trade shows that you
  10101.  have attended, you could type the following:
  10102.  
  10103.  dir show?.*
  10104.  
  10105.  
  10106.  You would see a list that contains SHOW.PDX, SHOW1.SEA, SHOWNSHOW3.LAX; it
  10107.  would, however, not include SHOW23.SEA (since the question mark stands for
  10108.  only one character).
  10109.  
  10110.  Displaying a Directory List in Wide Format
  10111.  
  10112.  If you have a large directory with many files, you might not be able to see
  10113.  all of the directory lists on one screen. One way to condense this list is
  10114.  to display it in wide (/w) format.
  10115.  
  10116.  Suppose that your ACCOUNTS directory contains files for every account you
  10117.  have. You want to see the names of all the accounts, but you know that it is
  10118.  a long list of names. To display the directory list in wide format, type the
  10119.  /w option on the command line:
  10120.  
  10121.  dir accounts /w
  10122.  
  10123.  
  10124.  You see a multiple-column list of the filenames in the directory, and they
  10125.  appear without the file size or date/time information.
  10126.  
  10127.  Viewing a Directory List in Page Format
  10128.  
  10129.  Just as you read a book one page at a time, you can view a directory list
  10130.  one screenful at a time. To do this, use the /p option: .ET
  10131.  
  10132.  dir accounts /p
  10133.  
  10134.  
  10135.  The first part of the directory list is displayed, then the message "Press
  10136.  any key when ready . . ." appears at the bottom of the screen when the
  10137.  screen is full. After you press a key, the second screenful of the list
  10138.  appears. This continues until all of the directory entries are displayed or
  10139.  until you press CTRL+C to stop the operation.
  10140.  
  10141.  You can also use the /w and /p options together. This option combination
  10142.  displays directory lists in wide format, one screenful at a time. .RT
  10143.  
  10144.  
  10145.  Creating a Directory
  10146.  
  10147.  You can create a directory by using the mkdir (md) command. You can create a
  10148.  directory under your current directory, or you can create a directory in a
  10149.  specified drive or location.
  10150.  
  10151.  MS OS/2 always creates the root directory (\) for you. But most users will
  10152.  require additional directories to store system and user files. You can
  10153.  create additional directories that branch out from the root directory into a
  10154.  multilevel directory structure. Directories created within other directories
  10155.  are sometimes referred to as subdirectories.
  10156.  
  10157.  Creating a Directory in the Current Directory
  10158.  
  10159.  To make a subdirectory in your current directory, type mkdir or md followed
  10160.  by the name of the new directory. For example, to create a new directory
  10161.  named INVOICE under the FINANCE directory, go to the FINANCE directory and
  10162.  type the following:
  10163.  
  10164.  md invoice
  10165.  
  10166.  
  10167.  If you now type dir, you'll see INVOICE listed as a directory:
  10168.  
  10169.  INVOICE <DIR>   6-1-89 4:44p
  10170.  
  10171.  
  10172.  
  10173.  
  10174.  Creating a Directory in a Specified Location
  10175.  
  10176.  You can also make a new directory anywhere you choose. This means that even
  10177.  if you are in the INVOICE directory on drive C, you can make a new directory
  10178.  named LETTERS on drive A. Just specify the drive and path of the new
  10179.  directory after the mkdir command, as follows:
  10180.  
  10181.  md a:\letters
  10182.  
  10183.  
  10184.  This creates a new directory on drive A named LETTERS.
  10185.  
  10186.  Creating Multiple Directories
  10187.  
  10188.  To save time, you can create more than one directory at once. For example,
  10189.  to create the SUPPLIES directory within your current directory and the
  10190.  EXPENSES directory within the root directory on drive A, type the following:
  10191.  
  10192.  
  10193.  md supplies a:\eexpenses
  10194.  
  10195.  
  10196.  This creates two directories: one on your current drive and one on drive A.
  10197.  If the mkdir command cannot create both directories, it displays an error
  10198.  message telling you which directory cannot be created, but continues to
  10199.  create the other directory.
  10200.  
  10201.  
  10202.  Changing to Another Directory
  10203.  
  10204.  If you want to work in a different directory,
  10205.  you can use the chdir (cd) command to change directories. To change to a
  10206.  subdirectory within the current directory, you type chdir or cd followed by
  10207.  the name of the subdirectory. For example, to change from the FINANCE
  10208.  directory to the INVOICE subdirectory, type the following:
  10209.  
  10210.  cd invoice
  10211.  
  10212.  
  10213.  To change to a directory somewhere else on the directory tree, you must
  10214.  specify the path of the directory.
  10215.  
  10216.  Moving to the Parent or Root Directory
  10217.  
  10218.  You have seen how the dir command uses periods to list the current (.) and
  10219.  parent (..) directories in a directory list. You can easily change to the
  10220.  current directory's parent directory by typing the following:
  10221.  
  10222.  cd ..
  10223.  
  10224.  
  10225.  Each time you type this command, you move one level closer to the root
  10226.  directory. For example, suppose you are in the MEMOS directory, the full
  10227.  path of which is \FINANCE\LETTERS\MEMOS. To return to the \FINANCE
  10228.  directory, type the following:
  10229.  
  10230.  cd ..\..
  10231.  
  10232.  
  10233.  This takes you out of the MEMOS subdirectory and moves you to the FINANCE
  10234.  directory. You can also combine the periods (..) with directory names to
  10235.  specify a directory. For example, suppose you are in the \LETTERS\WORK
  10236.  directory and you want to change to the \LETTERS\FAMILY directory. You could
  10237.  move up one level by typing cd .. and then type cd family to move down to
  10238.  the right directory. However, an easier way is to combine the two operations
  10239.  in one step, as follows:
  10240.  
  10241.  cd ..\family
  10242.  
  10243.  
  10244.  To quickly change to the root directory, regardless of where you are in the
  10245.  directory structure, type the following:
  10246.  
  10247.  cd \
  10248.  
  10249.  
  10250.  
  10251.  
  10252.  
  10253.  Removing a Directory
  10254.  
  10255.  The rmdir (rd) command removes a directory.
  10256.  
  10257.  Before you can remove a directory, you must delete all the files in the
  10258.  directory. You must also change to a directory other than the one you want
  10259.  to delete, since the cmd program will not let you delete a directory that
  10260.  you are currently in. For information on deleting, see "Deleting a File,"
  10261.  later in this chapter.
  10262.  
  10263.  ────────────────────────────────────────────────────────────────────────────
  10264.  Note
  10265.  
  10266.  You cannot remove the root directory, and you cannot remove directories that
  10267.  are being used in other sessions.
  10268.  ────────────────────────────────────────────────────────────────────────────
  10269.  
  10270.  
  10271.  
  10272.  Removing One Directory
  10273.  
  10274.  To remove one directory, you must be sure that the directory is empty and
  10275.  that you are in a different directory before you type rmdir or rd followed
  10276.  by the name of the directory you want to delete. For example, to delete the
  10277.  directory LETTERS, do the following:
  10278.  
  10279.    1.  If you are in the LETTERS directory, type cd .. to switch to the
  10280.        parent directory.
  10281.  
  10282.    2.  Type del letters\e* to delete all of the files in the directory. A
  10283.        message will appear, asking whether you are sure that you want to
  10284.        delete all files. Type Y to delete all files in the directory.
  10285.  
  10286.    3.  Type rd letters to remove the directory.
  10287.  
  10288.  
  10289.  
  10290.  Removing Multiple Directories
  10291.  
  10292.  To remove more than one directory, type the rd command, then specify each
  10293.  directory you want to remove, as follows:
  10294.  
  10295.  rd letters travel
  10296.  
  10297.  
  10298.  Make sure that each directory you want to remove is empty. If the rd command
  10299.  cannot remove both directories, it displays an error message telling you
  10300.  which directory could not be removed and continues to remove the other
  10301.  directory.
  10302.  
  10303.  
  10304.  Displaying the Contents of a File
  10305.  
  10306.  To display the contents of a data file, use the type command. For example,
  10307.  suppose that you have saved a letter in a file called MEMOJAN
  10308.  
  10309.  type memojan
  10310.  
  10311.  
  10312.  The contents of the file scroll on your screen:
  10313.  
  10314.  TO:             John Howard
  10315.  FROM:           Elizabeth Johnson
  10316.  SUBJECT:        Questionnaires
  10317.  DATE:           January 12, 1989
  10318.  
  10319.  The twenty questionnaires you sent to our
  10320.  department have been completed and are
  10321.  enclosed in the accompanying envelope.
  10322.  
  10323.  Thank you for encouraging us to participate
  10324.  in your survey. We look forward to learning
  10325.  the results!
  10326.  
  10327.  
  10328.  If the file is large, you may want to temporarily stop the text from
  10329.  scrolling on your screen. To do this, press CTRL+S. To resume scrolling,
  10330.  press CTRL+S again.
  10331.  
  10332.  ────────────────────────────────────────────────────────────────────────────
  10333.  Note
  10334.  
  10335.  If you have a large file that you want to view, you might want to use the
  10336.  more utility instead of the type command. The more utility displays the
  10337.  contents of a file one screenful at a time. For information about the more
  10338.  utility, see Chapter 9, "Using MS OS/2 Utilities."
  10339.  ────────────────────────────────────────────────────────────────────────────
  10340.  
  10341.  
  10342.  
  10343.  You can display more than one file at a time by adding additional filenames
  10344.  after the type command. For example, to display the files MEMOJANand MEMOFEB
  10345.  
  10346.  type memojan
  10347.  
  10348.  
  10349.  The contents of MEMOJANtents of MEMOFEBspecified files, it displays an error
  10350.  message telling you which file could not be found and continues to display
  10351.  the other file.
  10352.  
  10353.  You could also use wildcard characters to display several files. For
  10354.  example, to display the contents of all the files with the extension one
  10355.  after the other, type the following:
  10356.  
  10357.  type *
  10358.  
  10359.  
  10360.  
  10361.  
  10362.  You can also use redirection symbols with the type command. Redirection is a
  10363.  feature that lets you take the output from a command and send it to a file
  10364.  instead of to the screen. For information about redirection symbols, see
  10365.  "Redirecting Input, Output, and Error Messages," later in this chapter.
  10366.  
  10367.  
  10368.  Copying a File
  10369.  
  10370.  You can copy files from one location to another by using the copy command.
  10371.  In addition, copy can combine files and create files. Just specify a source
  10372.  file that will be copied and a destination file that will receive the copy.
  10373.  You can copy ASCII as well as binary files; the default setting is binary.
  10374.  
  10375.  Copying One File to Another
  10376.  
  10377.  To copy the contents of one file to another file, you type copy followed by
  10378.  the names of the source file and the destination file. For example, to copy
  10379.  the contents of the file OLD.TXT to the file NEW.TXT, type the following:
  10380.  
  10381.  copy old.txt new.txt
  10382.  
  10383.  
  10384.  If NEW.TXT does not currently exist, it is automatically created, then
  10385.  OLD.TXT is copied to it. If NEW.TXT does exist, it is replaced by the
  10386.  contents of OLD.TXT. Be careful when you copy the contents of a file to an
  10387.  existing file, since the contents of the existing file will become
  10388.  permanently lost.
  10389.  
  10390.  If you do not specify a directory path when using the copy command, MS OS/2
  10391.  copies files in the current directory. If you want to specify files in other
  10392.  directories, make sure that you include their directory paths. For example,
  10393.  to copy the contents of OLD.TXT in the current directory to NEW.TXT in drive
  10394.  A, type the following:
  10395.  
  10396.  copy old.txt a:new.txt
  10397.  
  10398.  
  10399.  To copy the contents of a file on drive A called INVOICE.DOC to your current
  10400.  directory and use the same filename, type the following:
  10401.  
  10402.  copy a:invoice.doc
  10403.  
  10404.  
  10405.  
  10406.  
  10407.  Copying a Group of Files
  10408.  
  10409.  You can use wildcard characters to copy a group of files to another group of
  10410.  files. For example, to copy the contents of all of the files in the current
  10411.  directory that have the filename extension .EXE to an identical set of files
  10412.  in drive A, type the following:
  10413.  
  10414.  copy *.exe a:
  10415.  
  10416.  
  10417.  You can also copy a group of files to a specific directory. For example, to
  10418.  copy the contents of all the .TXT files to the LETTERS subdirectory in the
  10419.  FINANCE directory, type the following:
  10420.  
  10421.  copy *.txt \finance\letters
  10422.  
  10423.  
  10424.  There may be times when you will want to copy an entire directory into
  10425.  another directory. For example, to copy all of the files in the current
  10426.  directory into the REPORTS directory in drive A, type the following:
  10427.  
  10428.  copy * a:\reports
  10429.  
  10430.  
  10431.  Be sure the destination directory exists; if it does not, MS OS/2 will
  10432.  create a file called REPORTS in the root directory on drive A, then copy the
  10433.  contents of all the files into that one file.
  10434.  
  10435.  ────────────────────────────────────────────────────────────────────────────
  10436.  Note
  10437.  
  10438.  If you want to copy the contents of an entire floppy disk onto another
  10439.  floppy disk, use the diskcopy utility, which is described in Chapter 9,
  10440.  "Using MS OS/2 Utilities."
  10441.  ────────────────────────────────────────────────────────────────────────────
  10442.  
  10443.  
  10444.  
  10445.  Appending a File to Another File
  10446.  
  10447.  In addition to copying files, the copy command can append one or more files
  10448.  to an existing file or combine them into a new file. To do this, list any
  10449.  number of files as arguments to the copy command. The files to be combined
  10450.  should be separated by plus signs (+), and you can specify a destination
  10451.  file that the combined files will be copied to. (The original files will
  10452.  still exist, unless you have made one of them the destination file.) For
  10453.  example, suppose that you want to combine two files named JANFEB
  10454.  
  10455.  copy jan
  10456.  
  10457.  
  10458.  When the operation is completed, cmd displays the following message: "1
  10459.  file(s) copied." The plus sign (+) between the files means that the contents
  10460.  of the FEBwill still exist in its original form.)
  10461.  
  10462.  You can combine several files and copy them to another file. So, if you want
  10463.  to add the contents of the files JANcalled WINTER
  10464.  
  10465.  copy jan
  10466.  
  10467.  
  10468.  If you specify a destination file when you append files, the destination
  10469.  file is created and given the current date and time. If you omit a
  10470.  destination file, MS OS/2 combines the files and stores them under the name
  10471.  of the file specified first.
  10472.  
  10473.  You can also combine several files into one file by using wildcard
  10474.  characters. The following command takes all files with the .TXT extension
  10475.  and combines them into one file named COMBIN
  10476.  
  10477.  copy *.txt combin
  10478.  
  10479.  
  10480.  In the following example, each file that has the extension .TXT is combined
  10481.  with its corresponding .REF file. The result in each case is a file with the
  10482.  same filename, but with the extension combined with VIDEO.REF to form
  10483.  VIDEOAUDIO.REF to form AUDIO
  10484.  
  10485.  copy *.txt+*.ref *
  10486.  
  10487.  
  10488.  
  10489.  
  10490.  If .TXT files do not correspond exactly with .REF files, existing files are
  10491.  copied singly to the
  10492.  
  10493.  The following copy command combines all of the files with the extension .TXT
  10494.  and all of the files with the extension .REF into one file named COMBIN
  10495.  
  10496.  copy *.txt+*.ref combin
  10497.  
  10498.  
  10499.  
  10500.  
  10501.  Creating a File
  10502.  
  10503.  In the previous examples, you have seen how to copy files to other files.
  10504.  But the copy command can also copy to a file what you type on the keyboard.
  10505.  You need only to specify con (for console) after the copy command. In MS
  10506.  OS/2, the keyboard is referred to as CON. For example, to create the file
  10507.  MESSAGE.TXT, type the following:
  10508.  
  10509.  copy con message.txt
  10510.  
  10511.  
  10512.  Then press ENTER and type the text of the message. For example, you could
  10513.  type the following:
  10514.  
  10515.  I have just received your shipment of invoices.
  10516.  Thanks for your prompt response.
  10517.  
  10518.  K. P. Smith
  10519.  
  10520.  
  10521.  To end the note and save it in the file, press CTRL+Z followed by ENTER. You
  10522.  will see a message saying "1 file(s) copied," then the command prompt again.
  10523.  
  10524.  
  10525.  If you use the dir command to view the directory entries, you will see that
  10526.  the file MESSAGE.TXT now appears in your directory.
  10527.  
  10528.  ────────────────────────────────────────────────────────────────────────────
  10529.  Note
  10530.  
  10531.  The copy command has four additional options. The /v option verifies a copy
  10532.  operation, the /a option copies ASCII files, the /b option copies binary
  10533.  files, and the /f option indicates that extended attributes should not be
  10534.  discarded if the destination file system does not support them. For more
  10535.  information on how to use these options, see the Microsoft Operating
  10536.  System/2 Command Reference.
  10537.  ────────────────────────────────────────────────────────────────────────────
  10538.  
  10539.  
  10540.  
  10541.  Preserving Extended Attributes
  10542.  
  10543.  In MS OS/2, some applications attach additional information, such as author,
  10544.  application type, and file history, to your files and directories. These
  10545.  pieces of information are called extended attributes and are used by other
  10546.  applications, the file system, or the operating system itself. For example,
  10547.  an application such as Microsoft Excel may look at a file's extended
  10548.  attributes to see if the file is a Microsoft Excel chart.
  10549.  
  10550.  Care must be taken when using the copy command to preserve any extended
  10551.  attributes. When you are simply making a copy of a file, the copy command
  10552.  preserves all extended attributes. However, when you are appending one or
  10553.  more files to an existing file or combining files into a new file, only the
  10554.  extended attributes of the first file specified are preserved.
  10555.  
  10556.  It is possible for a file to have zero length and yet still have extended
  10557.  attributes attached to the file. You can use the copy command to copy a file
  10558.  with zero length; the copy command copies and preserves these extended
  10559.  attributes.
  10560.  
  10561.  If you are copying a file that has extended attributes to a file system that
  10562.  does not support extended attributes, you may want to use the /f option with
  10563.  the copy command. For more information about using the copy command on files
  10564.  with extended attributes, see the Microsoft Operating System/2 Command
  10565.  Reference.
  10566.  
  10567.  You may want to use the eautil utility before copying files that have
  10568.  extended attributes. By using the eautil utility, you can split files and
  10569.  their extended attributes into separate files, copy the files, and then join
  10570.  the files together again. For information about the eautil utility, see the
  10571.  Microsoft Operating System/2 Command Reference.
  10572.  
  10573.  You can see whether your files have extended attributes by using the dir
  10574.  command with the /n option. If a file has extended attributes, the size of
  10575.  the attributes is displayed in the column before the filename. For example,
  10576.  to see if the files in the LIBRARY directory have extended attributes, type
  10577.  the following:
  10578.  
  10579.  dir /n
  10580.  
  10581.  
  10582.  You'll see a directory list similar to the one that follows. The number in
  10583.  the column before the filename tells you the size of its extended attributes
  10584.  (a zero tells you there are no extended attributes associated with that file
  10585.  or directory).
  10586.  
  10587.   The volume label in drive C is RALPH.
  10588.   The Volume Serial Number is E392:1C15
  10589.   Directory of C:\LIBRARY
  10590.  
  10591.  8-02-89  11:02a     <DIR>       0  .
  10592.  8-02-89  11:02a     <DIR>       0  ..
  10593.  8-22-89   2:41p    119202       4  CATALOG.TXT
  10594.  8-22-89   3:36p     65288       4  BOOKS.TXT
  10595.      4 File(s)     1646592 bytes free
  10596.  
  10597.  
  10598.  
  10599.  
  10600.  
  10601.  Moving Files and Directories
  10602.  
  10603.  You can move files and directories from one location to another on the same
  10604.  drive by using the move command. You may want to move files and directories
  10605.  when organizing them on your hard disk.
  10606.  
  10607.  Moving a File
  10608.  
  10609.  To move the file SCHEDULE.TXT from the MONTHLY directory on drive C to the
  10610.  HISTORY directory on that same drive, type the following:
  10611.  
  10612.  move c:\monthly\schedule.txt \history
  10613.  
  10614.  
  10615.  In this example, the file is simply moved; its name stays the same. You can,
  10616.  however, move a file to another directory and give it a new name at the same
  10617.  time. Just specify the new filename after the directory name.
  10618.  
  10619.  You can use wildcard characters with the move command to move multiple files
  10620.  or directories, just as you can use them with the copy command.
  10621.  
  10622.  Moving a Directory
  10623.  
  10624.  You can also move a directory and its entire contents to another location on
  10625.  the same drive. Suppose you want to move the UTILITY directory on drive C
  10626.  into the directory OS12. To do this, type the following:
  10627.  
  10628.  move c:\utility \os12
  10629.  
  10630.  
  10631.  In this example, the UTILITY directory becomes a subdirectory of the OS12
  10632.  directory.
  10633.  
  10634.  
  10635.  Deleting a File
  10636.  
  10637.  Just as you may want to make copies of files or move files around, you also
  10638.  may want to remove files. When you want to delete a file from a disk, you
  10639.  can use the del or erase command.
  10640.  
  10641.  Deleting One File
  10642.  
  10643.  You can delete one file from a directory by typing del or erase followed by
  10644.  the name of the file. For example, to delete the file OLD.TXT from the root
  10645.  directory in drive A, type the following:
  10646.  
  10647.  del a:\old.txt
  10648.  
  10649.  
  10650.  Use the dir command to verify that the file has been deleted. It is a good
  10651.  idea to go through your directories and delete unnecessary files
  10652.  periodically. Unnecessary files take up valuable disk space.
  10653.  
  10654.  Deleting Multiple Files
  10655.  
  10656.  You can delete more than one file at a time by typing more than one filename
  10657.  on the del command line. For example, to delete the file OLD.TXT from the
  10658.  root directory in drive A, the file OLD2.TXT from the root directory of
  10659.  drive B, and the file OLD3.TXT from the root directory of drive C, type the
  10660.  following:
  10661.  
  10662.  del a:\old.txt b:\old2.txt c:\old3.txt
  10663.  
  10664.  
  10665.  If the del command cannot find one of the specified files, it displays a
  10666.  message telling you which file could not be found and continues deleting the
  10667.  other files.
  10668.  
  10669.  You can also use wildcard characters to delete a group of files. For
  10670.  example, suppose you are closing out your accounts with a particular vendor
  10671.  named New Moon Supplies. Your current directory contains a variety of files
  10672.  that record business transactions with this vendor:
  10673.  
  10674.  budget.jan
  10675.  budget.feb
  10676.  newmoon.inv
  10677.  newmoon.acc
  10678.  newmoon.1
  10679.  newmoon.2
  10680.  newmoon
  10681.  report
  10682.  
  10683.  
  10684.  To delete all files starting with the filename NEWMOON, type the following:
  10685.  
  10686.  del newmoon.*
  10687.  
  10688.  
  10689.  Your directory now looks like this:
  10690.  
  10691.  budget.jan
  10692.  budget.feb
  10693.  report
  10694.  
  10695.  
  10696.  Or, to delete all of the files in your current directory, type the
  10697.  following:
  10698.  
  10699.  del *
  10700.  
  10701.  
  10702.  When you try to delete all of the files in a directory, the following
  10703.  message appears: "Are you sure (Y/N)?" If you type Y and then press ENTER,
  10704.  the files will be deleted. If you type N, the files will not be deleted, and
  10705.  you will be returned to the prompt.
  10706.  
  10707.  If you are not sure that you want to delete every file in the directory, you
  10708.  can use the del command with the /p option. With this option specified, cmd
  10709.  prompts you file by file, giving you the option of deleting the file or
  10710.  continuing with the next.
  10711.  
  10712.  Use wildcard characters with care─remember that deletions are permanent.
  10713.  
  10714.  
  10715.  Renaming a File or Directory
  10716.  
  10717.  Occasionally, you may want to change the name of a file or directory. You
  10718.  can use the rename (ren) command to do this. For example, to change the name
  10719.  of the file ADSSPONSORS
  10720.  
  10721.  ren c:\ads
  10722.  
  10723.  
  10724.  You can also rename a group of files. To rename all the files in the current
  10725.  directory that have the extension .TXT so that they have the extension type
  10726.  the following:
  10727.  
  10728.  ren *.txt *
  10729.  
  10730.  
  10731.  When you are renaming files and directories, keep these points in mind:
  10732.  
  10733.    ■   You cannot use rename to move a file to a different drive or
  10734.        directory.
  10735.  
  10736.    ■   You cannot rename a file or directory by using a name that already
  10737.        exists.
  10738.  
  10739.  
  10740.  
  10741.  
  10742.  Changing to Another Drive
  10743.  
  10744.  To change to another drive, you type the drive letter followed by a colon
  10745.  (:). For example, if the current drive is drive C and you want to switch to
  10746.  drive D, type the following:
  10747.  
  10748.  d:
  10749.  
  10750.  
  10751.  This switches to the current directory on drive D.
  10752.  
  10753.  
  10754.  Displaying the Volume Identification
  10755.  
  10756.  Each disk has a volume label, which is a name you assign to the disk during
  10757.  formatting. You might want to give a floppy disk a unique label to help you
  10758.  identify the disk later. Also, if you have set up logical drives, the volume
  10759.  label assigned to each of those drives can describe the contents of the
  10760.  drive (for example, drive D might be called SMITH and drive E be called
  10761.  JONES).
  10762.  
  10763.  If a disk has been formatted using MS OS/2 version 1.2, it also has a volume
  10764.  serial number. This number is a unique number assigned by MS OS/2, and it
  10765.  can be changed only by reformatting the disk. To view the volume
  10766.  identification for your current disk, type the following:
  10767.  
  10768.  vol
  10769.  
  10770.  
  10771.  You can also view the volume identification for a different disk, such as
  10772.  the one on drive A, by typing the drive letter after the vol command:
  10773.  
  10774.  vol a:
  10775.  
  10776.  
  10777.  You can view the volume identification for more than one drive at a time by
  10778.  typing more than one drive letter after the vol command:
  10779.  
  10780.  vol a: c:
  10781.  
  10782.  
  10783.  If the vol command cannot find one of the specified drives, it displays an
  10784.  error message telling you which drive could not be found and continues to
  10785.  display information for the other drive.
  10786.  
  10787.  You can set the volume label by using the label utility, which is described
  10788.  in Chapter 9, "Using MS OS/2 Utilities."
  10789.  
  10790.  
  10791.  Running Programs
  10792.  
  10793.  You can run programs such as applications and utilities from cmd. This
  10794.  section describes how to start a program, as well as how to set up the
  10795.  proper environment to run a program and how to modify standard input (input
  10796.  from the keyboard), standard output (output to the screen), and standard
  10797.  error (error messages). This section also describes what happens when you
  10798.  start different types of programs from cmd.
  10799.  
  10800.  
  10801.  Starting a Program from Cmd
  10802.  
  10803.  When you start a program from cmd, the program runs in a full screen or in a
  10804.  window, depending on the type of program. Use the following information to
  10805.  start a program from cmd and to determine the environment that the program
  10806.  will run in. To start a program from cmd, do the following:
  10807.  
  10808.    ■   At the prompt, type the command that starts the program, followed by
  10809.        any arguments, and press ENTER.
  10810.  
  10811.  
  10812.  For example, suppose that you want to prepare the payroll checks for your
  10813.  employees by using a spreadsheet program named SP. To start the program,
  10814.  type the program's start command, in this case sp, and then press ENTER.
  10815.  
  10816.  ────────────────────────────────────────────────────────────────────────────
  10817.  Note
  10818.  
  10819.  See your program's manual for the specific command that starts the program.
  10820.  ────────────────────────────────────────────────────────────────────────────
  10821.  
  10822.  
  10823.  After your program starts, the output you see on the screen depends upon the
  10824.  type of program you are running. Some full-screen programs, for instance,
  10825.  can run in a window as well as in a full screen. If you start them from cmd
  10826.  in a window, they run in a window; if you start them from cmd in a
  10827.  full-screen session, they run in a full screen. Presentation Manager
  10828.  applications, on the other hand, run in a window even if you start them from
  10829.  cmd in a full screen. The following list shows the various types of MS OS/2
  10830.  programs you can run from cmd and what their output looks like depending on
  10831.  where you start them:
  10832.  
  10833.    Program type                    Started     Started from cmd in a full
  10834.                                    from cmd    screen
  10835.                                    in a
  10836.                                    window.
  10837.  ────────────────────────────────────────────────────────────────────────────
  10838.  
  10839.  Full-screen only                  Full-scree  Full-screen output
  10840.                                    n output
  10841.  
  10842.  Full-screen or window             Window      Full-screen output
  10843.                                    output
  10844.  
  10845.  Presentation Manager              Window      Window output
  10846.                                    output
  10847.  
  10848.  DOS                               Error       Error message
  10849.                                    message
  10850.  
  10851.  In MS OS/2, DOS programs can be run only in the DOS session.
  10852.  
  10853.  Starting a Presentation Manager Application
  10854.  
  10855.  You can start a Presentation Manager application from cmd when it is running
  10856.  in a full screen or in a window. After you type the name of the command and
  10857.  press ENTER, your application starts to run in a new Presentation Manager
  10858.  window.
  10859.  
  10860.  While you are running the application, you will not be able to see the cmd
  10861.  prompt at all, even though cmd continues to run your application behind the
  10862.  scenes. When you quit your application, the application's window disappears
  10863.  and the cmd prompt reappears.
  10864.  
  10865.  Starting a Full-Screen Program That Can Run in a Window
  10866.  
  10867.  Some full-screen OS/2 programs can run either in a full screen or in a
  10868.  window. You can start these programs from cmd in a full-screen session or
  10869.  from cmd in a window.
  10870.  
  10871.  When the program is started from a full-screen session, it takes up the
  10872.  entire screen until you quit the program. When the program is started from
  10873.  cmd in a window, it runs in that same window (not in a new window). After
  10874.  you quit your program, the cmd prompt reappears.
  10875.  
  10876.  Starting a Full-Screen Program That Must Run in a Full Screen
  10877.  
  10878.  
  10879.  Some full-screen OS/2 programs are designed to be started from cmd when it is
  10880.  running in a full screen. If you start the program from cmd running in a
  10881.  window, the program's output appears on the full screen, then switches back
  10882.  to the window after the program is finished running.
  10883.  Many programs display output on the full screen for only a few moments
  10884.  before switching back to the window. If this happens, start cmd running in a
  10885.  full screen and then start your program.
  10886.  
  10887.  Setting the PATH and Other Environment Variables
  10888.  
  10889.  Starting a program from cmd is identical to using commands, except that you
  10890.  must be in the directory where the program is located or you must have set
  10891.  the PATH environment variable to include that directory. The PATH
  10892.  environment variable specifies which directories MS OS/2 will search for
  10893.  programs you start. If you add your program's directory to the search path,
  10894.  MS OS/2 can find and start your program regardless of which directory you
  10895.  are currently working in.
  10896.  
  10897.  You might also need to set other environment variables, such as DPATH, LIB,
  10898.  or TMP, depending on whether your program requires them. For information on
  10899.  setting environment variables, see "Setting Up the Environment," later in
  10900.  this chapter.
  10901.  
  10902.  
  10903.  Starting a Program with the Start Command
  10904.  
  10905.  The start command lets you start a program in a new full-screen session or
  10906.  in a new window (but not in the DOS session). Start provides an alternative
  10907.  to the Desktop Manager, and also lets you start programs from a batch file.
  10908.  Various options to start provide you with different ways to start programs.
  10909.  To start a new program, you type start followed by the name of the program.
  10910.  If you type start by itself, cmd starts running in a new window.
  10911.  You can also specify a program title and options. The start command's
  10912.  options are described in the following sections. If you do not supply
  10913.  options, start will determine the type of program you want to start
  10914.  (full-screen or Presentation Manager) and then start the program in the
  10915.  appropriate session.
  10916.  
  10917.  If you start a program with the start command from a full screen or in a
  10918.  window running cmd, a new window is created for your program (if the program
  10919.  can run in a window). If the program cannot run in a window, a new
  10920.  full-screen session is created to run your program. Once programs start
  10921.  running, you can stop them at any time by pressing CTRL+C.
  10922.  
  10923.  The new program starts in a background session, not in the one you are
  10924.  currently working in. You will need to switch to that session or window
  10925.  before you can view the program or work with it. (See "Starting a Foreground
  10926.  Program," later in this chapter, for an alternate way to make a new program
  10927.  appear on your screen.)
  10928.  
  10929.  Specifying a Program Title
  10930.  
  10931.  To specify a program title for the new program, type the title, enclosed in
  10932.  quotation marks, immediately after the start command. This title will be
  10933.  displayed in the title bar of the window where the program is running, as
  10934.  well as among the programs in the Task List.
  10935.  
  10936.  For example, suppose that you want to start a program called SP and you want
  10937.  to give it the program title "Harris Co. Spreadsheet." To specify the
  10938.  program title when you start the program, type the following:
  10939.  
  10940.  start "Harris Co. Spreadsheet" sp
  10941.  
  10942.  
  10943.  You will see SP start in a window. The title bar and the Task List entry for
  10944.  SP both will say "Harris Co. Spreadsheet."
  10945.  
  10946.  Using Start in Batch Programs
  10947.  
  10948.  The start command is used most often in batch programs for activities such
  10949.  as starting programs during system start-up. If you know that you want a
  10950.  particular program to run every time you start MS OS/2, you may want to use
  10951.  the start command in a start-up program. For more information about batch
  10952.  programs, see Chapter 11, "Using MS OS/2 Batch Programs." For information
  10953.  about start-up programs, see Chapter 14, "Using Start-Up Files in MS OS/2."
  10954.  
  10955.  Causing Cmd to End Automatically
  10956.  
  10957.  By using the /c option, you can cause cmd to end after a program finishes
  10958.  running. Normally, after a program that was started with the start command
  10959.  finishes running, the new session or window that was created does not
  10960.  disappear. When you specify the /c option, the new full-screen session or
  10961.  window closes after the program ends.
  10962.  
  10963.  You can use this option to start a program without keeping an extra copy of
  10964.  cmd running. For example, suppose you want to run the chkdsk utility when
  10965.  you start or restart MS OS/2 and place the status report for drive D in a
  10966.  file named STATUS. You could type the following line in your STARTUP.CMD
  10967.  file:
  10968.  
  10969.  start /c chkdsk d: > c:status
  10970.  
  10971.  
  10972.  If you do not specify otherwise, MS OS/2 will create a file named STATUS on
  10973.  your start-up drive (usually drive C). For more information on STARTUP.CMD,
  10974.  see Chapter 14, "Using Start-Up Files in MS OS/2."
  10975.  
  10976.  If you have put this line in your STARTUP.CMD file, every time STARTUP.CMD
  10977.  is run, the start command starts the cmd program in a new window, runs
  10978.  chkdsk, saves the chkdsk status information in the STATUS file, and then
  10979.  closes the window. You can then view the STATUS file to see the status
  10980.  information for drive D.
  10981.  
  10982.  Starting a Program in a Full Screen
  10983.  
  10984.  To start a program in a full-screen session, you use the /fs option. Some
  10985.  programs are designed to be run only in a full screen. If you start these
  10986.  from cmd running in a window, these programs display their output in a full
  10987.  screen, then switch back to the window, making the output unreadable. The
  10988.  /fs option guarantees that when you start a full-screen program in a window,
  10989.  the program will run in a full screen.
  10990.  
  10991.  Starting a Foreground Program
  10992.  
  10993.  
  10994.  
  10995.  You can start a program that you want displayed on your screen by specifying
  10996.  the /f option. This way, when the program starts, you can see it running in
  10997.  the session or window you are currently working in.
  10998.  Other Options to the Start Command
  10999.  
  11000.  The start command has several other options, which are described in the
  11001.  following list. For details about these options, see the Microsoft Operating
  11002.  System/2 Command Reference.
  11003.  
  11004.  Option                            Purpose
  11005.  ────────────────────────────────────────────────────────────────────────────
  11006.  
  11007.  /k                                Preserves the new session or window
  11008.                                    after the program ends. This is the
  11009.                                    default setting.
  11010.  
  11011.  /n                                Causes a program to start without first
  11012.                                    starting cmd.
  11013.  
  11014.  /win                              Specifies that the program will be run
  11015.                                    in a window. ,
  11016.  
  11017.  /pm                               Specifies that a Presentation Manager
  11018.                                    application will be started.
  11019.  
  11020.  /i                                Causes the newly started copy of cmd to
  11021.                                    inherit the environment specified in
  11022.                                    your CONFIG.SYS file. The /i option is
  11023.                                    described in "Inheriting the Environment
  11024.                                    of the Session," later in this chapter.
  11025.  
  11026.  /pgm                              Specifies that the quoted string
  11027.                                    following this option is the name of the
  11028.                                    program to be run.
  11029.  
  11030.  
  11031.  
  11032.  Starting a Background Program with the Detach Command
  11033.  
  11034.  To start programs that are not visible on your screen when they run, use the
  11035.  detach command. These background programs are processed, but they do not run
  11036.  in a session. This means that you cannot provide input to them (such as
  11037.  typing commands), and they do not display output. In addition, detached
  11038.  programs do not appear in the Task List. To detach a program, you type
  11039.  detach followed by the name of the background program you want to run. For
  11040.  example, suppose you have a program called archive that you use to make
  11041.  archive copies of some of your files. To run the archive program as a
  11042.  detached program, you would type the following:
  11043.  
  11044.  detach archive c:\archive\olddocs.arc c:\*.doc
  11045.  
  11046.  
  11047.  In this example, the archive program would run as a detached program, and it
  11048.  would copy all of your document files in the root directory of drive C to a
  11049.  file called OLDDOCS.ARC in the ARCHIVE directory of drive C.
  11050.  
  11051.  Once you start a background program, MS OS/2 displays the message "The
  11052.  Process Identification Number is nn" and then displays the cmd prompt again.
  11053.  After the prompt appears, you can continue to type commands and run programs
  11054.  while your background program runs.
  11055.  
  11056.  Programs that can run without user input or that take a long time to run are
  11057.  good candidates for use as background programs. That way, you do not need to
  11058.  have cmd running in a full screen or window just to start one program. It is
  11059.  a good idea to avoid unnecessary full-screen sessions or Presentation
  11060.  Manager windows, because extra sessions and windows slow down the
  11061.  performance of your computer.
  11062.  
  11063.  Since you cannot see the output of a background program, you should redirect
  11064.  the output to a file or device. For example, suppose that you want an
  11065.  alphabetical list of a very large list of names. The following command
  11066.  starts a background program that reads the names from the file NAMES, sorts
  11067.  them, and writes them to the file SORT.DIR:
  11068.  
  11069.  detach sort < names > sort.dir
  11070.  
  11071.  
  11072.  While this is taking place behind the scenes, you can continue to run
  11073.  another program from the cmd prompt displayed on your screen. For a detailed
  11074.  explanation of redirection symbols (>, <, or >) and the pipe ( | ), see
  11075.  "Redirecting Input, Output, and Error Messages," later in this chapter.
  11076.  
  11077.  
  11078.  Setting Up the Environment
  11079.  
  11080.  The environment consists of a collection of variables used by
  11081.  the system. These variables, called environment variables, are user-defined
  11082.  and can be assigned values of your choosing. There are environment
  11083.  variables, such as PATH and DPATH, that are commonly used by programs, and
  11084.  you can also define your own environment variables.
  11085.  
  11086.  When you start a program from cmd, the system searches for the program in
  11087.  the directories specified by the PATH environment variable. Some programs
  11088.  also use the DPATH environment variable, which specifies the data search
  11089.  path to use. If you are a programmer, you might need to set the LIB (library
  11090.  search path) and INCLUDE (include-file search path) environment variables.
  11091.  
  11092.  This section describes how to set up the PATH and DPATH environment
  11093.  variables, as well as how to use the set command. For more information about
  11094.  environment variables, see Chapter 15, "Using MS OS/2 Configuration
  11095.  Commands."
  11096.  
  11097.  Displaying Your Path
  11098.  
  11099.  After you install your program─but before you run it─you may need to modify
  11100.  your PATH environment variable. The MS OS/2 command interpreter, cmd, uses
  11101.  this variable to search for programs that you start from cmd. When you type
  11102.  a command to start a program, cmd first searches your current directory for
  11103.  the program. If it does not find it there, cmd searches the first directory
  11104.  listed by the PATH environment variable, then the second, and so on, until
  11105.  the program is found or all directories listed have been searched. When MS
  11106.  OS/2 is first installed on your system, a default PATH setting is assigned
  11107.  automatically and stored in your environment along with other environment
  11108.  variables. You can view your path by typing the following:
  11109.  
  11110.  path
  11111.  
  11112.  
  11113.  You can also view the values assigned to other environment variables by
  11114.  typing set by itself.
  11115.  
  11116.  You can always run a program if you are already in the directory where the
  11117.  program is installed or if you specify the exact path of the program on the
  11118.  command line. It is usually easier, however, to modify your path so that you
  11119.  can run your program while you are in any directory.
  11120.  
  11121.  Setting Your Path
  11122.  
  11123.  
  11124.  To modify the PATH environment variable, you can use the path command. To use
  11125.  this command, type path followed by the directories that you want in your
  11126.  search path. Separate directory names with a semicolon (;).
  11127.  For example, suppose you want to add the APPS directory to your search path.
  11128.  Your current path is set to the OS2 directory and several of its
  11129.  subdirectories. You can type the following to set the new path:
  11130.  
  11131.  path c:\os2;c:\os2\dll;c:\os2\system;c:\os2\intro;c:\apps
  11132.  
  11133.  
  11134.  Restarting MS OS/2 will remove path assignments made with the path command.
  11135.  
  11136.  In addition to the path command, you can also use the set command to set
  11137.  your search path (described in the following sections). Or, you can set your
  11138.  path by using the set configuration command. See Chapter 15, "Using MS OS/2
  11139.  Configuration Commands," for information on how to use this command.
  11140.  
  11141.  Setting Up a Data Search Path
  11142.  
  11143.  You can set up a search path for data files by using the dpath command. Just
  11144.  as the path command tells cmd where to locate program files, the dpath
  11145.  command tells programs where to locate data files. A data file is any file
  11146.  not having the file extension .EXE, (in a full-screen session or in cmd
  11147.  running in a window), or .BAT (in the DOS session). For example, to tell MS
  11148.  OS/2 to search for data files first in your current directory and then in
  11149.  the ACCOUNTS directory, type the following:
  11150.  
  11151.  dpath accounts
  11152.  
  11153.  
  11154.  
  11155.  ────────────────────────────────────────────────────────────────────────────
  11156.  Note
  11157.  
  11158.  Not all programs use the DPATH variable in their data searches. If it is not
  11159.  used, DPATH is ignored.
  11160.  ────────────────────────────────────────────────────────────────────────────
  11161.  
  11162.  
  11163.  
  11164.  Setting an Environment Variable
  11165.  
  11166.  To set environment variables, you can use the set command. You set
  11167.  environment variables by typing set followed by the name of the variable, an
  11168.  equal sign (=), and the value. (For more information on environment
  11169.  variables, see "Setting Up the Environment," earlier in this chapter.) To
  11170.  view your current environment, type set by itself. You will see a list of
  11171.  environment variables and the values that are assigned to them.
  11172.  
  11173.  The form a value takes depends on what the variable is and what it is used
  11174.  for. For example, while the PATH variable requires directory paths, the
  11175.  PROMPT variable requires the special characters that define the way the
  11176.  prompt looks. To define or redefine an environment variable, you type set
  11177.  followed by the name of the variable, an equal sign (=), and the value. If
  11178.  you want to define an environment variable called TEMP and assign the TEMP
  11179.  directory on drive C to it, type the following:
  11180.  
  11181.  set temp=c:\temp
  11182.  
  11183.  
  11184.  If you type set by itself, the TEMP variable appears in the list.
  11185.  
  11186.  In most cases, however, you will want to append, not override, any new
  11187.  values to your existing settings. For example, suppose that your current
  11188.  path looks like this:
  11189.  
  11190.  PATH C:\OS2;C:\OS2\DLL;C:\OS2\SYSTEM;C:\OS2\INTRO
  11191.  
  11192.  
  11193.  Also, suppose that you have just installed a spreadsheet program called SP
  11194.  in the directory APPS, and you want to be able to run your program from any
  11195.  directory. You could add the APPS directory to the search path by typing the
  11196.  existing path, then adding the APPS directory to the end of the list. An
  11197.  easier way, however, is to use a variable in the set command. To append a
  11198.  value to your path, type the following:
  11199.  
  11200.  set path=%path%;c:\apps
  11201.  
  11202.  
  11203.  The %path% variable is replaced by the existing path, and APPS is appended
  11204.  to the end of the list. After you have set your path, verify that it has
  11205.  been added by typing set again.
  11206.  
  11207.  Deleting a Setting
  11208.  
  11209.  To delete the current setting for an environment variable, you type set
  11210.  followed by the name of the variable and an equal sign (=), but you do not
  11211.  type a value to be assigned to the variable. For example, to delete the
  11212.  DPATH environment variable and its current setting from your environment,
  11213.  type the following:
  11214.  
  11215.  set dpath=
  11216.  
  11217.  
  11218.  
  11219.  
  11220.  Inheriting the Environment of the Session
  11221.  
  11222.  To start a new copy of cmd in a window and have it inherit the environment
  11223.  that was set up when you started your system, use the start command with the
  11224.  /i option. Normally, when you type start, the new copy of cmd inherits the
  11225.  environment of the current session. Since you can change the environment at
  11226.  any time by using the path and set commands, your current environment may
  11227.  not be the same as the one that you originally set up in the CONFIG.SYS
  11228.  file. To cause a new copy of cmd to inherit the environment set up in your
  11229.  CONFIG.SYS file, type the following:
  11230.  
  11231.  start /i
  11232.  
  11233.  
  11234.  Cmd starts to run in a new window. Now, if you type set by itself, you will
  11235.  see that the new environment is identical to the environment set in
  11236.  CONFIG.SYS. (For information about environment variables set in CONFIG.SYS,
  11237.  see Chapter 15, "Using MS OS/2 Configuration Commands." For more information
  11238.  about the start command, see "Starting a Program with the Start Command,"
  11239.  earlier in this chapter.)
  11240.  
  11241.  
  11242.  Redirecting Input, Output, and Error Messages
  11243.  
  11244.  When an MS OS/2 program runs, it usually receives input and
  11245.  produces output. For example, the output of the dir command is a directory
  11246.  list that is usually displayed on your screen. In addition, if the system
  11247.  encounters errors while running a program, it displays error messages.
  11248.  
  11249.  MS OS/2 programs can receive input from different devices, such as a
  11250.  keyboard, a disk file, or a modem. Similarly, programs can send their output
  11251.  and error messages to different destinations, such as a computer screen, a
  11252.  disk file, or a printer. .AR 19.5P
  11253.  
  11254.  By default setting, MS OS/2 programs receive input from the keyboard and
  11255.  send output to the screen.
  11256.  
  11257.  Information that you type at the keyboard is called standard input, or
  11258.  STDIN, and the information that is sent to the screen is called standard
  11259.  output, or STDOUT. In addition, if the system encounters an error condition,
  11260.  it normally sends error messages to the screen. This is called the standard
  11261.  error, or STDERR.
  11262.  
  11263.  If you want MS OS/2 to have input come from a source other than the
  11264.  keyboard, or have output or error messages sent to a device other than the
  11265.  screen, you can use two powerful features of MS OS/2: redirection symbols
  11266.  and pipes.
  11267.  
  11268.  Redirection symbols (>, <, or >) let you change the way that MS OS/2 deals
  11269.  with input and output. Instead of taking input from the keyboard, for
  11270.  example, you could direct MS OS/2 to access data from a file on your disk.
  11271.  Instead of displaying output on the screen, you could send the program's
  11272.  output or error messages to a printer. Pipes ( | ) let you take the output
  11273.  of one program and use it as the input to another program. The uses of
  11274.  redirection symbols and pipes are described further in the following
  11275.  sections.
  11276.  
  11277.  To keep track of data and to identify files, MS OS/2 uses file handles, and
  11278.  some of these can be redirected. By default setting, STDIN has the value (or
  11279.  handle) of 0, STDOUT has the value of 1, and STDERR has the value of 2. File
  11280.  handles 0 through 9 can be redirected by using the MS OS/2 command
  11281.  interpreter, cmd. File handles 3 through 9 must have been assigned by a
  11282.  program before they can be redirected.
  11283.  
  11284.  Pipes and redirection symbols can be used alone or in combination to change
  11285.  where input is read from and where output and error messages are written to.
  11286.  This lets you redirect input, output, and error messages to a file or device
  11287.  other than the keyboard or the screen.
  11288.  
  11289.  
  11290.  Saving Program Output in a File
  11291.  
  11292.  Instead of displaying messages on the screen, you can have those messages
  11293.  sent to a file on your disk. To redirect the standard output (STDOUT) to a
  11294.  file, you use a greater-than sign (>) in your command. Unless you specify a
  11295.  number before the greater-than sign, the standard output (handle 1) is
  11296.  assumed. This means that > and 1> are equivalent.
  11297.  
  11298.  For example, to redirect the output of the dir command to a file named
  11299.  DIRLIST.TXT, type the following:
  11300.  
  11301.  dir > dirlist.txt
  11302.  
  11303.  
  11304.  Now, if you use the type command to view DIRLIST.TXT, you will see that the
  11305.  directory list appears in the file. If the filename you specify does not
  11306.  already exist, MS OS/2 creates a new file and stores your directory list in
  11307.  it. However, if the filename does already exist, MS OS/2 replaces what is in
  11308.  the file with the new data (the old contents of the file are lost), so be
  11309.  sure not to specify the name of an existing file that you want to keep.
  11310.  
  11311.  
  11312.  Sending Program Output to a Device
  11313.  
  11314.  You can also redirect standard output to a device. For example, if you want
  11315.  to send your directory list to a printer that is attached to your computer's
  11316.  first parallel port (LPT1), type the following:
  11317.  
  11318.  dir > \dev\lpt1
  11319.  
  11320.  
  11321.  Or, to send your list to a terminal that is attached to your computer's
  11322.  first serial communications port (COM1), type the following:
  11323.  
  11324.  dir > \dev\com1
  11325.  
  11326.  
  11327.  Remember that your devices must be installed and running properly before you
  11328.  can redirect output to them.
  11329.  
  11330.  Finally, if your program sends output to handles 3 through 9, you can
  11331.  redirect standard output to a file or device by specifying the handle number
  11332.  before the greater-than sign. For example, if you typed myprog 3> outfile,
  11333.  this would take any output from MYPROG that is sent to handle 3 and send it
  11334.  to OUTFILE.
  11335.  
  11336.  
  11337.  Appending Output to a File
  11338.  
  11339.  If you
  11340.  want to add standard output to a file (instead of replacing the entire
  11341.  file), you can use two greater-than signs (>) to tell MS OS/2 to append the
  11342.  output of the command (such as a directory list) to the end of the file you
  11343.  specify. For example, to append your directory list to an existing file
  11344.  named NEWLIST.TXT, type the following:
  11345.  
  11346.  dir > newlist.txt
  11347.  
  11348.  
  11349.  When you redirect output with two greater-than signs (>), the existing
  11350.  contents of the file are not overwritten.
  11351.  
  11352.  
  11353.  Reading Input from a File
  11354.  
  11355.  If you want your program to read input from a file, use a less-than sign (<)
  11356.  in your command. Unless you enter a number before the less-than sign,
  11357.  standard input (handle 0) is assumed. This means that < and 0< are
  11358.  equivalent.
  11359.  
  11360.  It is often useful to have the input for a command come from a source other
  11361.  than the keyboard, such as from a file. For example, suppose you have a file
  11362.  called NAMESnot in alphabetical order, you could sort the file's contents by
  11363.  typing the following:
  11364.  
  11365.  sort < names
  11366.  
  11367.  
  11368.  The sort utility takes the contents of NAMESdisplays the newly sorted
  11369.  contents alphabetically on the screen.
  11370.  
  11371.  
  11372.  Reading Input from One File and Saving the Output in Another
  11373.  
  11374.  You can have a program both read input from a file and save output in
  11375.  another file by combining redirection symbols. For example, to sort the
  11376.  addresses in the client list in ADDRESSCLIENTS.ADD, type the following:
  11377.  
  11378.  sort < address
  11379.  
  11380.  
  11381.  Thus, ADDRESSthe output.
  11382.  
  11383.  
  11384.  Saving Error Messages in a File
  11385.  
  11386.  By default setting, MS OS/2 displays error messages (STDERR) on your screen.
  11387.  It is sometimes helpful, however, to store them in a file. That way, you
  11388.  have a permanent record of any errors you encounter while running a program.
  11389.  Suppose you are planning to copy all of the files on drive C that contain
  11390.  the filename extension .TXT to drive A. To do this and to create a file to
  11391.  hold the error messages that may appear while the files are being copied,
  11392.  type the following:
  11393.  
  11394.  copy *.txt a: 2> logfile.mes
  11395.  
  11396.  
  11397.  Any error messages that the operating system sends out during the copying
  11398.  operation are now stored in the file LOGFILE.MES. If you use the type
  11399.  command to view LOGFILE.MES, you will see the error messages that would
  11400.  normally be displayed on your screen. In this case, the message might be
  11401.  "SYS0002: The system cannot find the file specified." You must use the
  11402.  number 2 before the redirection symbol to specify that the error messages,
  11403.  not the command's output, are redirected to LOGFILE.MES.
  11404.  
  11405.  
  11406.  Sending Both Output and Error Messages to One File
  11407.  
  11408.  If you want your log file to contain both standard output and standard error
  11409.  messages, you can redirect them both to the same output device or file. This
  11410.  can be useful when you run a detached program, since you cannot view the
  11411.  output from background programs while they are running. After the detached
  11412.  program finishes running, you can view an output file that contains output
  11413.  and error messages that would normally have been displayed on your screen if
  11414.  the program had been running in a session. For example, if you want to use
  11415.  the dir command to list all of the .TXT files that are on your current
  11416.  drive. To send both the standard output standard output (handle 1) and the
  11417.  standard-error messages (handle 2) to the file LOGFILE.MES, type the
  11418.  following:
  11419.  
  11420.  dir *.txt > logfile.mes 2>&1
  11421.  
  11422.  
  11423.  In this example, "2>&1" tells MS OS/2 that any output written to handle 2
  11424.  will have the same effect as if it were written to handle 1. Therefore, the
  11425.  LOGFILE.MES file will contain both the output of the dir command and any
  11426.  error messages. The order of the symbols and arguments in the command is
  11427.  very important here: "2>&1" must follow the name of the file.
  11428.  
  11429.  
  11430.  Sending Output and Error Messages to Different Files
  11431.  
  11432.  
  11433.  If you want output or error messages to be directed to two different files,
  11434.  specify the filenames separately:
  11435.  dir *.txt > outfile.doc 2> errfile.doc
  11436.  
  11437.  
  11438.  Now, any output from the dir command is in OUTFILE.DOC, and error messages
  11439.  are in ERRFILE.DOC.
  11440.  
  11441.  
  11442.  Taking Output from One Program and Sending It to Another
  11443.  
  11444.  Another way you can manipulate input and output is by using pipes. Pipes
  11445.  work by taking the output of one command and using it as the input for the
  11446.  next command. Using pipes saves time, since you can run two, three, or more
  11447.  programs from a single command line.
  11448.  
  11449.  Piped commands are separated by the pipe symbol ( | ). When you use pipes,
  11450.  the first command on the command line runs as usual. The output of the first
  11451.  command is piped (that is, used as input) to the command that follows the
  11452.  first pipe symbol. The second command then runs, using the piped input. This
  11453.  program is repeated until all of the piped commands are processed. By using
  11454.  pipes, you could process the same set of data in several different ways.
  11455.  
  11456.  For example, to view a sorted directory list of the current directory, type
  11457.  the following:
  11458.  
  11459.  dir | sort
  11460.  
  11461.  
  11462.  The dir command is carried out, and the output (the directory list) is piped
  11463.  to the sort utility. Then, the sort utility sorts the output, and the screen
  11464.  displays an alphabetically sorted directory list.
  11465.  
  11466.  
  11467.  Tasks That Use Redirection Symbols and Pipes
  11468.  
  11469.  
  11470.  You can use redirection symbols and pipes to perform many tasks. The
  11471.  following examples show just a few possible uses.
  11472.  Sorting a Directory List and Saving It in a File
  11473.  
  11474.  By combining the pipe and redirection symbols, you can pipe the output of
  11475.  one command to another command and then save the output in a file. A useful
  11476.  technique is to pipe two commands together and send the output to a file.
  11477.  For example, the following command creates a file named DIRECT.LST in your
  11478.  working directory:
  11479.  
  11480.  dir | sort > direct.lst
  11481.  
  11482.  
  11483.  The DIRECT.LST file now contains a sorted list of the working directory.
  11484.  
  11485.  You can also specify a drive other than the default drive. For example,
  11486.  suppose you want to create the file DIRECT.LST on drive B and send the
  11487.  sorted data to it. To do this, type the following:
  11488.  
  11489.  dir | sort > b:direct.lst
  11490.  
  11491.  
  11492.  
  11493.  
  11494.  Printing a Sorted Phone List
  11495.  
  11496.  As you have already seen, you can redirect both the input and the output of
  11497.  a program. It is sometimes useful to print the output of a program. For
  11498.  example, if you wanted to sort a phone list and then print out the sorted
  11499.  list, you could type the following:
  11500.  
  11501.  sort < phone.lst > \dev\lpt1
  11502.  
  11503.  
  11504.  The contents of the file PHONE.LST first become the input for the sort
  11505.  utility and then become the output to a printer attached to LPT1.
  11506.  
  11507.  Reassigning Standard Input and Standard Output
  11508.  
  11509.  You can assign standard input and output to a different keyboard and
  11510.  terminal. For example, to assign standard input and output to the keyboard
  11511.  and terminal attached to COM1, type the following:
  11512.  
  11513.  cmd < \dev\com1 > \dev\com1
  11514.  
  11515.  
  11516.  This would allow you to run cmd on your computer from a remote terminal.
  11517.  This is similar to the ctty command in the MS-DOS operating system.
  11518.  
  11519.  Preventing Error Messages from Being Displayed
  11520.  
  11521.  If you do not want error messages to be displayed on your screen, you can
  11522.  redirect them to NUL. Anything sent to NUL is discarded. To send error
  11523.  messages to NUL, type the following:
  11524.  
  11525.  cmd 2> \dev\nul
  11526.  
  11527.  
  11528.  This command starts a new command interpreter (cmd) and sends all error
  11529.  messages to NUL.
  11530.  
  11531.  Piping Several Commands Together
  11532.  
  11533.  You can pipe several commands together. For example, to sort several phone
  11534.  lists and display the sorted output one screenful at a time, you could type
  11535.  the following:
  11536.  
  11537.  type *.lst | sort | more
  11538.  
  11539.  
  11540.  All of the phone lists having the filename extension .LST are sent as output
  11541.  together to be sorted and then displayed one screenful at a time.
  11542.  
  11543.  
  11544.  
  11545.  
  11546.  
  11547.  Chapter 9  Using MS OS/2 Utilities
  11548.  ────────────────────────────────────────────────────────────────────────────
  11549.  
  11550.  
  11551.  
  11552.  
  11553.  Introduction
  11554.  
  11555.  MS OS/2 provides programs called utilities to help you work with directories
  11556.  and data files, maintain disks, print files, change your keyboard layout,
  11557.  and display Help information.
  11558.  
  11559.  Utilities can run in either a full screen or in a window; you can start them
  11560.  from the MS OS/2 command interpreter (cmd) in a full screen, from cmd in a
  11561.  window, or from Desktop Manager. The examples in this chapter assume that
  11562.  you are in a full-screen session and have started cmd.
  11563.  
  11564.  In addition, most of these utilities can run in the DOS session. Chapter 10,
  11565.  "Using the DOS Session," describes which of the utilities in this chapter
  11566.  can be run in the DOS session and which ones must be run in a full-screen or
  11567.  Presentation Manager session.
  11568.  
  11569.  ────────────────────────────────────────────────────────────────────────────
  11570.  Note
  11571.  
  11572.  All examples of filenames and directory names in this chapter use the file
  11573.  allocation table (FAT) file system, which is the file system used by DOS and
  11574.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  11575.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  11576.  High-Performance File System."
  11577.  ────────────────────────────────────────────────────────────────────────────
  11578.  
  11579.  
  11580.  
  11581.  
  11582.  Starting a Utility
  11583.  
  11584.  If you run certain utilities often, you might want to add them to Desktop
  11585.  Manager. That way, you can run the utility directly from Desktop Manager
  11586.  without having to start the cmd program. See Chapter 2, "Running
  11587.  Applications with MS OS/2," for details on how to add programs to Desktop
  11588.  Manager. For more information about running programs and commands from cmd,
  11589.  see Chapter 8, "Running Cmd." You can also start a utility from Desktop
  11590.  Manager, if the utility appears on the list of programs that can be started.
  11591.  Do the following:
  11592.  
  11593.        Mouse 
  11594.  
  11595.    ■   Double-click the name of the utility.
  11596.  
  11597.  
  11598.  Some utilities are designed to be run from a full screen. If they are run
  11599.  from a cmd window, these utilities will display their output on the full
  11600.  screen, then they will switch back to the window when the utility is
  11601.  finished running. This may happen so quickly that you won't have time to
  11602.  read the full-screen output. If this happens, switch to a full-screen
  11603.  session and start the utility again. To start a utility from the cmd prompt,
  11604.  do the following:
  11605.  
  11606.        Keyboard 
  11607.  
  11608.    ■   At the prompt, type the name of the program you want to start,
  11609.        followed by any command-line arguments, and press ENTER.
  11610.  
  11611.  
  11612.  
  11613.  
  11614.  Getting Help Information
  11615.  
  11616.  
  11617.  To display Help information about warning or error messages that you may see
  11618.  on your screen, use the MS OS/2 Help batch program. Each of these messages
  11619.  consists of a number (for example, SYS1041) and a brief description of the
  11620.  error condition. For a more detailed explanation of the error condition, you
  11621.  type help followed by the message number. For example, suppose that you
  11622.  receive the error message, "SYS0002: The system cannot find the file
  11623.  specified." To see a detailed explanation of this error message, type the
  11624.  following:
  11625.  help sys0002
  11626.  
  11627.  
  11628.  The message number can be shortened to 0002, or just 2, such that you only
  11629.  need to type help 2 on the command line. A more detailed explanation of the
  11630.  possible problem and the action you might take to correct the problem appear
  11631.  on your screen:
  11632.  
  11633.  SYS0002: The system cannot find the file specified.
  11634.  
  11635.  
  11636.  EXPLANATION: The file named in the command
  11637.  does not exist in the current directory or search path
  11638.  specified. Or, the filename was entered incorrectly.
  11639.  ACTION: Retry the command using the correct filename.
  11640.  
  11641.  
  11642.  
  11643.  
  11644.  
  11645.  Working with Disks
  11646.  
  11647.  MS OS/2 provides the following utilities to help you work with disks:
  11648.  
  11649.  Utility                           Purpose
  11650.  ────────────────────────────────────────────────────────────────────────────
  11651.  
  11652.  format                            Formats a disk.
  11653.  
  11654.  diskcopy                          Copies the contents of a floppy disk to
  11655.                                    another floppy disk.
  11656.  
  11657.  
  11658.  
  11659.  Utility                           Purpose
  11660.  ────────────────────────────────────────────────────────────────────────────
  11661.  
  11662.  label                             Assigns a volume label to a disk.
  11663.  
  11664.  diskcomp                          Compares the contents of two floppy
  11665.                                    disks.
  11666.  
  11667.  These utilities are described in the following sections.
  11668.  
  11669.  
  11670.  Formatting a Floppy Disk
  11671.  
  11672.  Before you can use a floppy disk, you must prepare it for use by
  11673.  using the format utility. You can also format a previously formatted disk.
  11674.  Formatting a disk erases all of its contents.
  11675.  
  11676.  Before you format your disk, make sure that you know what type of disk you
  11677.  have and what type of disk drive is in your computer. The following list
  11678.  shows the types of floppy disks that can be formatted with the format
  11679.  utility:
  11680.  
  11681.  Disk size                         Type
  11682.  ────────────────────────────────────────────────────────────────────────────
  11683.  
  11684.  5-inch                            360-kilobyte (low-density)
  11685.  
  11686.  5-inch                            1.2-megabyte (high-density)
  11687.  
  11688.  3-inch                            720-kilobyte (low-density)
  11689.  
  11690.  3-inch                            1.44-megabyte (high-density)
  11691.  
  11692.  With the default setting, the format utility will format a disk according to
  11693.  the size and type of drive in your computer. If you do not specify options,
  11694.  and if your computer has a low-density drive, the format utility functions
  11695.  as though you are formatting a low-density disk; if your computer has a
  11696.  high-density drive, format functions as though you are formatting a
  11697.  high-density disk. (If your computer has more than one type of drive, the
  11698.  density level that format sets itself to process will depend on which drive
  11699.  you tell format to use.) Later in this section, you'll learn about options
  11700.  that override the default setting.
  11701.  
  11702.  Formatting a 5-Inch Disk
  11703.  
  11704.  To format a 5-inch disk (low- or high-density) in a disk drive of the same
  11705.  size, you type format followed by the letter of the drive that contains the
  11706.  disk. If you want to format a disk in drive A, type the following:
  11707.  
  11708.  format a:
  11709.  
  11710.  
  11711.  A message will then appear, asking you to insert a floppy disk in drive A
  11712.  and press ENTER, at which point formatting will begin. Usually, disks are
  11713.  given a volume label that identifies the disk. This label can be up to 11
  11714.  characters in length. After a disk is formatted, the format utility
  11715.  automatically prompts you to type the volume label. Then another message
  11716.  will appear, asking whether you want to format another disk. If you prefer,
  11717.  you can specify the volume label as an argument to format by using the
  11718.  option /v:label after the drive letter. For example, to give the label
  11719.  REPORTS to the disk in drive A, type the following:
  11720.  
  11721.  format a: /v:reports
  11722.  
  11723.  
  11724.  Since you have already specified the volume label, you will not be prompted
  11725.  to type it after the disk is formatted. Although a high-density
  11726.  (1.2-megabyte) drive is designed to format high-density disks, you can also
  11727.  format a 5-inch double-sided low-density (360K) disk by using the option /4.
  11728.  For example, to format a low-density disk in drive B, which is a
  11729.  high-density drive, type the following:
  11730.  
  11731.  format b: /4
  11732.  
  11733.  
  11734.  
  11735.  ────────────────────────────────────────────────────────────────────────────
  11736.  Note
  11737.  
  11738.  This option is designed to format low-density disks that will be used in
  11739.  high-density drives. If you format a disk with the /4 option in a
  11740.  high-density (1.2-megabyte) drive, you might not be able to read that disk
  11741.  in a low-density (360K) drive.
  11742.  ────────────────────────────────────────────────────────────────────────────
  11743.  
  11744.  
  11745.  
  11746.  Formatting a 3-Inch Disk
  11747.  
  11748.  The format
  11749.  utility has two options that are used to format 3-inch disks: /t:tracks and
  11750.  /n:sectors. These options are normally used to format disks that are of a
  11751.  lower density than the drive (for example, to format a 720K disk in a
  11752.  1.44-megabyte drive).
  11753.  
  11754.  The /t:tracks option formats a disk to the number of tracks specified.
  11755.  Tracks is the number of tracks per disk. For 720K and 1.44-megabyte disks,
  11756.  this value is 80. If you do not specify this option, format uses the size of
  11757.  the drive to determine how many tracks the disk should have.
  11758.  
  11759.  The /n:sectors option formats a disk to the number of sectors specified.
  11760.  Sectors is the number of sectors per track. For 720K disks, this value is 9,
  11761.  and for 1.44-megabyte disks, this value is 18. For example, to format a
  11762.  3-inch low-density (720K) disk in drive A, which is a high-density drive,
  11763.  type the following:
  11764.  
  11765.  format a: /n:9
  11766.  
  11767.  
  11768.  You cannot do the opposite, however. You cannot format a high-density disk
  11769.  in a low-density drive.
  11770.  
  11771.  
  11772.  Copying a Disk
  11773.  
  11774.  To copy the contents of a floppy disk in one drive (the source
  11775.  drive) to a floppy disk in another drive (the destination drive), you can
  11776.  use the diskcopy utility. If the destination disk is unformatted, diskcopy
  11777.  formats the disk with the same number of sides and sectors per track as the
  11778.  source disk. Use this utility with care, since diskcopy destroys the
  11779.  existing contents of the destination disk. To run the diskcopy utility, you
  11780.  type diskcopy followed by the names of the source and destination drives.
  11781.  The source and destination drives can be the same; if you do not specify any
  11782.  drives, diskcopy uses the current drive as both source and destination. The
  11783.  diskcopy utility prompts you to insert the source and destination disks at
  11784.  appropriate times and waits for you to press a key before continuing. If
  11785.  errors are found on either disk, a message appears on the screen, describing
  11786.  the drive, track, and side where the error was found. After this, the
  11787.  copying operation continues. When it finishes copying the first disk,
  11788.  diskcopy asks you whether you want to copy another disk.
  11789.  
  11790.  The diskcopy utility is most often used to make backup copies of floppy
  11791.  disks. Diskcopy copies an entire floppy disk faster than the copy command
  11792.  does. For example, many applications require you to make backup copies of
  11793.  the installation disk. To do this using diskcopy, insert the installation
  11794.  disk in drive A, and a blank, formatted disk in drive B. Then type the
  11795.  following:
  11796.  
  11797.  diskcopy a: b:
  11798.  
  11799.  
  11800.  Or, if your computer has only one floppy-disk drive, specify drive A as both
  11801.  the source and the destination drive:
  11802.  
  11803.  diskcopy a: a:
  11804.  
  11805.  
  11806.  The diskcopy utility prompts you to insert the source or destination disk at
  11807.  appropriate times. When diskcopy has finished copying the disk, a message
  11808.  appears asking whether you want to copy another disk.
  11809.  
  11810.  The copying is done track by track and produces an identical copy of the
  11811.  original disk. Diskcopy does not work on hard disks, and you cannot run this
  11812.  utility on drives that you have used in the subst or join utility. Also,
  11813.  diskcopy ignores any assignments created by the assign utility, and the
  11814.  source and destination disks cannot be virtual or assigned disks. Certain
  11815.  restrictions apply concerning which types of disks can be copied in certain
  11816.  disk drives. For more information about types of disks and disk drives, see
  11817.  "Working with Disks," earlier in this chapter.
  11818.  
  11819.  
  11820.  Assigning or Changing the Volume Label
  11821.  
  11822.  To assign a volume label to a floppy disk or hard disk or to change the
  11823.  existing label, use the label utility. To use this utility, you type label
  11824.  followed by the drive letter and the label to be assigned to the disk. If
  11825.  you omit the drive letter, the label will be assigned to the current drive.
  11826.  For example, suppose that you want to change the volume label of drive D
  11827.  from APPS to MKTG. Type the following:
  11828.  
  11829.  label d:
  11830.  
  11831.  
  11832.  The current label is displayed, and you are prompted for the new volume
  11833.  label:
  11834.  
  11835.  The volume label in drive D is APPS.
  11836.  Enter a volume label of up to 11 characters
  11837.  or press Enter for no volume label update.
  11838.  
  11839.  
  11840.  Type mktg and press ENTER. If you now type vol d: to view the label, you
  11841.  will see that the label has been changed to MKTG. You can type the volume
  11842.  label on the command line, as follows:
  11843.  
  11844.  label d:mktg
  11845.  
  11846.  
  11847.  No messages are displayed. The prompt appears again after the operation is
  11848.  complete.
  11849.  
  11850.  
  11851.  Comparing Floppy Disks
  11852.  
  11853.  To compare the contents of a floppy disk in the source drive to the contents
  11854.  of a floppy disk in the destination drive, use the diskcomp utility. The
  11855.  comparison is done track by track, and diskcomp automatically determines the
  11856.  number of sides and sectors per track based on the format of the source
  11857.  disk. The source and destination disks must be of the same type. Diskcomp
  11858.  does not work on hard disks. For example, suppose that you receive an update
  11859.  package for a word-processing program. When you are in the middle of making
  11860.  a backup copy of the updated version, you are interrupted, and the floppy
  11861.  disk you have just copied gets mixed in with disks that contain old versions
  11862.  of the program. To determine which disk you just copied, place the update
  11863.  disk in drive A and one of the unknown disks in drive B, then type the
  11864.  following:
  11865.  
  11866.  diskcomp a: b:
  11867.  
  11868.  
  11869.  Or, if your computer has only one floppy-disk drive, specify drive A as both
  11870.  the source and destination drive:
  11871.  
  11872.  diskcomp a: a:
  11873.  
  11874.  
  11875.  The diskcomp utility prompts you to insert the source and destination disks
  11876.  at appropriate times during the disk comparison. If it finds a place where
  11877.  the contents of the two disks are not identical, an error message appears,
  11878.  telling you the side and track that are different.
  11879.  
  11880.  If the disks are identical, a message appears at the end of the comparison,
  11881.  telling you that the disks are identical. After diskcomp is through running,
  11882.  a message appears, asking you whether you want to compare two more disks.
  11883.  
  11884.  
  11885.  Working with Files and Directories
  11886.  
  11887.  MS OS/2 provides the following utilities to help you manage your
  11888.  files and directories:
  11889.  
  11890.  Utility                           Purpose
  11891.  ────────────────────────────────────────────────────────────────────────────
  11892.  
  11893.  xcopy                             Copies a directory and its contents to
  11894.                                    another directory.
  11895.  
  11896.  tree                              Displays a list of all the directories
  11897.                                    and files on a drive.
  11898.  
  11899.  attrib                            Displays or sets the file flags (also
  11900.                                    known as attributes) of files.
  11901.  
  11902.  The following sections describe these utilities.
  11903.  
  11904.  
  11905.  Copying Directories and Subdirectories
  11906.  
  11907.  To copy an entire directory and its contents, use the xcopy utility. To use
  11908.  this utility, specify a source directory that files will be copied from and
  11909.  a destination where files will be placed. The source and destination can be
  11910.  a drive, directory path, and/or filename. If you do not specify a drive or
  11911.  directory path, xcopy uses the current drive and directory.
  11912.  
  11913.  The xcopy utility has several useful options. These options are described in
  11914.  the following sections.
  11915.  
  11916.  Specifying a Directory or Subdirectory
  11917.  
  11918.  You may want to copy not only the files in a directory, but all of the
  11919.  subdirectories as well. You could copy the files in each subdirectory
  11920.  individually to the destination directory, but this is often very time
  11921.  consuming. An easier way is to use the /s and /e options with xcopy. The /s
  11922.  option copies subdirectories unless they are empty; /e copies subdirectories
  11923.  that are empty. Together these options enable you to copy the files in the
  11924.  specified directory in addition to the files in all of the subdirectories.
  11925.  You must specify both options in order to copy all of the subdirectories.
  11926.  
  11927.  To see how these options work, suppose you have a directory named OS12,
  11928.  which has the following subdirectories and files:
  11929.  
  11930.               OS12
  11931.        ________|________________________________________
  11932.        |               |               |               |
  11933.       BIN            BATCH          FILE.DOC        FILE.BAK
  11934.        |         ______|______
  11935.        |         |           |
  11936.      MY.EXE    SHOW.CMD    TELL.CMD
  11937.  
  11938.  
  11939.  If you type the following, you will copy the files in the OS12 directory, as
  11940.  well as the files in the BIN and BATCH subdirectories, to the root directory
  11941.  in drive A:
  11942.  
  11943.  xcopy \os12\*.* /s /e a:\
  11944.  
  11945.  
  11946.  The xcopy utility preserves the original directory structure as it copies
  11947.  files and directories─the OS12 directory will appear in the root directory
  11948.  of drive A, BIN and BATCH will appear as subdirectories of OS12, and so on.
  11949.  
  11950.  Confirming Each Copying Operation
  11951.  
  11952.  The /p option causes the xcopy utility to prompt you with "(Y/N)?" after
  11953.  displaying the name of each source file and before copying it. To copy the
  11954.  file, type Y for yes. To prevent that file from being copied, type N for no.
  11955.  
  11956.  
  11957.  Verifying Each Copying Operation
  11958.  
  11959.  You can use the /v option to verify that each file is copied accurately.
  11960.  This compares the destination file to the source file to make sure that they
  11961.  are identical.
  11962.  
  11963.  Preserving Extended Attributes
  11964.  
  11965.  In MS OS/2, some applications attach extended attributes (additional
  11966.  information, such as author, application type, and file history) to your
  11967.  files and directories. These extended attributes are used by other
  11968.  applications, the file system, or the operating system itself. For example,
  11969.  an application such as Microsoft Excel may check a file's extended
  11970.  attributes to determine whether the file is a Microsoft Excel chart.
  11971.  
  11972.  The xcopy utility copies a source file's extended attributes to the
  11973.  destination file. You can see if your files have extended attributes by
  11974.  using the dir command with the /n option. If a file has extended attributes,
  11975.  the size of the attributes is displayed in the column before the filename.
  11976.  
  11977.  You may want to use the eautil utility before copying files that have
  11978.  extended attributes to a directory in MS-DOS or MS OS/2 versions earlier
  11979.  than 1.2. By using the eautil utility, you can split files and their
  11980.  extended attributes into separate files, copy the files, and then join the
  11981.  files together again. For information about the eautil utility, see the
  11982.  Microsoft Operating System/2 Command Reference.
  11983.  
  11984.  If you are copying a file that has extended attributes to a file system that
  11985.  does not support extended attributes, you may want to use the /f option with
  11986.  the xcopy utility. For more information about using the xcopy utility on
  11987.  files with extended attributes, see the Microsoft Operating System/2 Command
  11988.  Reference.
  11989.  
  11990.  
  11991.  Displaying the Directory Tree
  11992.  
  11993.  The tree utility displays the entire directory structure for a drive. To see
  11994.  the names of all the directories on your current drive (starting with the
  11995.  root directory), you type tree without arguments. To see the names of all
  11996.  the directories on a different drive, specify the name of the drive after
  11997.  tree.
  11998.  
  11999.  For example, to see the names of all the directories on drive B, type the
  12000.  following:
  12001.  
  12002.  tree b:
  12003.  
  12004.  
  12005.  A list similar to this one will appear:
  12006.  
  12007.  Directory path listing
  12008.  
  12009.  Path: \ACCOUNTS
  12010.  
  12011.  Subdirectories: APRIL
  12012.                   MAY
  12013.  
  12014.  
  12015.  
  12016.  Path: \ACCOUNTS\APRIL
  12017.  
  12018.  Subdirectories: None
  12019.  
  12020.  
  12021.  
  12022.  Path: \ACCOUNTS\MAY
  12023.  
  12024.  Subdirectories: None
  12025.  
  12026.  
  12027.  Since the directory-tree list may be very long, you will probably want to do
  12028.  one of two things when you use the tree utility. You may want to redirect
  12029.  the output to a file, or you may want to use the more utility to view the
  12030.  list one screenful at a time.
  12031.  
  12032.  Redirecting Output to a File
  12033.  
  12034.  Use the redirection symbol (>) to send the directory-tree list to a file.
  12035.  For example, to see the directories on your current drive and redirect them
  12036.  to the file TREE.LST, type the following:
  12037.  
  12038.  tree > tree.lst
  12039.  
  12040.  
  12041.  Then, you can use the type command to view the file TREE.LST or the print
  12042.  utility to print the file. The print utility is discussed in greater detail
  12043.  in "Printing Data Files," later in this chapter. .ET
  12044.  
  12045.  Viewing the Directory Tree One Screenful at a Time
  12046.  
  12047.  If you have many directories, the directory-tree list may scroll on your
  12048.  screen too fast for you to read. To view the list one screenful at a time,
  12049.  you can pipe the output of the tree utility to the more utility as follows:
  12050.  
  12051.  tree a: | more
  12052.  
  12053.  
  12054.  Each time a screenful of information is displayed, you will see the message
  12055.  "-- More --" displayed at the bottom of the screen. Press the SPACEBAR or
  12056.  the ENTER key to display the next screenful.
  12057.  
  12058.  Displaying Filenames
  12059.  
  12060.  You can use the /f option after the drive letter to display the names of the
  12061.  files within the directories on a drive. For example, suppose you want to
  12062.  generate a list of all the files that you currently have on your hard disk.
  12063.  To display a list of the directories and all of the files on drive C, type
  12064.  the following:
  12065.  
  12066.  tree c: /f
  12067.  
  12068.  
  12069.  
  12070.  
  12071.  
  12072.  Displaying and Setting File Flags
  12073.  
  12074.  
  12075.  You can use the attrib utility to display and set file flags, which are
  12076.  special features that a file can have. The following file flags can be set:
  12077.    ■   Read-only
  12078.  
  12079.    ■   Archive
  12080.  
  12081.  
  12082.  .RT You have the option of turning file flags on or off. If the read-only
  12083.  file flag is set, you can read a file but you cannot change its contents.
  12084.  This flag is commonly used to prevent a file from being deleted or changed
  12085.  accidentally. Flagging files with the archive flag allows you to copy only
  12086.  recently modified files to or from a disk with utilities such as backup,
  12087.  restore, and xcopy.
  12088.  
  12089.  
  12090.  
  12091.  Displaying File Flags
  12092.  
  12093.  To see which file flags are set for one or more files, you type attrib
  12094.  followed by the names of the files you are interested in. For example, to
  12095.  see which file flags are set on all of the files in your current directory,
  12096.  type the following:
  12097.  
  12098.  attrib *
  12099.  
  12100.  
  12101.  A file list appears on your screen, containing letters that signify which
  12102.  file flags are set for the file. The flags are followed by the drive,
  12103.  directory path, and filename. The file-flag letters you might see are as
  12104.  follows:
  12105.  
  12106.    ■   If the letter "R" appears, the read-only file flag is set for the
  12107.        file. This means that you can read the file, but you cannot change it.
  12108.  
  12109.    ■   If the letter "A" appears, the archive file flag is set for the file.
  12110.        By default setting, all files have the archive file flag set when they
  12111.        are created or modified. Certain programs, such as xcopy, backup, and
  12112.        restore, can turn off a file's archive file flag after they run. For
  12113.        more information about how the archive file flag works with these
  12114.        programs, see "Setting the Archive File Flag," later in this chapter.
  12115.  
  12116.  
  12117.  To gain a better understanding of how file flags work, suppose that a
  12118.  directory contains the files WORD.LST, ACCOUNTS.OLD, and LETTERyou type
  12119.  attrib *, the following appears on your screen:
  12120.  
  12121.        R  C:\WORD.LST
  12122.  A        C:\ACCOUNTS.OLD
  12123.  A     R  C:\LETTER
  12124.  
  12125.  
  12126.  Notice that WORD.LST and LETTERyou can read these files but you cannot
  12127.  change them. ACCOUNTS.OLD and LETTERarchive file flag turned off. To see the
  12128.  file flags for files in the current directory and in any subdirectories,
  12129.  type the /s option as follows:
  12130.  
  12131.  attrib * /s
  12132.  
  12133.  
  12134.  When you type this command, the subdirectory file entries are listed first
  12135.  and the current directory entries are listed last.
  12136.  
  12137.  Keep the following points in mind when you are copying files:
  12138.  
  12139.    ■   When you copy a file by using the copy command, the archive file flag
  12140.        is automatically set for the file you are copying to (the destination
  12141.        file). This is true even if the file being copied (the source file)
  12142.        has its archive file flag turned off.
  12143.  
  12144.    ■   If the source file has its read-only file flag set, this flag is not
  12145.        copied to the destination file.
  12146.  
  12147.  
  12148.  
  12149.  Setting the Read-Only File Flag
  12150.  
  12151.  
  12152.  The read-only file flag determines whether you can write to a file or a set
  12153.  of files. If the read-only flag is set, it prevents a file from being
  12154.  accidentally modified. Use the +r option to set the read-only file flag, and
  12155.  use the -r option to turn off the flag. Suppose, for example, that you have
  12156.  saved permanent personnel records in the database file EMPLOY.DBS. To
  12157.  prevent other users from modifying this file, set the read-only file flag by
  12158.  typing the following:
  12159.  attrib +r employ.dbs
  12160.  
  12161.  
  12162.  When other users type dir to get a directory list, the read-only file flag
  12163.  cannot be seen. However, if they try to use a text editor to modify the
  12164.  file, or if they try to delete the file, they will be prevented from
  12165.  performing the operation.
  12166.  
  12167.  If you later want to update the personnel records, turn off the read-only
  12168.  file flag by typing the following:
  12169.  
  12170.  attrib -r employ.dbs
  12171.  
  12172.  
  12173.  Now this file can be changed or deleted.
  12174.  
  12175.  Setting the Archive File Flag
  12176.  
  12177.  The archive file flag can be used as a control mechanism with the backup,
  12178.  restore, and xcopy utilities. Use the +a option to set the archive file
  12179.  flag, and use the -a option to turn it off.
  12180.  
  12181.  The /m option used with the backup and restore utilities copies only files
  12182.  that have their archive file flag set. The /m option then automatically
  12183.  turns off the archive file flag of the original files after copying them.
  12184.  Thus, if the archive file flag is turned off, the file is not backed up or
  12185.  restored.
  12186.  
  12187.  With the xcopy utility, you can choose to use the archive file flag in doing
  12188.  copying operations. If you use the /a option, only those files with their
  12189.  archive file flags set will be copied. If you choose the /m option, files
  12190.  with their archive file flags set are copied, and xcopy automatically turns
  12191.  off the archive file flags of the original files after copying them. You
  12192.  usually will not need to turn a file's archive file flag on or off. However,
  12193.  there may be times when you want to modify the way that the backup, restore,
  12194.  or xcopy utilities operate on certain files. For example, suppose that each
  12195.  Monday you make a backup disk that contains specific directories by using
  12196.  the backup utility with the /m option. To save time, you decide to copy only
  12197.  essential files to the backup disk. Instead of letting backup find and copy
  12198.  all of the files that have their file flags set, you can use the -a option
  12199.  to turn off the file flags for all of the files that have the extension
  12200.  .BAK. To perform this operation, type the following:
  12201.  
  12202.  attrib -a *.bak
  12203.  
  12204.  
  12205.  This means that the files that have the extension .BAK will not be copied
  12206.  when you use backup to perform the copying operation.
  12207.  
  12208.  For more information about the backup and restore utilities, see Chapter 12,
  12209.  "Maintaining Your System."
  12210.  
  12211.  
  12212.  Working with Data Files
  12213.  
  12214.  
  12215.  MS OS/2 provides the following utilities to help you view and work with data
  12216.  files:
  12217.  Utility                           Purpose
  12218.  ────────────────────────────────────────────────────────────────────────────
  12219.  
  12220.  more                              Displays output from a command or
  12221.                                    utility, one screenful at a time.
  12222.  
  12223.  sort                              Sorts a file alphabetically or
  12224.                                    numerically.
  12225.  
  12226.  find                              Finds a text string in a file.
  12227.  
  12228.  comp                              Compares two files or sets of files.
  12229.  
  12230.  The more and sort utilities (sometimes called filter commands) take input
  12231.  from a device or file, process the input, and then send it to an output
  12232.  device or file. As such, they are used in conjunction with redirection
  12233.  symbols or pipes. The more and sort utilities must be run from the MS OS/2
  12234.  command interpreter (cmd)─they cannot be run from Desktop Manager. For more
  12235.  information on redirection symbols or pipes, see Chapter 8, "Running Cmd."
  12236.  
  12237.  
  12238.  Displaying Output One Screenful at a Time
  12239.  
  12240.  To display output one screenful at a time, use the more utility. You can use
  12241.  this utility in two ways:
  12242.  
  12243.    ■   To view the output of a command or utility one screenful at a time
  12244.  
  12245.    ■   To view files one screenful at a time
  12246.  
  12247.  
  12248.  You can either redirect an input file or pipe the output of a command or
  12249.  utility to more. When the first screen is filled, the message "-- More --"
  12250.  appears at the bottom of the screen. Press the ENTER key to display the next
  12251.  screenful of information.
  12252.  To view the output of a command or utility one screenful at a time, redirect
  12253.  the output to the more utility. To do this, you use the pipe (|) symbol.
  12254.  For example, a long directory list often contains more filenames than can
  12255.  appear in a single screen. You can use the more utility to display your
  12256.  directory list one screenful at a time by typing the following:
  12257.  
  12258.  dir | more
  12259.  
  12260.  
  12261.  Other commands and utilities, such as type, display output information that
  12262.  can also be piped to the more utility. For example, suppose that you have a
  12263.  long file, CLIENTS.NEW, that you want to view on your screen. The following
  12264.  command pipes the file to more:
  12265.  
  12266.  type clients.new | more
  12267.  
  12268.  
  12269.  When you type this command, the CLIENTS.NEW file is displayed one screenful
  12270.  at a time. You could accomplish the same thing by redirecting a file as
  12271.  input to the screen, one screenful at a time. To do this, type the
  12272.  following:
  12273.  
  12274.  more < clients.new
  12275.  
  12276.  
  12277.  
  12278.  
  12279.  
  12280.  Sorting Input and Output
  12281.  
  12282.  To sort input or output according to the character found in a specified
  12283.  column, use the sort utility. Most often you would want to sort by the
  12284.  character in the first column─for example, by the first character of the
  12285.  first word on each line─but you can sort by any column you want. The
  12286.  character is sorted based upon its location in the character set you are
  12287.  using. Which character set you are using depends upon the code page that is
  12288.  set up for your system. (See the Microsoft Operating System/2 Command
  12289.  Reference for the character sets of the different code pages.) .ET
  12290.  
  12291.  For the United States character set, the characters are sorted from 0 to 9
  12292.  and then from A to Z. The sort utility does not distinguish between
  12293.  uppercase and lowercase letters. You can sort files of up to 64K in length.
  12294.  
  12295.  You can use the sort utility in two ways:
  12296.  
  12297.    ■   To sort a file that has been sent as input to sort
  12298.  
  12299.    ■   To sort the output of another command or utility
  12300.  
  12301.  
  12302.  
  12303.  Sorting a File
  12304.  
  12305.  To sort the lines in a file, you redirect an input file to sort. Each line
  12306.  in the file is sorted based upon the character found in the first column,
  12307.  unless you specify a column number. (For more information on how to specify
  12308.  a column number to be used for sorting, see "Sorting by Column," later in
  12309.  this chapter.) For example, suppose that the file INFILE.LST contains the
  12310.  following list of customer names:
  12311.  
  12312.  Draper, John
  12313.  Benson, Clara
  12314.  Wiggins, Bess
  12315.  Peters, Marcus
  12316.  
  12317.  
  12318.  To sort the contents of the INFILE.LST file, type the following:
  12319.  
  12320.  sort < infile.lst
  12321.  
  12322.  
  12323.  The list is then sorted and displayed in this way:
  12324.  
  12325.  Benson, Clara
  12326.  Draper, John
  12327.  Peters, Marcus
  12328.  Wiggins, Bess
  12329.  
  12330.  
  12331.  
  12332.  ────────────────────────────────────────────────────────────────────────────
  12333.  Note
  12334.  
  12335.  The sort utility does not permanently change the order of the contents in
  12336.  the original file. For more information about saving the sorted output in
  12337.  another file, see Chapter 8, "Running Cmd."
  12338.  ────────────────────────────────────────────────────────────────────────────
  12339.  
  12340.  
  12341.  .RT If you want to reverse the order so that the file is sorted from Z to A
  12342.  or from 9 to 0, you can use the /r option. For example, if you use this
  12343.  option with INFILE.LST, your sorted file will look like this:
  12344.  
  12345.  Wiggins, Bess
  12346.  Peters, Marcus
  12347.  Draper, John
  12348.  Benson, Clara
  12349.  
  12350.  
  12351.  
  12352.  
  12353.  Sorting Output
  12354.  
  12355.  You can also pipe the output from another command or utility to the sort
  12356.  utility. For example, to sort the directory list for your current directory,
  12357.  type the following:
  12358.  
  12359.  dir | sort
  12360.  
  12361.  
  12362.  You will see your directory list displayed in alphabetical order.
  12363.  
  12364.       6 File(s)   841728 bytes free
  12365.   Directory of C:\CLUB
  12366.   The volume label in drive C is APPS.
  12367.   The Volume Serial Number is A512:6414
  12368.  
  12369.  .       <DIR>           3-25-89   3:37p
  12370.  ..      <DIR>           3-25-89   3:37p
  12371.  ACCOUNT  OLD       92   6-25-89   5:52p
  12372.  CAT      TXT      120   4-16-89   8:26a
  12373.  LETTER   FIL      252   3-20-89   4:10p
  12374.  WORD     LST       56   5-10-89  11:16a
  12375.  
  12376.  
  12377.  
  12378.  
  12379.  Sorting by Column
  12380.  
  12381.  You can specify any column to be used for the sorting. The option /+n sorts
  12382.  according to the character in column n. For example, to sort your directory
  12383.  list according to the date it was created or last modified, you could sort
  12384.  according to the date field. Let's say that your date field starts in column
  12385.  22 of the directory list. To sort by the date field, type the following:
  12386.  
  12387.  dir | sort /+
  12388.  
  12389.  
  12390.  Your directory list will now appear like this:
  12391.  
  12392.   Directory of C:\CLUB
  12393.  LETTER   FIL      252   3-20-89   4:10p
  12394.  .       <DIR>           3-25-89   3:37p
  12395.  ..      <DIR>           3-25-89   3:37p
  12396.  CAT      TXT      120   4-16-89   8:26a
  12397.  WORD     LST       56   5-10-89  11:16a
  12398.  ACCOUNT  OLD       92   6-25-89   5:52p
  12399.       6 File(s)   841728 bytes free
  12400.   The volume label in drive C is APPS.
  12401.   The Volume Serial Number is A512:6414
  12402.  
  12403.  
  12404.  
  12405.  
  12406.  
  12407.  Searching for a String in a File
  12408.  
  12409.  To search for a string in a file, use the find
  12410.  utility. If find locates the string it is searching for, it displays the
  12411.  name of the file followed by the line that contains the string. To use the
  12412.  find utility, you type find followed by any options, the string you are
  12413.  searching for (in quotation marks), and the name of the file to search. You
  12414.  cannot use wildcard characters (* or ?) in a filename specification, and
  12415.  because the find utility is case-sensitive, you must type the string with
  12416.  the exact uppercase and lowercase characters that you want to search for. If
  12417.  you do not specify a filename for the search, standard input is used─this
  12418.  means that, unless input has been redirected from a file or from the output
  12419.  of another program, the find utility reads input from the keyboard. (You
  12420.  terminate keyboard input by pressing CTRL+Z or F6 and then pressing ENTER.)
  12421.  
  12422.  For example, to search for the last name "Smith" in the PHONE.LST file, type
  12423.  the following:
  12424.  
  12425.  find "  phone.lst
  12426.  
  12427.  
  12428.  If you are searching for a string that contains quotation marks (for
  12429.  example, "Hi there!" or I said "Hi there!" to Ralph), you must substitute
  12430.  two sets of quotation marks for the single set of quotation marks, as in the
  12431.  following examples:
  12432.  
  12433.  find "    there!"   test.doc
  12434.  
  12435.  
  12436.  Or
  12437.  
  12438.  find "  said "   there!"  to Ralph" test.doc
  12439.  
  12440.  
  12441.  Although you cannot use wildcard characters to specify filenames to be
  12442.  searched, you can pipe another command to the find utility. For example, if
  12443.  you want to search the files PHONE.MKT, PHONE.ENG, and PHONE.SUP for the
  12444.  name "Smith", pipe the output of the type command to the find utility as
  12445.  follows:
  12446.  
  12447.  type phone.* | find "
  12448.  
  12449.  
  12450.  This way, the find utility searches through three files instead of one. You
  12451.  can also specify more than one file to search by listing each file
  12452.  separately after the search string.
  12453.  
  12454.  Displaying Lines That Do Not Contain a String
  12455.  
  12456.  If you want to search a file and display those lines that do not contain the
  12457.  specified string, use the /v option. For example, suppose that you are
  12458.  searching for client names that are listed in the file CLIENTS.LST. To
  12459.  locate the client names that do not have the string "Past Due" after their
  12460.  names, type the following:
  12461.  
  12462.  find /v "Past Due" clients.lst
  12463.  
  12464.  
  12465.  
  12466.  
  12467.  Displaying the Count of Lines That Contain a String
  12468.  
  12469.  To display the count of lines that contain the specified string, use the /c
  12470.  option. For example, you could find the count of lines that contain the
  12471.  string "Past Due" by typing the following:
  12472.  
  12473.  find /c "Past Due" clients.lst
  12474.  
  12475.  
  12476.  If you specify /c with /v, the find utility displays the count of lines that
  12477.  do not contain the string you typed.
  12478.  
  12479.  Displaying the Line Number
  12480.  
  12481.  To display the line number of any lines that contain a specified string, use
  12482.  the /n option. The /n option causes each line to be preceded by its line
  12483.  number in the file.
  12484.  
  12485.  If you specify /c with /n, the find utility ignores /n.
  12486.  
  12487.  
  12488.  Comparing Two Files
  12489.  
  12490.  To compare one file or set of files with a second file or set of files, use
  12491.  the comp utility. The files can be on different drives or in different
  12492.  directories. To use the comp utility, you type comp followed by the drive,
  12493.  directory path, and filename of both files. If you do not specify a
  12494.  directory path or filename, comp assumes that the files are in the current
  12495.  directory on the current drive.
  12496.  
  12497.  You can use the comp utility in several ways.
  12498.  
  12499.  To compare the contents of drive A with drive C, type the following:
  12500.  
  12501.  comp a: c:
  12502.  
  12503.  
  12504.  To compare the contents of the PROFITS directory on drive A and the PROF
  12505.  directory on drive C, type the following:
  12506.  
  12507.  comp a:\eprofits c:\eprof
  12508.  
  12509.  
  12510.  To compare the contents of two files, \1988\SAMPLE.C and \1989\SAMPLE.C, in
  12511.  different directories, type the following:
  12512.  
  12513.  comp c:\1988\sample.c c:\1989\sample.c
  12514.  
  12515.  
  12516.  To compare the files in the root directory on drive C that have the
  12517.  extension .ASM with the files in the root directory on drive B that have the
  12518.  extension .BAK, type the following:
  12519.  
  12520.  comp c:\*.asm b:\*.bak
  12521.  
  12522.  
  12523.  If the files being compared are of different sizes, comp displays a message
  12524.  telling you of their size differences and then asks you if you want to
  12525.  continue. If you type Y for yes, comp displays the location and contents of
  12526.  any mismatched bytes. After 10 mismatches occur, the comparison stops and
  12527.  you are asked whether you want to compare two more files. An error message
  12528.  appears if comp does not find an endof-file (CTRL+Z) marker in a file.
  12529.  
  12530.  
  12531.  Printing Data Files
  12532.  
  12533.  To print any MS OS/2 data file, you can use the print utility. To use the
  12534.  print utility, you type print followed by a filename. By default setting,
  12535.  print sends the file to the printer that is attached to your computer's LPT1
  12536.  port. If you want to send the file to a printer that is attached to another
  12537.  port, use the option /d:device. For example, to print the file
  12538.  REPORTparallel printer that is attached to LPT2, type the following:
  12539.  
  12540.  print /d:lpt2 report
  12541.  
  12542.  
  12543.  Remember that LPT2 and the printer that is attached to it must be set up
  12544.  correctly before you can print to it.
  12545.  
  12546.  The print utility can be used by itself or in conjunction with the print
  12547.  spooler, Print Manager. For instructions on how to set up and use the Print
  12548.  Manager, see Chapter 4, "Printing Files."
  12549.  
  12550.  
  12551.  Selecting the Keyboard Layout
  12552.  
  12553.  To select an alternative keyboard layout, use the keyb utility. The keyboard
  12554.  layout defines where the characters in a specified code page will be found
  12555.  on your keyboard.
  12556.  
  12557.  If you have selected and prepared a code page for a country other than the
  12558.  United States, your keyboard layout will be set up for that country. To
  12559.  change to a keyboard layout for a different country, you must use the keyb
  12560.  utility. To use the keyb utility, you type keyb followed by a two-letter
  12561.  country code. For example, to select the keyboard layout for Germany, type
  12562.  the following:
  12563.  
  12564.  keyb gr
  12565.  
  12566.  
  12567.  Make sure that the keyboard country code you select is supported by the code
  12568.  page that is installed. The following list shows the keyboard layouts that
  12569.  are available and the two-letter codes that identify them:
  12570.  
  12571.  Code                              Keyboard    Subcode
  12572.  ────────────────────────────────────────────────────────────────────────────
  12573.  
  12574.  BE                                Belgium     120
  12575.  
  12576.  CF                                Canada      058
  12577.                                    (French)
  12578.  
  12579.  DK                                Denmark     159
  12580.  
  12581.  FR                                France      189, 120
  12582.  
  12583.  GR                                Germany     129
  12584.  
  12585.  IT                                Italy       141, 142
  12586.  
  12587.  LA                                Latin       171
  12588.                                    America
  12589.  
  12590.  NL                                Netherland  143
  12591.                                    s
  12592.  
  12593.  NO                                Norway      155
  12594.  
  12595.  PO                                Portugal    163
  12596.  
  12597.  SF                                Switzerlan  150F
  12598.                                    d (French)
  12599.  
  12600.  SG                                Switzerlan  150G
  12601.                                    d (German)
  12602.  
  12603.  SP                                Spain       172
  12604.  
  12605.  SU                                Finland     153
  12606.  
  12607.  SV                                Sweden      153
  12608.  
  12609.  UK                                United      166, 168
  12610.                                    Kingdom
  12611.  
  12612.  US                                United      103
  12613.                                    States
  12614.  
  12615.  The subcode specifies a keyboard layout for countries that have more than
  12616.  one keyboard layout. Subcodes are associated with enhanced keyboards only.
  12617.  Because France, Italy, and the United Kingdom have more than one enhanced
  12618.  keyboard, the subcode allows you to select the keyboard you want.
  12619.  
  12620.  
  12621.  Turning ANSI Support On or Off
  12622.  
  12623.  The ansi utility turns the ANSI extended screen and keyboard support on or
  12624.  off. If ANSI support is turned on, a program that you are using (or
  12625.  creating) can use the ANSI escape sequences. An ANSI escape sequence is a
  12626.  series of characters (beginning with an escape character or keystroke) that
  12627.  you can use to define MS OS/2 functions. For more information about ANSI
  12628.  escape sequences, see Chapter 17, "Using MS OS/2 Device Drivers," and
  12629.  Appendix A, "ANSI Escape Sequences." By default setting, ANSI support is on.
  12630.  To turn ANSI support off, type the following:
  12631.  
  12632.  ansi off
  12633.  
  12634.  
  12635.  To turn ANSI support back on, type the following:
  12636.  
  12637.  ansi on
  12638.  
  12639.  
  12640.  To turn ANSI support on in the DOS session, install the device driver
  12641.  ANSI.SYS by including the following line in your CONFIG.SYS file:
  12642.  
  12643.  device=c:\os2\ansi.sys
  12644.  
  12645.  
  12646.  For more information about ANSI.SYS, see Chapter 17, "Using MS OS/2 Device
  12647.  Drivers."
  12648.  
  12649.  
  12650.  
  12651.  
  12652.  
  12653.  
  12654.  Chapter 10  Using the DOS Session
  12655.  ────────────────────────────────────────────────────────────────────────────
  12656.  
  12657.  
  12658.  
  12659.  
  12660.  
  12661.  
  12662.  In addition to the full-screen session and the Presentation Manager session,
  12663.  MS OS/2 provides another working environment, called the DOS session.
  12664.  
  12665.  If you are familiar with DOS and DOS applications, you will find that the
  12666.  DOS session operates much the way the DOS operating system does. As the name
  12667.  implies, the DOS session is like having the DOS operating system installed
  12668.  and running on your computer. You can use files, disk drives, printers, and
  12669.  serial devices just as if you were running DOS, as well as run DOS
  12670.  applications, such as Microsoft Works or Microsoft Windows. In addition,
  12671.  many of the MS OS/2 commands and utilities described in Chapter 8, "Running
  12672.  Cmd," and Chapter 9, "Using MS OS/2 Utilities," can be run in the DOS
  12673.  session.
  12674.  
  12675.  Since DOS uses the FAT file system exclusively, programs written for DOS may
  12676.  encounter problems when they attempt to access files and directories that
  12677.  use HPFS naming rules. DOS programs generally will not recognize these names
  12678.  and will be unable to access the files. For details on how HPFS files and
  12679.  directories work with DOS, see Chapter 16, "Using the High-Performance File
  12680.  System."
  12681.  
  12682.  When you are running programs in the DOS session, a command interpreter
  12683.  called command provides the interface to MS OS/2. Command reads information
  12684.  that you type at the command prompt and translates it into something your
  12685.  computer can use.
  12686.  
  12687.  This chapter describes the DOS session and command. Specifically, it
  12688.  describes how the DOS session starts up and is initialized, as well as how
  12689.  to do the following:
  12690.  
  12691.    ■   Switch to the DOS session
  12692.  
  12693.    ■   Start DOS programs
  12694.  
  12695.    ■   Run commands from command
  12696.  
  12697.    ■   Run utilities from command
  12698.  
  12699.  
  12700.  You will also find lists of the MS OS/2 commands and utilities that can and
  12701.  cannot be run in the DOS session.
  12702.  
  12703.  
  12704.  How the DOS Session Starts
  12705.  
  12706.  Whenever you start MS OS/2, it reads the CONFIG.SYS file. This file contains
  12707.  statements that set up the DOS, full-screen, and Presentation Manager
  12708.  sessions. To start the DOS session, MS OS/2 runs the DOS command-interpreter
  12709.  program that is specified by the shell configuration command. By the default
  12710.  setting, the command interpreter is command. Other configuration commands in
  12711.  CONFIG.SYS customize the DOS environment; these are listed in the following
  12712.  section. After the DOS session starts, you will see it represented by the
  12713.  DOS icon in the Presentation Manager session.
  12714.  
  12715.  
  12716.  Configuring the DOS Environment
  12717.  
  12718.  During installation, a default DOS environment is set up for you. You can
  12719.  modify this environment by editing your CONFIG.SYS file. The following
  12720.  configuration commands affect the DOS environment:
  12721.  
  12722.  Command                           Purpose
  12723.  ────────────────────────────────────────────────────────────────────────────
  12724.  
  12725.  shell                             Specifies the DOS command interpreter.
  12726.  
  12727.  rmsize                            Sets up the amount of memory reserved
  12728.                                    for DOS programs.
  12729.  
  12730.  break                             Sets up CTRL+C checking.
  12731.  
  12732.  fcbs                              Specifies the number of open
  12733.                                    file-control blocks.
  12734.  
  12735.  device                            Sets up devices used in the DOS session.
  12736.  
  12737.  protectonly                       Enables or disables the DOS session.
  12738.  
  12739.  For more information about using these configuration commands, see Chapter
  12740.  15, "Using MS OS/2 Configuration Commands." Also see "Using a Mouse in the
  12741.  DOS Session," later in this chapter, for information about setting up a
  12742.  mouse for the DOS session.
  12743.  
  12744.  
  12745.  Running AUTOEXEC.BAT
  12746.  
  12747.  
  12748.  The first time you switch
  12749.  o the DOS session, command, the DOS command interpreter, automatically
  12750.  searches for a batch file called AUTOEXEC.BAT in the root directory of the
  12751.  drive from which you started MS OS/2. (Note that batch files run in the DOS
  12752.  session must have the filename extension .BAT, not the .CMD extension that
  12753.  batch files run under the MS OS/2 command interpreter, cmd, must have.) If
  12754.  it does not find the AUTOEXEC.BAT batch file, MS OS/2 runs the date and time
  12755.  commands. If AUTOEXEC.BAT is found, it starts to run.
  12756.  By placing batch commands in your AUTOEXEC.BAT file, you can run commands
  12757.  and utilities, and you can customize the DOS session. Like other batch files
  12758.  in the DOS session, AUTOEXEC.BAT can contain the following:
  12759.  
  12760.    ■   Command commands
  12761.  
  12762.    ■   MS OS/2 utilities
  12763.  
  12764.    ■   Batch commands
  12765.  
  12766.  
  12767.  .ET Typically, the AUTOEXEC.BAT file sets up environment variables and other
  12768.  features. For example, you can specify a search path for the DOS command
  12769.  interpreter, command, by using set path= in your AUTOEXEC.BAT file. You can
  12770.  also add commands to AUTOEXEC.BAT in order to perform specialized functions.
  12771.  
  12772.  
  12773.  In the following example, the AUTOEXEC.BAT batch file makes your command
  12774.  prompt the name of the current directory followed by the greater-than sign
  12775.  (>). It then sets your path, instructing command to search the current
  12776.  directory first, the BIN directory on drive C second, and the OS2 directory
  12777.  on drive C third. Finally, the AUTOEXEC.BAT file switches you to the OS2
  12778.  directory on your C drive.
  12779.  
  12780.  @echo off
  12781.  prompt = $p$g
  12782.  set path=c:\bin;c:\os2
  12783.  c:
  12784.  cd \os2
  12785.  
  12786.  
  12787.  The @echo off command at the beginning of the file prevents the commands
  12788.  from being displayed on the screen as they run.
  12789.  
  12790.  
  12791.  Switching to the DOS Session
  12792.  
  12793.  Whenever you start MS OS/2, the DOS session is automatically started for
  12794.  you. To work in the DOS session, you must switch to it. The following are
  12795.  two ways to switch to the DOS session from Presentation Manager:
  12796.  
  12797.        Mouse 
  12798.  
  12799.    ■   If you are using a mouse, double-click the DOS icon.
  12800.  
  12801.  
  12802.  Or
  12803.  
  12804.        Keyboard 
  12805.  
  12806.    ■   If you are using the keyboard, use the Task List.
  12807.  
  12808.  
  12809.  .RT For information on using the Task List and switching between sessions,
  12810.  see Chapter 2, "Running Applications with MS OS/2."
  12811.  
  12812.  After you switch to the DOS session, the screen clears and the DOS command
  12813.  interpreter, command, displays a prompt. From this prompt, you can start
  12814.  programs, commands, or utilities.
  12815.  
  12816.  
  12817.  Switching from the DOS Session
  12818.  
  12819.  Once the DOS session is started, you cannot quit it. The command program
  12820.  started by the system will continue to run, even if you type exit. To run a
  12821.  program in a full-screen or Presentation Manager session, you must switch
  12822.  out of the DOS session. To switch out of the DOS session, you can do one of
  12823.  the following:
  12824.  
  12825.    ■   Press ALT+ESC to switch to another session.
  12826.  
  12827.  
  12828.  Or
  12829.  
  12830.    ■   Press CTRL+ESC to use the Task List.
  12831.  
  12832.  
  12833.  When you switch out of the DOS session, any DOS programs that are running
  12834.  will stop until you switch back to the DOS session. However, full-screen or
  12835.  Presentation Manager programs that are running will continue to run when you
  12836.  are in the DOS session.
  12837.  
  12838.  
  12839.  Starting a DOS Program
  12840.  
  12841.  To start a program from the DOS command interpreter, command, you type the
  12842.  name of the program at the prompt and press ENTER.
  12843.  
  12844.  Remember that not all programs can run in the DOS session. For example,
  12845.  Presentation Manager applications and many full-screen OS/2 programs cannot
  12846.  run in the DOS session. If you try to run a Presentation Manager application
  12847.  in the DOS session, you will receive the following message:
  12848.  
  12849.  This program requires OS/2 Presentation Manager.
  12850.  
  12851.  
  12852.  Or, if you try to run an application that is meant to run from the MS OS/2
  12853.  command interpreter, cmd, you will receive this message:
  12854.  
  12855.  This program cannot be run in DOS mode.
  12856.  
  12857.  
  12858.  In either case, switch to the appropriate session before running your
  12859.  program.
  12860.  
  12861.  You can also add a DOS application to a group window in Desktop Manager and
  12862.  start the application from there. For information about adding an
  12863.  application to Desktop Manager, see Chapter 2, "Running Applications with MS
  12864.  OS/2."
  12865.  
  12866.  Also, while the DOS session operates much like the DOS operating system,
  12867.  compatibility problems can exist with some DOS applications that are run in
  12868.  the DOS session. Read your application's manual for information about which
  12869.  MS OS/2 environment is required to run the program.
  12870.  
  12871.  
  12872.  Managing Memory in the DOS Session
  12873.  
  12874.  Certain DOS-application manuals may recommend
  12875.  that you install a disk cache or virtual disk to improve performance. If you
  12876.  plan to run these applications in the DOS session under MS OS/2, keep the
  12877.  following points in mind:
  12878.  
  12879.    ■   The disk-cache program, SMARTDrive, is not supported in MS OS/2. To
  12880.        set up disk caching, use the diskcache configuration command in your
  12881.        CONFIG.SYS file.
  12882.  
  12883.    ■   The virtual-disk program, RAM disk, is not supported in MS OS/2. To
  12884.        set up a virtual disk, use the device configuration command in your
  12885.        CONFIG.SYS file to load the VDISK.SYS device driver.
  12886.  
  12887.  
  12888.  For information on setting up the MS OS/2 disk cache, see Chapter 15, "Using
  12889.  MS OS/2 Configuration Commands." For information on installing the VDISK.SYS
  12890.  device driver, see Chapter 17, "Using MS OS/2 Device Drivers."
  12891.  
  12892.  Also read your application's manual for additional information concerning
  12893.  memory management with MS OS/2.
  12894.  
  12895.  
  12896.  Setting Hardware Features in the DOS Session
  12897.  
  12898.  The DOS session runs
  12899.  independently of the full-screen and Presentation Manager sessions. Features
  12900.  such as hardware settings made with the mode utility are in effect only
  12901.  while you are running the DOS session. If you switch to a full-screen
  12902.  session or to Presentation Manager, the DOS settings will not be in effect.
  12903.  
  12904.  
  12905.  Using a Mouse in the DOS Session
  12906.  
  12907.  If you want to use a mouse in the DOS session, make sure that you have
  12908.  specified the proper mouse driver in your CONFIG.SYS file. In addition, some
  12909.  applications require you to specify an additional device driver called
  12910.  EGA.SYS. For instructions on how to specify these device drivers in the
  12911.  CONFIG.SYS file, see Chapter 17, "Using MS OS/2 Device Drivers."
  12912.  
  12913.  
  12914.  Running DOS TSR Programs
  12915.  
  12916.  Terminate-and-stay-resident (TSR) programs that are designed to run in DOS
  12917.  (for example, thOS/2. Once started, these programs remain active while you ar
  12918.  session, but they become inactive when you switch to a full-screen session
  12919.  or to Presentation Manager. These programs can occupy a large amount of
  12920.  memory, and compatibility problems can exist if they are run in the DOS
  12921.  session. Be sure to read your program's manual for instructions and
  12922.  restrictions concerning MS OS/2.
  12923.  
  12924.  
  12925.  
  12926.  Using a DOS Command
  12927.  
  12928.  The DOS command interpreter, command, like the cmd program, has a set of
  12929.  built-in commands. These commands let you work with files, directories, and
  12930.  devices. The following is a list of the commands you can use in the DOS
  12931.  session:
  12932.  
  12933.  break   chcp  chdir  cls
  12934.  copy    date  dir    exit
  12935.  set     time  type   ver
  12936.  verify  vol   del    (erase)
  12937.  mkdir   (md)  path   prompt
  12938.  rename  ren)  rmdir  (rd)
  12939.  
  12940.  Most of these commands are identical to those found in cmd and are described
  12941.  in Chapter 8, "Running Cmd." Certain commands, however, may display slightly
  12942.  different on-screen messages when they run in the DOS session. And, when you
  12943.  run them from command, the following commands do not accept multiple drives
  12944.  or filenames:
  12945.  
  12946.  del   (erase)
  12947.  dir
  12948.  mkdir (md)
  12949.  rmdir (rd)
  12950.  type
  12951.  vol
  12952.  
  12953.  
  12954.  The break command is the only command found in the DOS command interpreter,
  12955.  command, that is not found in the MS OS/2 command interpreter, cmd. For a
  12956.  description of the break command, see the following section, "Setting CTRL+C
  12957.  Checking."
  12958.  
  12959.  
  12960.  Setting CTRL+C Checking
  12961.  
  12962.  The break command lets you set CTRL+C checking. Normally, MS OS/2 checks to
  12963.  see whether you have pressed CTRL+C only while it is reading from your
  12964.  keyboard or while it is sending something to your screen or printer. You can
  12965.  use the break command to turn CTRL+C checking on or off. If the break
  12966.  command is turned on, CTRL+C checking is turned on while the system performs
  12967.  additional functions, such as disk reading and writing. (By default setting,
  12968.  CTRL+C checking is turned off.) To find out what the current setting is for
  12969.  the break command, type the following:
  12970.  
  12971.     break
  12972.  
  12973.  To turn CTRL+C checking on, type the following:
  12974.  
  12975.     break on
  12976.  
  12977.  To turn CTRL+C checking off, type the following:
  12978.  
  12979.     break off
  12980.  
  12981.  Some programs may internally set CTRL+C checking. The break command does not
  12982.  affect these programs.
  12983.  
  12984.  You can also set CTRL+C checking by placing a break configuration command in
  12985.  your CONFIG.SYS file. For more information about setting CTRL+C checking,
  12986.  see Chapter 15, "Using MS OS/2 Configuration Commands."
  12987.  
  12988.  
  12989.  Running a Utility in the DOS Session
  12990.  
  12991.  Most of the utilities that you can run in the MS OS/2 command interpreter,
  12992.  cmd, you can also run in the command program. The following utilities run
  12993.  in both cmd and command:
  12994.  
  12995.  attrib  chkdsk  comp      diskcomp
  12996.  help    label   replace   sort
  12997.  tree    unpack  diskcopy  find
  12998.  format  mode    more      xcopy
  12999.  patch   print   recover
  13000.  
  13001.  These utilities are described in Chapter 9, "Using MS OS/2 Utilities," and
  13002.  Chapter 12, "Maintaining Your System." Certain on-screen messages may differ
  13003.  slightly if a utility is run in the DOS session; this does not affect the
  13004.  utility's usage or function. The patch, replace, and unpack utilities are
  13005.  described in the Microsoft Operating System/2 Command Reference.
  13006.  
  13007.  ────────────────────────────────────────────────────────────────────────────
  13008.  Note
  13009.  
  13010.  You can run the print and mode utilities in the DOS session and in a
  13011.  full-screen session. However, the way you run the commands differs between
  13012.  the two sessions. For more information, see the Microsoft Operating System/2
  13013.  Command Reference.
  13014.  ────────────────────────────────────────────────────────────────────────────
  13015.  
  13016.  
  13017.  The following utilities can be run only in the DOS session and are described
  13018.  in the following sections:
  13019.  
  13020.  append
  13021.  assign
  13022.  graftabl
  13023.  join
  13024.  setcom40
  13025.  subst
  13026.  
  13027.  
  13028.  
  13029.  
  13030.  
  13031.  Reassigning Paths and Drives
  13032.  
  13033.  To change how MS OS/2 accesses data and drives, you can use the append,
  13034.  assign, join, and subst utilities. For example, certain applications may
  13035.  require that you set the data path, much the same as you set the PATH
  13036.  environment variable. Or, you might want to change drive or directory-path
  13037.  assignments to make working with a particular drive or directory path
  13038.  easier.
  13039.  
  13040.  Setting a Data Search Path
  13041.  
  13042.  To set a data search path in the DOS session, use the append utility. Unless
  13043.  you specify a particular directory path on a command line, MS OS/2 searches
  13044.  only your current directory for data files. With the append utility, you can
  13045.  specify the additional directories to be searched for data files. MS OS/2
  13046.  will first search the current directory for a data file, then search the
  13047.  directories that you have specified with the append utility. This can be
  13048.  useful if you have data files located in different directories or located
  13049.  across a network. Using the append utility to set a data search path and
  13050.  store it in the environment requires two steps. First, type the following:
  13051.  
  13052.  append /e
  13053.  
  13054.  
  13055.  The /e option can be used only the first time you use the append utility.
  13056.  This option stores append as an environment variable. If you do not want to
  13057.  store append in the environment, omit this step.
  13058.  
  13059.  Second, type append followed by the directory paths that you want to add to
  13060.  the data search path. For example, to use the TEST directory on drive A and
  13061.  the SAMPLE directory on drive C as the data path, type the following:
  13062.  
  13063.  append a:\test;c:\sample
  13064.  
  13065.  
  13066.  You use a semicolon (;) to separate individual directories. The append
  13067.  command must not contain more than 128 characters.
  13068.  
  13069.  To display the data search path, you type append by itself. In the preceding
  13070.  example, if you type append, the following will appear on your screen:
  13071.  
  13072.  APPEND=A:\eTEST;C:\SAMPLE
  13073.  
  13074.  
  13075.  When you want to restore the data path to the default setting (which
  13076.  searches only the current directory for data files), type the following:
  13077.  
  13078.  append;
  13079.  
  13080.  
  13081.  To see how append might be used, suppose that you have customerinformation
  13082.  files stored in the directories CUST1 and CUST2 on drive C, and in the
  13083.  directory CUST3 on a floppy disk in drive A. You could set up your data
  13084.  search path by typing the following:
  13085.  
  13086.  append /e
  13087.  append c:\cust1;c:\cust2;a:\cust3
  13088.  
  13089.  
  13090.  Now, if you want to display the contents of the SMITH.ACC file, which is in
  13091.  one of these three directories, type the following:
  13092.  
  13093.  more < smith.acc
  13094.  
  13095.  
  13096.  MS OS/2 searches the current directory for the file SMITH.ACC. If it doesn't
  13097.  find the file, MS OS/2 searches the CUST1, CUST2, and CUST3 directories in
  13098.  the order they are listed. If MS OS/2 finds the file in any of those
  13099.  directories, it displays the contents of the file one screenful at a time.
  13100.  
  13101.  Assigning a Drive Letter to Another Drive
  13102.  
  13103.  To assign a drive letter
  13104.  to another drive, you can use the assign utility. Some applications require
  13105.  that you put your disks in a floppy-disk drive. If you prefer to use a hard
  13106.  disk for your data files, you can use the assign utility to assign the
  13107.  floppy-disk drive letter to the hard-disk drive. So instead of reading from
  13108.  and writing to the floppy-disk drive, such as drive A, you can assign drive
  13109.  A to drive C. Then, when you request drive A, you will actually get drive C.
  13110.  To use the assign utility, you type assign followed by the drive letter you
  13111.  want to reassign and the letter of the drive you want to assign the first
  13112.  drive to. Separate the two drive letters with an equal sign (=). For
  13113.  example, to assign drive A to drive C, type the following:
  13114.  
  13115.  assign a=c
  13116.  
  13117.  
  13118.  Now, if you type dir a:, you will actually see a directory list for the
  13119.  current directory on drive C. To reset all drives to their original
  13120.  assignments, type the following:
  13121.  
  13122.  assign
  13123.  
  13124.  
  13125.  
  13126.  ────────────────────────────────────────────────────────────────────────────
  13127.  Note
  13128.  
  13129.  If you plan to use both the assign utility and the append utility, you must
  13130.  first set the data path by using the append utility. You could do this, for
  13131.  example, by including an append statement in your AUTOEXEC.BAT file.
  13132.  ────────────────────────────────────────────────────────────────────────────
  13133.  
  13134.  
  13135.  Since the assign utility disguises the true device type, you should not use
  13136.  assign with commands and utilities that require drive information, such as
  13137.  label, join, subst, and print.
  13138.  
  13139.  The format, diskcopy, and diskcomp utilities ignore drive reassignments.
  13140.  
  13141.  Joining a Drive to a Directory Path
  13142.  
  13143.  To give a drive the name of a directory on
  13144.  your current drive, use the join utility. Once you have done this, you no
  13145.  longer access files and directories on the "joined" physical drive with a
  13146.  separate drive letter. You use only the directory name to access that drive
  13147.  now joined to the directory.
  13148.  
  13149.  To use this utility, you type join followed by a drive letter and the path
  13150.  of the directory that will be associated with that drive. The drive letter
  13151.  you specify must already exist. You cannot join a drive if it is being used
  13152.  by another program. For example, if you want to refer to drive D as the DATA
  13153.  directory on drive C, type the following:
  13154.  
  13155.  join d: c:\data
  13156.  
  13157.  
  13158.  If the directory does not exist, MS OS/2 creates it. The directory you
  13159.  specify must be empty, and it must be a subdirectory, not the root
  13160.  directory.
  13161.  
  13162.  Now, if you type dir c:\data, you will see the contents of the root
  13163.  directory on drive D. You can also type join without arguments to see the
  13164.  drives and directories that are currently joined. To disable the connection
  13165.  between drive D and the DATA directory, use the /d option, as follows:
  13166.  
  13167.  join d: /d
  13168.  
  13169.  
  13170.  The following utilities do not work on drives used in the join utility:
  13171.  
  13172.  chkdsk
  13173.  diskcomp
  13174.  diskcopy
  13175.  format
  13176.  label
  13177.  recover
  13178.  
  13179.  
  13180.  Keep in mind that once you have used the join command to join a drive, MS
  13181.  OS/2 will display an error message if you try to use that drive letter. You
  13182.  must restore the drive by using the /d option before you can refer to the
  13183.  drive again.
  13184.  
  13185.  Substituting a Drive Letter for a Path
  13186.  
  13187.  You can
  13188.  substitute a drive letter for a directory path with the subst utility. After
  13189.  you have substituted a drive letter for a directory path, you can refer to
  13190.  the substituted drive just like a physical drive. When you request the
  13191.  substituted drive, MS OS/2 will replace it with the directory path you have
  13192.  assigned to it. To see what substituted drives are currently in effect, you
  13193.  type subst without options. To set up a new substituted drive, you type
  13194.  subst followed by the drive letter and then the directory path that the
  13195.  drive letter will substitute.
  13196.  
  13197.  For example, to substitute drive Z for the directory path \ACCOUNTS\PAYABLE
  13198.  on drive C, type the following:
  13199.  
  13200.  subst z: c:\accounts\epayable
  13201.  
  13202.  
  13203.  Now, if you type dir z:, you will see the contents of the PAYABLE
  13204.  subdirectory of the ACCOUNTS directory on drive C. To delete a drive
  13205.  substitution, use the /d option, as follows:
  13206.  
  13207.  subst z: /d
  13208.  
  13209.  
  13210.  The following commands do not work on drives created by the subst utility:
  13211.  
  13212.  chkdsk
  13213.  diskcompdiskcopy
  13214.  format
  13215.  label
  13216.  recover
  13217.  
  13218.  
  13219.  
  13220.  
  13221.  
  13222.  Displaying Disk Status from the DOS Session
  13223.  
  13224.  The chkdsk utility displays status information about a disk and scans it for
  13225.  errors. You can run chkdsk from either cmd or command. While the command
  13226.  form you use to start the utility is the same for both, you receive
  13227.  additional information about the DOS session if you run chkdsk from command.
  13228.  
  13229.  
  13230.  In addition to disk-status information, you receive DOS storage information,
  13231.  as in the following example:
  13232.  
  13233.  [DOS mode storage report]
  13234.     655328 bytes total storage
  13235.     535024 bytes free
  13236.  
  13237.  
  13238.  The "bytes free" line tells you the amount of available memory in the DOS
  13239.  session to run other applications. The "bytes total storage" line tells you
  13240.  how much memory is reserved for the DOS session. With the default setting,
  13241.  640 kilobytes are reserved. You can change the amount that is reserved by
  13242.  using the rmsize configuration command. For more information about setting
  13243.  the amount of memory for DOS applications, see Chapter 15, "Using MS OS/2
  13244.  Configuration Commands."
  13245.  
  13246.  
  13247.  Enabling an Extended Character Set
  13248.  
  13249.  To load an extended character set in the DOS session, when your computer's
  13250.  graphics adapter is operating in graphics mode, use the graftabl utility. To
  13251.  load an extended character set, you type graftabl followed by a three-digit
  13252.  number that identifies a code page. You can specify any one of the following
  13253.  code pages:
  13254.  
  13255.  Code page                         Extended character set
  13256.  ────────────────────────────────────────────────────────────────────────────
  13257.  
  13258.  437                               United States (default setting)
  13259.  
  13260.  850                               Multilingual
  13261.  
  13262.  860                               Portuguese
  13263.  
  13264.  863                               Canadian French
  13265.  
  13266.  For example, to load the Canadian French extended character set, type the
  13267.  following:
  13268.  
  13269.  graftabl 863
  13270.  
  13271.  
  13272.  To display the current extended character set, along with a list of graftabl
  13273.  options, type the following:
  13274.  
  13275.  graftabl ?
  13276.  
  13277.  
  13278.  To display the current extended character set, type the following:
  13279.  
  13280.  graftabl /status
  13281.  
  13282.  
  13283.  To display the current extended character set and load the default extended
  13284.  character set (code page 437), type the following:
  13285.  
  13286.  graftabl
  13287.  
  13288.  
  13289.  For more information about setting up code pages, see Chapter 15, "Using MS
  13290.  OS/2 Configuration Commands."
  13291.  
  13292.  
  13293.  Setting COM-Port Availability
  13294.  
  13295.  To make a serial port available to a DOS program, use the
  13296.  setcom40 utility.
  13297.  
  13298.  Some DOS applications use a particular area in memory to determine the
  13299.  presence of the serial ports COM1 and COM2. The COM01.SYS or COM02.SYS
  13300.  device driver places zeros in these locations to prevent DOS-session
  13301.  programs from using these ports.
  13302.  
  13303.  You should use the setcom40 utility if you have used the device
  13304.  configuration command to install COM01.SYS or COM02.SYS (or an equivalent
  13305.  device driver). The setcom40 utility sets the appropriate address for the
  13306.  serial port before starting a program in the DOS session that uses the port.
  13307.  To use this utility, you type setcom40 followed by the name of the serial
  13308.  port you want to use, then specify whether you want to turn serial-port
  13309.  availability on or off. For example, suppose you have a serial printer
  13310.  attached to COM1 and have installed COM01.SYS. If you want to use a
  13311.  DOS-session program to print a file using that printer, type the following:
  13312.  
  13313.  setcom40 com1=on
  13314.  
  13315.  
  13316.  Suppose you also want to add an extra terminal to COM2. To do this, type the
  13317.  following:
  13318.  
  13319.  setcom40 com2=on
  13320.  
  13321.  
  13322.  Now, both COM1 and COM2 can be used by DOS programs.
  13323.  
  13324.  When you no longer need to use the printer, type the following:
  13325.  
  13326.  setcom40 com1=off
  13327.  
  13328.  
  13329.  When using serial ports in the DOS session, keep the following points in
  13330.  mind:
  13331.  
  13332.    ■   The setcom40 utility does not affect settings made with the mode
  13333.        utility.
  13334.  
  13335.    ■   Programs that are running in the DOS session should not use serial
  13336.        ports that are being used in a full-screen or Presentation Manager
  13337.        session, or serial ports that are being used by Print Manager.
  13338.  
  13339.    ■   If a program is using serial ports in the DOS session, it is important
  13340.        to end the program before switching out of the DOS session.
  13341.  
  13342.    ■   Two types of DOS-session programs may have problems using serial
  13343.        ports─those that use intermittent hardware interrupts and those that
  13344.        are time-dependent. In addition, some BASIC programs will interfere
  13345.        with the port even when they are not sending input to it or receiving
  13346.        output from it.
  13347.  
  13348.  
  13349.  For more information about COM0x.SYS device drivers, see Chapter 17, "Using
  13350.  MS OS/2 Device Drivers."
  13351.  
  13352.  
  13353.  
  13354.  
  13355.  
  13356.  
  13357.  Chapter 11  Using MS OS/2 Batch Programs
  13358.  ────────────────────────────────────────────────────────────────────────────
  13359.  
  13360.  
  13361.  
  13362.  
  13363.  Introduction
  13364.  
  13365.  Once you know how to run MS OS/2 commands, you can create your own programs
  13366.  to carry out complex or specialized tasks. With MS OS/2, you can combine
  13367.  commands and programs into a single program called a batch program or batch
  13368.  file.
  13369.  
  13370.  With batch programs, you can do the following:
  13371.  
  13372.    ■   Run several commands from one batch program
  13373.  
  13374.    ■   Carry out the same batch program with different data
  13375.  
  13376.  
  13377.  You can use batch programs to simplify a series of repetitive tasks, thus
  13378.  reducing the amount of typing you need to do. Or you can create custom
  13379.  commands designed for your particular work needs. You might, for example,
  13380.  need to copy different directories on a regular basis from your hard disk to
  13381.  a backup floppy disk. Instead of copying each directory separately by typing
  13382.  five copy commands at the prompt, you could type the name of the batch
  13383.  program once and let it do the five copying operations for you.
  13384.  
  13385.  A batch program consists of one or more lines of instructions that the
  13386.  command interpreter (cmd or command) reads and processes one at a time. As
  13387.  each line is processed, it is displayed (echoed) on your screen. (Later in
  13388.  this chapter you will learn how to prevent each line from being echoed.)
  13389.  
  13390.  The first sections of this chapter demonstrate how to build a simple batch
  13391.  program to perform a series of tasks. In later sections, you will learn how
  13392.  to improve and enhance this program with advanced batch-programming
  13393.  techniques.
  13394.  
  13395.  ────────────────────────────────────────────────────────────────────────────
  13396.  Note
  13397.  
  13398.  All examples of file and directory names in this chapter are for the file
  13399.  allocation table (FAT) file system, which is the one used by DOS and MS OS/2
  13400.  versions 1.1 and earlier. If your batch files contain file or directory
  13401.  names that use high-performance file system (HPFS) naming features, you must
  13402.  enclose those names in quotation marks. For more information on using (HPFS)
  13403.  file and directory names, see Chapter 16, "Using the High-Performance File
  13404.  System."
  13405.  ────────────────────────────────────────────────────────────────────────────
  13406.  
  13407.  
  13408.  
  13409.  
  13410.  Running a Batch Program
  13411.  
  13412.  To run your program, you type the name of your batch file, without the
  13413.  extension, then press ENTER. For example, if your batch file is named
  13414.  SPECIAL.CMD, type special in an OS/2 session to run the batch program. If
  13415.  the batch file is named SPECIAL.BAT, type special in the DOS session. If you
  13416.  want to stop your program before it finishes running, press CTRL+C.
  13417.  
  13418.  
  13419.  Using Batch Commands
  13420.  
  13421.  There are two types of batch programs: those that are run from an OS/2
  13422.  session and those that are run from the DOS session. Batch programs that are
  13423.  run from an OS/2 session have a .CMD filename extension. These programs can
  13424.  contain MS OS/2 batch commands, cmd commands, MS OS/2 utilities, and
  13425.  programs that can be run from the MS OS/2 command interpreter, cmd. Batch
  13426.  programs that are run from the DOS session have a .BAT filename extension.
  13427.  These programs can contain MS OS/2 batch commands, command commands, MS OS/2
  13428.  utilities, and programs that can be run from the DOS command interpreter,
  13429.  command.
  13430.  
  13431.  Batch commands give you control over how your commands are carried out. They
  13432.  also let you send or display messages, set variables, and use replaceable
  13433.  parameters (described later in this chapter).
  13434.  
  13435.  The MS OS/2 batch commands are as follows:
  13436.  
  13437.  Command                           Purpose
  13438.  ────────────────────────────────────────────────────────────────────────────
  13439.  
  13440.  call                              Calls one batch program from another
  13441.                                    batch program.
  13442.  
  13443.  echo                              Turns the echo feature on or off.
  13444.  
  13445.  endlocal                          Restores the drive, directory, and
  13446.                                    environment settings that were in effect
  13447.                                    before the setlocal command was used.
  13448.  
  13449.  extproc                           Defines an external batch processor for
  13450.                                    a batch program.
  13451.  
  13452.  for                               Performs a command for a set of items.
  13453.  
  13454.  goto                              Causes processing to continue at the
  13455.                                    line after a specified label.
  13456.  
  13457.  
  13458.  
  13459.  Command                           Purpose
  13460.  ────────────────────────────────────────────────────────────────────────────
  13461.  
  13462.  if                                Performs a command based on the result
  13463.                                    of a condition.
  13464.  
  13465.  pause                             Suspends processing of the batch program
  13466.                                    temporarily.
  13467.  
  13468.  rem                               Adds remarks to a batch program.
  13469.  
  13470.  setlocal                          Defines drive, directory, and
  13471.                                    environment variables that are used
  13472.                                    during batch-program processing.
  13473.  
  13474.  shift                             Changes the position of the replaceable
  13475.                                    parameters in batch-program processing.
  13476.  
  13477.  The endlocal, extproc, and setlocal commands can be used only in an OS/2
  13478.  session; the rest of the batch commands can be used in OS/2 sessions and in
  13479.  the DOS session. The echo and for commands can be typed at the command
  13480.  prompt as well as be placed in batch programs; all other batch commands can
  13481.  be used only in batch programs.
  13482.  
  13483.  
  13484.  Creating Simple Batch Programs
  13485.  
  13486.  You create a batch program by typing commands in a file by using System
  13487.  Editor or any other text editor. Batch programs that you run from cmd, the
  13488.  MS OS/2 command interpreter, must have the filename extension .CMD. Batch
  13489.  programs in the DOS session must have the .BAT filename extension. Most of
  13490.  the filename examples used in this chapter have the .CMD extension. However,
  13491.  if you rename the files so that they have the .BAT extension, the sample
  13492.  batch programs will run in the DOS session. You run a batch program by
  13493.  typing the name of the batch file. (You do not need to type the extension.)
  13494.  
  13495.  The examples in this discussion have been simplified as much as possible to
  13496.  illustrate batch-programming commands and techniques. When you write a
  13497.  working batch program, however, you will probably want to embellish it with
  13498.  commands that provide error checking and commands that provide helpful
  13499.  information for the user.
  13500.  
  13501.  The simplest batch programs usually run utilities and display messages on
  13502.  the screen. They perform the same function that you would perform if you
  13503.  typed a series of commands at the command prompt.
  13504.  
  13505.  For example, the following is a simple batch program called Myprompt, stored
  13506.  in the batch file MYPROMPT.CMD:
  13507.  
  13508.  @echo off
  13509.  rem This is a simple batch program
  13510.  prompt The current time is $t$h$h$h$h$h$h$_$p
  13511.  
  13512.  
  13513.  This program changes your prompt so that it displays the time, the current
  13514.  drive, and the directory. (The $h characters remove the seconds and
  13515.  hundredths of seconds from the time display.) To run this program, type the
  13516.  following:
  13517.  
  13518.  myprompt
  13519.  
  13520.  
  13521.  The first line, "@echo off", is found in most batch programs. It prevents
  13522.  each batch command from being echoed on your screen as it is being processed
  13523.  by the command interpreter.
  13524.  
  13525.  The second line, "rem This is a simple batch program", is a comment
  13526.  statement used to add notes to batch files. The command interpreter does not
  13527.  process rem statements when echoing is turned off, so you are free to add
  13528.  whatever comments you want to your batch programs.
  13529.  
  13530.  The next line, "prompt", is the MS OS/2 command you use to change the
  13531.  command prompt in the current session. By placing this command in a batch
  13532.  file, you only have to remember or look up the options once.
  13533.  
  13534.  It is a good idea to remove blank lines from batch files, since each blank
  13535.  line will cause the command prompt to be displayed when the program is run.
  13536.  
  13537.  
  13538.  Setting Up Your Environment with a Batch Program
  13539.  
  13540.  One common way to use batch programs is to
  13541.  set up your environment. For example, you can set environment variables such
  13542.  as PATH and PROMPT in an initialization file.
  13543.  
  13544.  Suppose you want to create a system initialization file called OS2INIT.CMD.
  13545.  You want to set the OS/2 session environment variable TMP in this file, as
  13546.  well as switch to your HOME directory and start the SP spreadsheet program
  13547.  in the current session. OS2INIT.CMD would look like this:
  13548.  
  13549.  @echo off
  13550.  set TMP=c:\tmp
  13551.  cd \home
  13552.  start /f sp
  13553.  
  13554.  
  13555.  You could type these commands at the command prompt each time you start MS
  13556.  OS/2, but putting them in a batch file will save you time and effort.
  13557.  
  13558.  
  13559.  Displaying a Message with a Batch Program
  13560.  
  13561.  The following example creates a batch program that displays the message,
  13562.  "Use echo to display a message." Use System Editor or another text editor to
  13563.  create a file named SPECIAL.CMD, and then type the following:
  13564.  
  13565.  @echo off
  13566.  rem This program displays a message
  13567.  echo Use echo to display a message.
  13568.  
  13569.  
  13570.  You can use the rem batch command to add comments to your program. Any text
  13571.  after rem that is on the same line is treated as a comment. If the echo
  13572.  feature is on, rem commands are displayed as your program runs; if echoing
  13573.  is turned off (as in this example), no text is displayed.
  13574.  
  13575.  The @echo off command turns off the echo feature (the default setting has
  13576.  this feature turned on). This prevents the commands from being displayed on
  13577.  the screen as they are processed. The at sign (@) prevents the string "echo
  13578.  off" from being displayed as it turns the feature off. The @echo off command
  13579.  is often used at the beginning of batch programs to prevent unnecessary
  13580.  output from cluttering up your screen.
  13581.  
  13582.  ────────────────────────────────────────────────────────────────────────────
  13583.  Note
  13584.  
  13585.  When you are running a batch program in an OS/2 session, you can also turn
  13586.  echoing off by typing the /q option as an argument to the command that
  13587.  starts your batch program. For this reason, do not use /q as an argument to
  13588.  any command in your batch file.
  13589.  ────────────────────────────────────────────────────────────────────────────
  13590.  
  13591.  
  13592.  When echoing is off, you can use the echo command to display the text that
  13593.  follows it on the same line. You might want to display messages in your
  13594.  batch program to inform yourself or other users of what is taking place as
  13595.  the program runs or to inform them of error conditions that have occurred.
  13596.  
  13597.  
  13598.  Creating a Custom Command
  13599.  
  13600.  After using MS OS/2 for a while, you might find that there are commands and
  13601.  utilities that you use on a daily basis. You can create custom versions of
  13602.  these commands that incorporate the options that you always use. As an
  13603.  example, suppose that you work in a complex multilevel directory structure
  13604.  that contains many subdirectories. Also suppose that you must return to your
  13605.  root directory several times a day. To help you do this, you can create a
  13606.  customized version of the cd command. Your version will display the message,
  13607.  "Returning to the root directory", switch you to the root directory on drive
  13608.  C, and display the directory list for the root directory one screenful at a
  13609.  time. To set up this special version of the cd command, type the following
  13610.  lines in a file called HOME.CMD in your root directory:
  13611.  
  13612.  @echo off
  13613.  echo Returning to the root directory
  13614.  c:
  13615.  cd \
  13616.  dir /p
  13617.  
  13618.  
  13619.  Now, no matter what drive or directory you are in, you only need to type
  13620.  home and MS OS/2 will return you to the root directory on drive C. .ET
  13621.  
  13622.  
  13623.  Performing a Series of Tasks with a Batch Program
  13624.  
  13625.  A common use of batch programs is to perform copying operations to update
  13626.  files or to create backup disks. Suppose that you have specific files in
  13627.  particular directories on a floppy disk that are updated on a weekly basis,
  13628.  and that they then need to be copied to particular directories on your hard
  13629.  disk. Suppose further that the specific files you are interested in are all
  13630.  of the files that contain the extensions .EXE and .LIB and all of the files
  13631.  in your INCLUDE directory, plus the file README.DOC from the root directory.
  13632.  This copying operation involves the following steps:
  13633.  
  13634.    1.  Copy all the .EXE files that are in the NEW directory on your floppy
  13635.        disk to the BIN directory on your hard disk.
  13636.  
  13637.    2.  Copy all the
  13638.  
  13639.    3.  B files in the NEW directory on your floppy disk to the LIB
  13640.        subdirectory of the BIN directory on your hard disk.
  13641.  
  13642.    4.  Copy all the files in the INCLUDE directory on your floppy disk to the
  13643.        INC directory on your hard disk.
  13644.  
  13645.    5.  Copy the README.DOC file from the root directory on your floppy disk
  13646.        to the root directory on your hard disk.
  13647.  
  13648.  
  13649.  You can create a batch program that performs each of these steps by typing
  13650.  the following in a file named TRANSFER.CMD:
  13651.  
  13652.  @echo off
  13653.  rem This batch program copies files from drive A to drive C
  13654.  echo Copying files ...
  13655.  copy a:\new\*.exe c:\bin
  13656.  copy a:\new\*.lib c:\bin\lib
  13657.  copy a:\include\*.* c:\inc
  13658.  copy a:\readme.doc c:\readme.doc
  13659.  
  13660.  
  13661.  .RT The copy commands in the batch file perform the same operations as they
  13662.  would if they were typed on the command line. In this example, the exact
  13663.  files and directories to copy have been specified in the batch file. In
  13664.  later sections, you will see how you can let a user type in arguments to a
  13665.  batch program.
  13666.  
  13667.  To run this program, type transfer and press ENTER. The .CMD extension is
  13668.  optional. You will see the copy command display the files being copied as
  13669.  the copying operation progresses.
  13670.  
  13671.  Copying files ...
  13672.  A:\NEW\MOVE.EXE
  13673.  A:\NEW\TEST.EXE
  13674.         2 file(s) copied.
  13675.  A:\NEW\SLIBCE.LIB
  13676.  A:\NEW\MLIBCE.LIB
  13677.  A:\NEW\LLIBCE.LIB
  13678.         3 file(s) copied.
  13679.  A:\INCLUDE\OS2.H
  13680.  A:\INCLUDE\TYPES.H
  13681.  A:\INCLUDE\STDIO.H
  13682.  A:\INCLUDE\OS2DEF.H
  13683.         4 file(s) copied.
  13684.  A:\README.DOC
  13685.         1 file(s) copied.
  13686.  
  13687.  
  13688.  .ET
  13689.  
  13690.  
  13691.  Using Advanced Batch-File Techniques
  13692.  
  13693.  In addition to the basic tasks you can perform by using a batch program,
  13694.  there are more advanced techniques that will make your programs more
  13695.  flexible and powerful. For example, you can program your batch file so that
  13696.  it accepts parameters on the command line. You can also set conditions
  13697.  within batch files so that tasks are performed when those conditions are
  13698.  met. This section describes these advanced batch-file techniques.
  13699.  
  13700.  
  13701.  Using Replaceable Parameters
  13702.  
  13703.  The Transfer program used in the preceding section illustrates how one
  13704.  program can perform several copying operations. These operations are fixed,
  13705.  since there is no way to specify which files are copied. But you can also
  13706.  write a batch program that allows you to specify which files to copy.
  13707.  
  13708.  Batch programs can contain a special symbol called a replaceable parameter.
  13709.  This symbol is a percent sign (%) followed by a digit from 0 through 9. The
  13710.  replaceable parameters in a batch program .RT are assigned values when you
  13711.  type the command and options. For example, suppose you type the transfer
  13712.  command followed by three arguments, as follows:
  13713.  
  13714.  transfer \ebin \elib \einc
  13715.  
  13716.  
  13717.  If you use the %0, %1, %2, and %3 parameters in your batch file, %0 will be
  13718.  replaced by "transfer", %1 by "\ebin", %2 by "\elib", and %3 by "\einc".
  13719.  
  13720.  The Transfer program created earlier can be changed so that you can specify
  13721.  on the command line whether you want the files from the BIN, INC, or LIB
  13722.  directories to be copied from a floppy disk in drive A to your hard disk. To
  13723.  accomplish this, you will need three features: the if batch command, the
  13724.  goto batch command, and the pause batch command.
  13725.  
  13726.  
  13727.  Using the If Batch Command
  13728.  
  13729.  The if batch command causes a command to be carried out if a certain
  13730.  condition is true. The if command can have one of the following forms:
  13731.  
  13732.  Form                              Description
  13733.  ────────────────────────────────────────────────────────────────────────────
  13734.  
  13735.  if string1==string2 command       Compares the character string string1
  13736.                                    with string2. If they are the same,
  13737.                                    command is processed.
  13738.  
  13739.  if exist filename command         Checks whether the named file exists. If
  13740.                                    the file does exist, command is
  13741.                                    processed.
  13742.  
  13743.  if errorlevel number command      Checks the exit code of the command or
  13744.                                    program that was run just before the if
  13745.                                    statement. If the command or program
  13746.                                    returns an exit code that is equal to or
  13747.                                    greater than the number specified,
  13748.                                    command is processed. (For information
  13749.                                    about exit codes, see "Checking the
  13750.                                    Error Level," later in this chapter.)
  13751.  
  13752.  The if not batch command causes a command to be carried out if a certain
  13753.  condition is not true. For example, if not exist filename command processes
  13754.  command if the filename does not exist.
  13755.  
  13756.  
  13757.  Using the Goto Batch Command
  13758.  
  13759.  The goto batch command directs your program to switch to a different part of
  13760.  the file and continue processing the commands at that point. The goto
  13761.  command has the following form:
  13762.  
  13763.  goto label
  13764.  
  13765.  
  13766.  The way you tell the program what part of the file to switch to is by using
  13767.  a label. The label is any string of characters (which may or may not form a
  13768.  word) that you put in the file, on a line by itself, at the point where you
  13769.  want your program to continue processing commands. For example, goto end
  13770.  will cause processing to continue at the command found after the label
  13771.  ":end". You identify a label in the batch file by typing a colon (:) in
  13772.  front of it.
  13773.  
  13774.  
  13775.  Using the Pause Batch Command
  13776.  
  13777.  The pause batch command temporarily stops your program from running and
  13778.  displays the message, "Press any key when ready . . . ."
  13779.  
  13780.  You can continue running the program by pressing a key, or you can quit the
  13781.  program by pressing CTRL+C.
  13782.  
  13783.  
  13784.  Modifying the Transfer Batch Program
  13785.  
  13786.  The following example shows the usage of the batch commands just described.
  13787.  As you see here, you can modify the Transfer program so that the first
  13788.  argument typed on the command line is used in the batch file:
  13789.  
  13790.  @echo off
  13791.  rem This batch program lets you decide which directory to copy
  13792.  echo Copying files from %1
  13793.  pause
  13794.  if "%1"=="" goto end
  13795.  if %1==\ebin goto copybin
  13796.  if %1==\einc goto copyinc
  13797.  if %1==\elib goto copylib
  13798.  echo %1: Unknown option
  13799.  goto end
  13800.  :copybin
  13801.  copy a:\bin\*.* c:\bin
  13802.  goto end
  13803.  :copyinc
  13804.  copy a:\inc\*.* c:\inc
  13805.  goto end
  13806.  :copylib
  13807.  copy a:\lib\*.* c:\lib
  13808.  :end
  13809.  
  13810.  
  13811.  The %1 parameter is used in the echo command to display whatever argument
  13812.  you type. The pause command lets you determine whether to continue copying
  13813.  or quit the program by pressing CTRL+C.
  13814.  
  13815.  The program uses the first if command, if "%1"=="" goto end, to check
  13816.  whether you have typed an argument. If no argument is found, the command
  13817.  causes the program to jump to the label ":end". When you are specifying no
  13818.  argument in an if command, you must use quotation marks; if you are
  13819.  specifying an argument, the quotation marks are optional.
  13820.  
  13821.  The next three if commands cause the first argument that you type to be
  13822.  substituted for %1 and compared to the strings "\ebin", "\einc", and
  13823.  "\elib". If a match occurs, the program jumps to the ":copybin", ":copyinc",
  13824.  or ":copylib" label, respectively. After the program has copied the files,
  13825.  the goto command causes the program to jump to the ":end" label. Notice that
  13826.  if you type in an argument other than "\ebin", "\einc", or "\elib" (that is,
  13827.  if none of the if conditions were true), the message "Unknown option" is
  13828.  displayed and the program jumps to the ":end" label.
  13829.  
  13830.  
  13831.  Specifying Multiple Arguments
  13832.  
  13833.  To make your program more powerful, you will probably want to be able to
  13834.  specify more than one argument after the batch program. For example, the
  13835.  Transfer program that you created previously processes only the first
  13836.  argument typed. It ignores any additional arguments.
  13837.  
  13838.  To specify two directories, you could modify the Transfer program to include
  13839.  the following lines:
  13840.  
  13841.  if %1==\ebin goto copybin
  13842.  if %1==\elib goto copylib
  13843.  if %2==\ebin goto copybin
  13844.  if %2==\elib goto copylib
  13845.  
  13846.  
  13847.  Both %1 and %2 would be compared to the strings "\ebin" and "\elib" and sent
  13848.  to the appropriate copy command. But suppose that you want the option of
  13849.  typing up to 10 arguments after the transfer command, with the arguments
  13850.  specified in any order. You would need many if commands to test for every
  13851.  possible combination of arguments. One way to do this is to use the shift
  13852.  batch command. This command lets your program process any number of
  13853.  arguments that are typed in any order. Each time shift is carried out, the
  13854.  program processes the next argument in the file. To see how this works,
  13855.  create a file named DISPLAY.CMD with the following lines:
  13856.  
  13857.  @echo off
  13858.  rem This displays a list of arguments
  13859.  :displayarg
  13860.  if "%1"=="" goto end
  13861.  echo %%1 is now %1
  13862.  shift
  13863.  goto displayarg
  13864.  :end
  13865.  
  13866.  
  13867.  Then type display followed by a list of numbers for each argument. As it
  13868.  runs, the program will display each number on a line of its own. The
  13869.  statement if "%1"=="" checks to see whether all of the arguments have been
  13870.  read. In this example, two percent signs (%%) are used to display the actual
  13871.  percent character ("%1") instead of the %1 argument.
  13872.  
  13873.  Now you can modify the Transfer program to accept any number of arguments,
  13874.  as follows:
  13875.  
  13876.  @echo off
  13877.  rem Copying multiple directories
  13878.  pause
  13879.  :chkargs
  13880.  echo Copying files from %1
  13881.  if "%1"=="" goto end
  13882.  if %1==\ebin goto copybin
  13883.  if %1==\einc goto copyinc
  13884.  if %1==\elib goto copylib
  13885.  echo %1: Unknown option
  13886.  goto end
  13887.  :copybin
  13888.  copy a:*.exe c:\bin
  13889.  shift
  13890.  goto chkargs
  13891.  :copyinc
  13892.  copy a:*.inc c:\inc
  13893.  shift
  13894.  goto chkargs
  13895.  :copylib
  13896.  copy a:lib c:\lib
  13897.  shift
  13898.  goto chkargs
  13899.  :end
  13900.  
  13901.  
  13902.  The program compares each argument that the user types to the strings
  13903.  "\ebin", "\elib", and "\einc", as it did before. But the goto statements now
  13904.  direct the program to return to the ":chkargs" label after each argument is
  13905.  processed. Thus, you can type any number of valid arguments in any order,
  13906.  and the effect is the same.
  13907.  
  13908.  
  13909.  Repeating a Task
  13910.  
  13911.  Sometimes, you may want to perform a task on
  13912.  a set of different elements. For example, you may want to type out the
  13913.  contents of three files, or you may want to copy several directories from a
  13914.  floppy disk to a directory on your hard disk. The for statement lets you
  13915.  specify the set of elements that a command will work with. To see its use,
  13916.  type the following lines in a file called COUNT.CMD:
  13917.  
  13918.  @echo off
  13919.  for %%x in (One Two Three) do echo %%x
  13920.  
  13921.  
  13922.  If you now type count, the following appears:
  13923.  
  13924.  One
  13925.  Two
  13926.  Three
  13927.  
  13928.  
  13929.  The for command causes the batch processor to substitute each element in the
  13930.  parentheses, one at a time, for "%%x". (You can use any single character in
  13931.  place of x.) Then the program processes whatever command appears after the
  13932.  do command.
  13933.  
  13934.  In the preceding example, each element in the set (One Two Three) is
  13935.  substituted for "%%x", then "%%x" is echoed to the screen. So the first time
  13936.  through the program, "One" is displayed; the second time, "Two" is
  13937.  displayed; and the third time, "Three" is displayed. Thus, the command takes
  13938.  the place of typing the echo command three times. In a batch file, you must
  13939.  use two percent signs (%%) in front of the x to distinguish a for variable
  13940.  from a replaceable parameter.
  13941.  
  13942.  The following batch file, called BINCOPY.CMD, allows you to copy the
  13943.  contents of up to three directories that are in the current directory to
  13944.  your BIN directory on drive C:
  13945.  
  13946.  @echo off
  13947.  rem Updating %1 %2 %3
  13948.  for %%x in (%1 %2 %3) do if not exist %%x goto end
  13949.  for %%x in (%1 %2 %3) do copy %%x c:\bin
  13950.  :end
  13951.  
  13952.  
  13953.  The first for command checks to see whether all of the directories exist. It
  13954.  does this by first substituting the arguments that you type for %1, %2, and
  13955.  %3, and then it uses the if not exist command after the do command to check
  13956.  to see that all of the directories do exist. If a directory does not exist,
  13957.  the program ends. The second for command does the actual copying by
  13958.  substituting each argument, one at a time, for the "%%x" in the copy
  13959.  command.
  13960.  
  13961.  
  13962.  Calling Another Batch Program
  13963.  
  13964.  You can run, or call, one batch program from another batch program by using
  13965.  the call command. When the batch processor encounters this command, it
  13966.  passes control to the "called" program. When the program is finished
  13967.  running, control returns to the original program.
  13968.  
  13969.  ────────────────────────────────────────────────────────────────────────────
  13970.  Note
  13971.  
  13972.  If you start a second batch program from a batch program without using call,
  13973.  the second program will run. However, control will not return automatically
  13974.  to the original batch program after the second program finishes running. You
  13975.  must use the call command if you want control to be passed back to the
  13976.  original program.
  13977.  ────────────────────────────────────────────────────────────────────────────
  13978.  
  13979.  
  13980.  
  13981.  For example, a main batch program could call other batch programs to perform
  13982.  the actual operations. The following short batch program calls the batch
  13983.  file COPY1.CMD if /c is typed as an argument, or it calls the batch file
  13984.  DEL1.CMD if /d is typed as an argument:
  13985.  @echo off
  13986.  rem This batch file calls other batch files
  13987.  if %1==/c call copy1
  13988.  if %1==/d call del1
  13989.  
  13990.  
  13991.  The batch files COPY1.CMD and DEL1.CMD perform the actual copying or
  13992.  deleting, then they return control to the original batch file.
  13993.  
  13994.  You cannot use pipes or redirection symbols with the call command. A batch
  13995.  file can call itself, but it should contain a command that ends it so that
  13996.  you do not remain in an infinite loop.
  13997.  
  13998.  
  13999.  Setting Variables in Your Batch Program
  14000.  
  14001.  You have the option of using variables in your batch programs. These
  14002.  variables are saved in your environment just like the PATH environment
  14003.  variable. To set a variable in your batch program, use the set command. For
  14004.  example, to set the variable STDERR to NUL, include the following line in
  14005.  your batch program:
  14006.  
  14007.  set stderr=^>nul
  14008.  
  14009.  
  14010.  Notice that in a batch file you must use the escape character (^) before the
  14011.  redirection symbol (>). The escape character (which is described later in
  14012.  this chapter) tells the batch processor to treat the greater-than symbol as
  14013.  a character, rather than processing it as a redirection symbol. Thus, the
  14014.  string "2>nul" is simply assigned to STDERR without being processed.
  14015.  
  14016.  If you type set after running the program, you will see that STDERR has been
  14017.  saved in your environment. To prevent it from being saved, you can type the
  14018.  following to delete the setting:
  14019.  
  14020.  set stderr=
  14021.  
  14022.  
  14023.  There are several ways to use variables in batch files. Suppose you need to
  14024.  create a master phone list every week from various phone-list files in
  14025.  different directories. You want to be able to just type the names of the
  14026.  files that contain the phone lists and have them collected in a file called
  14027.  PHONE.LST for later viewing. You decide that you need a batch file that will
  14028.  delete the old phone list, then create a new phone list that contains any
  14029.  phone files you specify on the command line. The batch file will then
  14030.  discard any error messages and display the new phone list on the screen.
  14031.  
  14032.  @echo off
  14033.  rem This batch file creates a new phone list
  14034.  del phone.lst
  14035.  :newphone
  14036.  if "%1"=="" goto displayit
  14037.  set stdout=^>^>phone.lst & set stderr=2^>nul
  14038.  type %1 %stdout%
  14039.  shift
  14040.  goto newphone
  14041.  rem Now display the phone list
  14042.  :displayit
  14043.  type phone.lst %stderr%
  14044.  
  14045.  
  14046.  When you run this batch file, STDOUT is replaced by the string ">phone.lst",
  14047.  which appends output to the file PHONE.LST. So when the type %1 %stdout%
  14048.  command is run, %1 is replaced by the first argument typed, and the contents
  14049.  of the file specified are appended to the PHONE.LST file.
  14050.  
  14051.  When the phone list is displayed, STDERR is replaced by the string "2>nul",
  14052.  which redirects error messages encountered while sending the output of the
  14053.  file to NUL. Notice that the ampersand (&) (which is described later in this
  14054.  chapter) separates the two operations.
  14055.  
  14056.  As before, STDOUT and STDERR are saved as variables in your environment
  14057.  after the program ends. You could assign STDOUT or STDERR to null values
  14058.  after you run the batch program, or you could set variables that are local
  14059.  to your batch program by using the setlocal and endlocal batch commands.
  14060.  Just place setlocal at the beginning of the program and place endlocal at
  14061.  the end of the program. This tells the batch processor that any variables
  14062.  you set are active only while the batch program is running. After you run
  14063.  your program, these variables are not saved in your environment.
  14064.  
  14065.  To see how these commands work, look at the batch file LOCAL.CMD:
  14066.  
  14067.  @echo off
  14068.  setlocal
  14069.  rem This program keeps the variables STDERR and MYVAR from
  14070.  rem being saved in your environment.
  14071.  if "%1"=="" echo Valid arguments /s /m & goto end
  14072.  if %1==/s set stderr=errfile
  14073.  if %1==/m set myvar="Hi there!"
  14074.  set
  14075.  :end
  14076.  endlocal
  14077.  
  14078.  
  14079.  This program assigns the variable STDERR to the file ERRFILE (if the user
  14080.  types /s), and assigns the variable MYVAR to the string "Hi there!" (if the
  14081.  user types /m). It then carries out the set command, which displays your
  14082.  environment settings. You will see that either STDERR or MYVAR appears in
  14083.  the list of environment variables. However, if you type set after running
  14084.  the batch program Local, STDERR or MYVAR will not appear as environment
  14085.  variables (unless you have set one of them previously).
  14086.  
  14087.  
  14088.  Checking the Error Level
  14089.  
  14090.  Some MS OS/2 commands and utilities return an exit code when they are
  14091.  completed; that is, they send a number back to the system to tell it whether
  14092.  the program ran successfully or not. If the command or utility ran
  14093.  successfully, it returns an exit code of zero; if it did not run
  14094.  successfully, it returns an exit code greater than zero. You can check this
  14095.  value and specify what command will then run by placing the command if
  14096.  errorlevel (or if not errorlevel) immediately following the line that runs
  14097.  the original command or utility. The if errorlevel command checks to see
  14098.  whether the exit code is equal to or greater than the number you specify.
  14099.  
  14100.  For example, you could run the format utility in a batch file, check to see
  14101.  that the formatting operation was successful (returned an exit code of
  14102.  zero), and display a message on the screen by running the following program:
  14103.  
  14104.  
  14105.  @echo off
  14106.  format a:
  14107.  if errorlevel 1 echo A formatting error occurred. & goto end
  14108.  echo Format successful
  14109.  :end
  14110.  
  14111.  
  14112.  If the utility returns an exit code of greater than zero, an error message
  14113.  is displayed and processing jumps to the label ":end". Otherwise, the
  14114.  message "Format successful" is displayed.
  14115.  
  14116.  
  14117.  Using Special Characters in a Batch Program
  14118.  
  14119.  
  14120.  In Chapter 8, "Running Cmd," you learned how redirection and
  14121.  ipe symbols (<,>, >, and | ) could be used to specify more than one command
  14122.  on a line. The following symbols also have special meaning to MS OS/2:
  14123.  Symbol                            Meaning
  14124.  ────────────────────────────────────────────────────────────────────────────
  14125.  
  14126.  ^                                 Removes a special character's meaning.
  14127.  
  14128.  ( )                               Groups commands.
  14129.  
  14130.  &                                 Separates multiple commands.
  14131.  
  14132.  &&                                Performs one operation, then another.
  14133.  
  14134.  ||                                Performs one operation or another.
  14135.  
  14136.  While these special characters can all be used on the command line, they are
  14137.  most useful in batch programs. In the following sections, each of these
  14138.  special characters is described.
  14139.  
  14140.  Removing a Special Character's Function
  14141.  
  14142.  To remove the meaning of special characters, use the escape character (^)
  14143.  before the character. This lets you use special characters as regular
  14144.  characters in a string.
  14145.  
  14146.  For example, to redirect the line "hello" into a file named GREET, type the
  14147.  following:
  14148.  
  14149.  echo hello > greet
  14150.  
  14151.  
  14152.  If you use the escape character before the redirection symbol, the
  14153.  redirection symbol loses its meaning. To have the batch processor treat the
  14154.  redirection symbol as an ordinary character, type the following:
  14155.  
  14156.  echo hello ^> greet
  14157.  
  14158.  
  14159.  Now the entire line is echoed to your screen:
  14160.  
  14161.  hello > greet
  14162.  
  14163.  
  14164.  This is useful if you want to display a special character but do not want
  14165.  the symbol to perform any function.
  14166.  
  14167.  Grouping Commands
  14168.  
  14169.  To group commands, use parentheses [( )]. For example, to display the sorted
  14170.  output of a directory listing of drive A and the contents of the file
  14171.  DIR.LST on drive C, type the following:
  14172.  
  14173.  (dir a: & type c:dir.lst) | sort
  14174.  
  14175.  
  14176.  
  14177.  
  14178.  Combining Commands
  14179.  
  14180.  To combine several commands, separate each command from the others with the
  14181.  ampersand (&). For example, to display a directory list for drive A, the
  14182.  version of MS OS/2, and the volume label of your current drive, type the
  14183.  following:
  14184.  
  14185.  dir a: & ver & vol
  14186.  
  14187.  
  14188.  MS OS/2 processes the individual commands in order, from left to right.
  14189.  
  14190.  Using the AND Operator
  14191.  
  14192.  
  14193.  The AND operator (&&) processes the command to the left of the symbol. If the
  14194.  command is successful, it processes the command to the right of the symbol.
  14195.  If the first command is unsuccessful (that is, produces an error), the
  14196.  command to the right is not processed.
  14197.  For example, the following command displays the contents of the file BUDGET
  14198.  
  14199.  dir budget
  14200.  
  14201.  
  14202.  
  14203.  
  14204.  Using the OR Operator
  14205.  
  14206.  The OR operator (||) processes either the command to the left of the symbol
  14207.  or the command to the right. If the command to the left is successful, it
  14208.  does not process the command to the right. If the command to the left is
  14209.  unsuccessful (that is, produces an error), the command to the right is
  14210.  processed.
  14211.  
  14212.  For example, the following command either deletes the file called LETTER.TMP
  14213.  or displays a directory list of all files with the filename extension .TMP:
  14214.  
  14215.  del letter.tmp || dir *.tmp
  14216.  
  14217.  
  14218.  If LETTER.TMP exists, it is deleted. If LETTER.TMP does not exist, a
  14219.  directory list of all the files with the .TMP extension is displayed.
  14220.  
  14221.  
  14222.  
  14223.  
  14224.  
  14225.  
  14226.  Part 3: Configuring and Maintaining Your System
  14227.  ────────────────────────────────────────────────────────────────────────────
  14228.  
  14229.  This part of the Microsoft Operating System/2 User's Guide provides
  14230.  information to help you configure and maintain your system.
  14231.  
  14232.  One chapter describes utilities and commands you can use to perform such
  14233.  system-maintenance tasks as making backup copies of your files and
  14234.  configuring and formatting your hard disk. Another explains how to set up
  14235.  your hard disk by using the Presentation Manager Fixed Disk Utility.
  14236.  
  14237.  Two more chapters present an overview of the start-up files you can use in
  14238.  MS OS/2 and how to customize your working environment by using configuration
  14239.  commands in your CONFIG.SYS file.
  14240.  
  14241.  The new high-performance file system (HPFS) is discussed in a chapter that
  14242.  tells you how to install HPFS, how it is different from the file allocation
  14243.  table (FAT) file system, and how some MS OS/2 commands and utilities work
  14244.  differently in HPFS than they do in the FAT file system.
  14245.  
  14246.  The last chapter explains how to use device drivers to support new hardware
  14247.  or enable additional features of MS OS/2.
  14248.  
  14249.  
  14250.  
  14251.  
  14252.  
  14253.  
  14254.  Chapter 12  Maintaining Your System
  14255.  ────────────────────────────────────────────────────────────────────────────
  14256.  
  14257.  
  14258.  
  14259.  
  14260.  Introduction
  14261.  
  14262.  
  14263.  This chapter is designed to help you with the tasks of
  14264.  aintaining your system, including maintaining your files, directories, and
  14265.  disks. It describes the MS OS/2 disk utilities that you use to perform tasks
  14266.  such as displaying information about a disk and backing up and restoring
  14267.  files, and it describes how you can use the mode utility to provide
  14268.  information about devices for MS OS/2.
  14269.  ────────────────────────────────────────────────────────────────────────────
  14270.  Note
  14271.  
  14272.  All examples of filenames and directory names in this chapter use the file
  14273.  allocation table (FAT) file system, which is the file system used by DOS and
  14274.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  14275.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  14276.  High-Performance File System."
  14277.  ────────────────────────────────────────────────────────────────────────────
  14278.  
  14279.  
  14280.  
  14281.  
  14282.  Using MS OS/2 Disk Utilities
  14283.  
  14284.  MS OS/2 provides utilities that help you work with and maintain disks. The
  14285.  following list describes these utilities:
  14286.  
  14287.  Utility                           Purpose
  14288.  ────────────────────────────────────────────────────────────────────────────
  14289.  
  14290.  chkdsk                            Displays status information about a disk.
  14291.  
  14292.  backup                            Makes backup copies of files.
  14293.  
  14294.  restore                           Restores backup files.
  14295.  
  14296.  recover                           Recovers a file or disk that contains
  14297.                                    bad sectors.
  14298.  
  14299.  The backup and restore utilities work only in an OS/2 session. You can run
  14300.  the chkdsk and recover utilities in both DOS and OS/2 sessions.
  14301.  
  14302.  Unlike commands and utilities that operate on files and directories, disk
  14303.  utilities are designed to help you prepare and maintain floppy and hard
  14304.  disks.
  14305.  
  14306.  
  14307.  Displaying Disk Information
  14308.  
  14309.  The chkdsk utility displays status information about a disk and checks the
  14310.  disk for errors. You should run this utility periodically to keep track of
  14311.  how much space is left on a disk and to display any errors found on the
  14312.  disk. If chkdsk finds an error, a message describing the error appears on
  14313.  the screen.
  14314.  
  14315.  You can start the chkdsk utility from the DOS session, an OS/2 session, or
  14316.  the Utilities group in Desktop Manager.
  14317.  
  14318.  ────────────────────────────────────────────────────────────────────────────
  14319.  Note
  14320.  
  14321.  This section describes the chkdsk utility as it works in the MS OS/2 file
  14322.  allocation table (FAT) file system. For a description of the chkdsk utility
  14323.  as it works in the high-performance file system (HPFS), see Chapter 16,
  14324.  "Using the High-Performance File System."
  14325.  ────────────────────────────────────────────────────────────────────────────
  14326.  
  14327.  
  14328.  
  14329.  To run chkdsk, you type chkdsk followed by a drive letter or filename.
  14330.  Chkdsk always checks a drive; you can also check a file by specifying a
  14331.  filename. (You can specify multiple filenames by using wildcard characters.)
  14332.  If you specify a filename, chkdsk checks the drive and also tells you
  14333.  whether the specified file is contiguous. (You can specify a directory path
  14334.  with the filename.) If you do not specify a drive, chkdsk checks the current
  14335.  drive.
  14336.  For example, to check your hard disk and save the output in the file
  14337.  REPORT.DSK on drive A, type the following:
  14338.  
  14339.  chkdsk c: > a:report
  14340.  
  14341.  
  14342.  A typical status report might look like the following:
  14343.  
  14344.  The type of file system for disk is FAT.
  14345.  The volume label is RALPH.
  14346.   The Volume Serial Number is E392-1C15
  14347.  
  14348.   72286208 bytes total disk space.
  14349.     311296 bytes in 7 hidden files.
  14350.     520192 bytes in 125 directories.
  14351.   67895296 bytes in 2443 user files.
  14352.      12288 bytes in bad sectors.
  14353.    3547136 bytes available on disk.
  14354.  
  14355.       4096 bytes in each allocation unit.
  14356.      17648 total allocation units.
  14357.        866 available allocation units on disk.
  14358.  
  14359.  
  14360.  
  14361.  
  14362.  The message about hidden files gives you the number of files that are needed
  14363.  by the system but are not shown when you use the dir command to display a
  14364.  directory list. To discover the names of hidden files, use chkdsk with the
  14365.  /v option (described later in this chapter, in "Displaying Each File on Your
  14366.  Disk"), or use File Manager in the Presentation Manager session.
  14367.  
  14368.  The "bytes in bad sectors" message shows you how many of the sec- tors on
  14369.  your disk are defective. Since the system automatically compensates for bad
  14370.  sectors, there is no reason to worry about them unless the number of bad
  14371.  sectors becomes very large.
  14372.  
  14373.  The "bytes available on disk" message shows you the number of unused bytes
  14374.  on the disk. You should check this value from time to time, especially if
  14375.  disk space is limited.
  14376.  
  14377.  MS OS/2 files are stored in a series of units called sectors, which are
  14378.  grouped into larger units called clusters. The chkdsk utility may report
  14379.  that it has found lost clusters. A lost cluster still exists, but the
  14380.  information in it is no longer associated with a file. This could occur for
  14381.  many reasons─for example, if you turned off your computer while the system
  14382.  was writing to a file. When a cluster is lost, MS OS/2 cannot read, write,
  14383.  or modify the data in it. If part of a file is in a lost cluster, you will
  14384.  not be able to work with the file at all. In addition, lost clusters take up
  14385.  valuable disk space.
  14386.  
  14387.  If you use the /f option, chkdsk fixes any lost clusters by writing them to
  14388.  a file. For instructions on how to use the /f option, see the following
  14389.  section.
  14390.  
  14391.  If you specify files to be checked when you use the chkdsk utility, you will
  14392.  receive a message that tells you whether the files are stored in contiguous
  14393.  sectors. If a file is not stored in contiguous sectors, the num- ber of its
  14394.  blocks that are stored in noncontiguous sectors is displayed. Although
  14395.  storing files in contiguous sectors is not required, it enables your
  14396.  computer to read from or write to files more efficiently. If many of your
  14397.  files are stored in noncontiguous sectors, you can make all files contiguous
  14398.  by backing up the files on your disk, reformatting the disk, and restoring
  14399.  the files to the disk.
  14400.  
  14401.  
  14402.  Fixing Errors on Your Disk
  14403.  
  14404.  
  14405.  To fix errors on your disk, use chkdsk with the /f option. You can use the
  14406.  copy of the chkdsk utility that was put onto your start-up disk when you
  14407.  installed MS OS/2 to fix errors on any disk except your start-up disk. This
  14408.  means that if you normally start MS OS/2 from drive C, you can fix errors
  14409.  only on disks that are in drives other than drive C. To fix errors on drive
  14410.  C, do the following:
  14411.    1.  Insert the MS OS/2 Install disk into drive A and turn on your
  14412.        computer. If your computer is already on, restart it by pressing
  14413.        CTRL+ALT+DEL.
  14414.  
  14415.    2.  At the first screen, press the ESC key. This takes you to the command
  14416.        prompt.
  14417.  
  14418.    3.  Insert the disk that contains the CHKDSK
  14419.  
  14420.    4.  Type chkdsk c: /f and press the ENTER key.
  14421.  
  14422.  
  14423.  The chkdsk utility attempts to recover lost clusters and places their
  14424.  contents into files that have the name FILEnnnn.CHK, where nnnn is a
  14425.  sequential number assigned by MS OS/2. The recovered files may or may not be
  14426.  usable, depending upon their condition.
  14427.  
  14428.  If the files with lost clusters are ASCII files (data files), you may be
  14429.  able to recover the lost data. If you find that there is text missing from
  14430.  an ASCII file, run chkdsk with the /f option, then do the following:
  14431.  
  14432.    1.  Use the type command to look at the contents of each of the .CHK
  14433.        files.
  14434.  
  14435.    2.  If the missing text appears in one of the .CHK files, use a text
  14436.        editor to copy this text back into the original file.
  14437.  
  14438.  
  14439.  In MS OS/2, some applications attach additional information, such as author,
  14440.  application type, and file history, to your files and directories. These
  14441.  pieces of information are called extended attributes and are used by other
  14442.  applications, the file system, or the operating system itself. If chkdsk
  14443.  finds errors in extended attributes, the recovered extended attributes are
  14444.  placed in files named EAnnnn.CHK, where nnnn is a sequential number assigned
  14445.  by MS OS/2.
  14446.  
  14447.  You can look at files that have extended attributes by using the type
  14448.  command, as described previously. If after using the type command you can
  14449.  identify which of your files the extended attributes belong to, you can join
  14450.  the extended attributes to the files by using the eautil utility. For
  14451.  information about using eautil, see the Microsoft Operating System/2 Command
  14452.  Reference.
  14453.  
  14454.  
  14455.  Displaying Each File on Your Disk
  14456.  
  14457.  Use the /v option if you want the name of each file on the disk to be
  14458.  displayed as it is being checked. The /v option causes the chkdsk utility to
  14459.  display all files, including hidden files. (However, the hidden files are
  14460.  not flagged in any way.) Discovering which files are hidden files requires
  14461.  some checking. If you need to know the names of the hidden files, follow
  14462.  these steps:
  14463.  
  14464.    1.  Use the chkdsk utility without the /v option. This tells you the
  14465.        number of hidden files; however, it does not tell you the names of the
  14466.        files.
  14467.  
  14468.    2.  Use the chkdsk utility with the /v option to produce a list of all of
  14469.        the files on a particular drive.
  14470.  
  14471.    3.  Use the dir command to produce a file list that does not show any
  14472.        hidden files.
  14473.  
  14474.    4.  Compare these two lists. Any file that is in the chkdsk /v list but is
  14475.        not in the dir list is a hidden file. You can use the number produced
  14476.        in step one to make sure you have found every hidden file.
  14477.  
  14478.  
  14479.  
  14480.  
  14481.  Since chkdsk /v displays filenames left-aligned, you can easily use the sort
  14482.  utility to sort filenames and directories alphabetically. The sort utility
  14483.  is described in detail in Chapter 9, "Using MS OS/2 Utilities."
  14484.  
  14485.  
  14486.  Making Backup Copies of Your Files
  14487.  
  14488.  The backup utility creates a backup copy of one or more files on a disk and
  14489.  stores the copy on another disk. It provides an easy way to make backup
  14490.  copies of files, directories, or entire disks. Using backup differs from
  14491.  using the copy command or the xcopy utility to copy files; when you use
  14492.  backup to copy files, the contents of the files are stored in a single file,
  14493.  instead of in individual files. In addition, backup has several options that
  14494.  let you make backup copies of specific files.
  14495.  
  14496.  The backup utility is most commonly used to make backup copies of files that
  14497.  are on your hard disk and store them on a series of floppy disks. You can
  14498.  use these floppy disks to recover your files if the hard disk becomes
  14499.  corrupted.
  14500.  
  14501.  You can back up one floppy disk to another floppy disk even if the disks
  14502.  have a different number of sides or sectors. The backup utility does not
  14503.  make copies of files if the files are already open or if they are in use by
  14504.  another program. For example, if you run backup from your start-up disk,
  14505.  files such as the OS2.INI file and the SWAPPER.DAT file are not backed up
  14506.  because they are being used by MS OS/2. To back up these files by using the
  14507.  backup utility, follow these steps:
  14508.  
  14509.    1.  Insert the MS OS/2 Install disk into drive A and turn on your
  14510.        computer. If your computer is already on, restart it by pressing
  14511.        CTRL+ALT+DEL.
  14512.  
  14513.    2.  At the first screen, press ESC. This takes you to the command prompt.
  14514.  
  14515.    3.  Insert the disk that contains the BACKUP
  14516.  
  14517.    4.  Start the backup utility. You can make backup copies of individual
  14518.        files or of the entire start-up disk.
  14519.  
  14520.  
  14521.  To restore these files to the start-up disk, run the restore utility from
  14522.  drive A, in the same way as described in the preceding steps.
  14523.  
  14524.  ────────────────────────────────────────────────────────────────────────────
  14525.  Note
  14526.  
  14527.  The backup utility does not make backup copies of the files OS2LDR, OS2KRNL,
  14528.  CMD.EXE or COMMAND
  14529.  ────────────────────────────────────────────────────────────────────────────
  14530.  
  14531.  
  14532.  
  14533.  Making Backup Files on Another Disk
  14534.  
  14535.  To run the backup utility, type backup followed by the drive that contains
  14536.  the disk you want to back up (the source disk) and the drive that contains
  14537.  the disk that will hold the backup files (the backup disk).
  14538.  
  14539.  To back up the contents of your current directory to a directory in another
  14540.  drive, you specify the drive letters of the source drive and the backup
  14541.  drive. For example, to back up the root directory of your hard disk (drive
  14542.  C) to a floppy disk in drive A, type the following:
  14543.  
  14544.  backup c: a:
  14545.  
  14546.  
  14547.  To make a backup copy of the contents of a specified directory, you type the
  14548.  drive letter and path of the directory you want to copy. For example, to
  14549.  back up the files in the ORDERS subdirectory of the ACCOUNT directory to a
  14550.  floppy disk in drive A, type the following:
  14551.  
  14552.  backup c:\account\orders a:
  14553.  
  14554.  
  14555.  Suppose you have several files on your hard disk that have the filename
  14556.  extension .OLD. To back up these files to a floppy disk in drive B, use a
  14557.  wildcard character, as shown in the following:
  14558.  
  14559.  backup c:\account\orders\*.old b:
  14560.  
  14561.  
  14562.  By default, any files on the backup floppy disk are erased before the backup
  14563.  files are added to it. If all of the files cannot fit on one floppy disk,
  14564.  the backup utility prompts you to insert another backup disk when the
  14565.  current disk is filled.
  14566.  
  14567.  When the backup operation is complete and you look at a directory list for
  14568.  the backup disk, you will not see the names of the files you just copied.
  14569.  Instead, you will see two files named BACKUP.nnn and CONTROL.nnn. These
  14570.  files contain your files and paths; they will be used later to restore these
  14571.  files. On the first backup disk, these two files will be called BACKUP.001
  14572.  and CONTROL.001; on the second disk, they will be called BACKUP.002 and
  14573.  CONTROL.002, and so on.
  14574.  
  14575.  If you copy files to a hard disk, backup automatically creates a directory
  14576.  called BACKUP, which contains the BACKUP and CONTROL files.
  14577.  
  14578.  The backup utility automatically formats an unformatted floppy disk before
  14579.  saving backup copies on it.
  14580.  
  14581.  Making Backup Copies of Subdirectories
  14582.  
  14583.  
  14584.  If you use the backup utility without options, only the files or directory
  14585.  you specify are copied. To copy several directories or an entire disk, you
  14586.  can use the /s option. The /s option enables you to create backup copies of
  14587.  subdirectories. For example, to back up your hard disk (drive C), including
  14588.  all subdirectories, to floppy disks in drive A, type the following:
  14589.  backup c: a: /s
  14590.  
  14591.  
  14592.  The original directory structure is maintained while all files and
  14593.  directories are copied to drive A.
  14594.  
  14595.  Making Backup Copies of Files Modified Since the Last Backup Operation
  14596.  
  14597.  The backup utility can use the archive file flag to determine which files to
  14598.  back up. If you use the /m option, only those files that have been modified
  14599.  since the last backup operation are copied to the backup disk. However, the
  14600.  previous backup files will be deleted from the backup disk (unless you use
  14601.  the /a option, as described later).
  14602.  
  14603.  Whenever you use backup, those files for which the archive flag is set are
  14604.  found and copied. The backup utility then turns off the archive flag for
  14605.  those files. When you make a backup copy of the same set of files and use
  14606.  the /m option, the archive flag is set only for those files that have been
  14607.  created or modified since the last backup operation. Therefore, only they
  14608.  will be backed up. (The /m option may not perform as described here if you
  14609.  use the attrib utility to modify the archive flags of the files.)
  14610.  
  14611.  You can also use the /m option to make copies of directories. When you use
  14612.  this option, the backup utility makes a copy of a directory only if its
  14613.  extended attributes have changed since the last backup operation.
  14614.  
  14615.  Adding Files to the Backup Disk
  14616.  
  14617.  By default, the contents of the backup floppy disk or BACKUP directory are
  14618.  erased before the backup files are added to it. If you want to add files to
  14619.  an existing backup disk or directory without modifying the current contents,
  14620.  use the /a option. Suppose your backup floppy disk contains the contents of
  14621.  the ENG directory and you need to make a backup copy of the MKT directory.
  14622.  You could make a second backup disk, or you could add the contents of MKT to
  14623.  the existing backup disk by using the /a option. To add the second directory
  14624.  to the backup disk, type the following:
  14625.  
  14626.  backup c:\emkt a: /a
  14627.  
  14628.  
  14629.  The BACKUP and CONTROL files now contain backup copies of the contents of
  14630.  both the ENG and MKT directories. Any other files that were on the backup
  14631.  disk remain unchanged.
  14632.  
  14633.  Making Backup Copies of Files Modified After a Certain Date and Time
  14634.  
  14635.  
  14636.  You may be interested in backing up only those files that were modified after
  14637.  a certain date and time. To do this, use the /d:date option and, optionally,
  14638.  the /t:time option. Note that /t cannot be used without /d.
  14639.  Suppose you wanted to back up only those files that were modified after the
  14640.  beginning of 1988. You would run the backup utility and specify the date and
  14641.  time, as follows:
  14642.  
  14643.  backup c: a: /d:12-31-87 /t:23:59
  14644.  
  14645.  
  14646.  Any files that were modified after 11:59 P.M. on December 31, 1987, would be
  14647.  copied.
  14648.  
  14649.  Making a Backup Log
  14650.  
  14651.  The /l[:logfile] option lets you create a log of the files you have copied
  14652.  by using the backup utility. This log contains a list of entries, one entry
  14653.  per file. Each entry contains the number of the backup disk and the name of
  14654.  the file. This information can be used to restore a particular file from a
  14655.  floppy disk.
  14656.  
  14657.  Unless you specify otherwise, the log file is created in the root directory
  14658.  of the source disk or source drive. If you do not specify a log-file name,
  14659.  the log file is named BACKUP.LOG. For example, suppose you want to back up
  14660.  the contents of the MKT directory on drive C to a floppy disk in drive A. To
  14661.  create a backup log on drive C called MKTLOG.001, type the following:
  14662.  
  14663.  backup c: a: /l:mktlog.001
  14664.  
  14665.  
  14666.  
  14667.  
  14668.  Preserving Extended Attributes
  14669.  
  14670.  In MS OS/2, some applications attach additional information, such as author,
  14671.  application type, and file history, to your files and directories. These
  14672.  pieces of information are called extended attributes and are used by other
  14673.  applications, the file system, or the operating system itself. The backup
  14674.  utility automatically preserves the extended attributes of a file or
  14675.  directory.
  14676.  
  14677.  
  14678.  Restoring Backup Files
  14679.  
  14680.  To restore backup files to a disk, use the restore utility. The restore
  14681.  utility can restore files between similar or different disk types. Many of
  14682.  the options of the restore utility are analogous to the options of the
  14683.  backup utility.
  14684.  
  14685.  Restoring Files to a Disk
  14686.  
  14687.  To restore files that were copied by using the backup utility, you type
  14688.  restore followed by the drive that contains the disk with the backup fileswil
  14689.  directories from which they were copied.
  14690.  
  14691.  For example, if you have a floppy disk that contains backup files, you need
  14692.  only insert it in drive A and type the following to restore the files to the
  14693.  BAK directory on drive C:
  14694.  
  14695.  restore a: c:\bak
  14696.  
  14697.  
  14698.  
  14699.  
  14700.  Restoring Subdirectories
  14701.  
  14702.  If you made backup copies of subdirectories by using the /s option of the
  14703.  backup utility, you can restore these subdirectories by using the /s option
  14704.  of the restore utility. For example, to restore all of the backup files in
  14705.  drive A to the current directory in drive C, type the following:
  14706.  
  14707.  restore a: c: /s
  14708.  
  14709.  
  14710.  
  14711.  
  14712.  Prompting the User Before Restoring Files
  14713.  
  14714.  The directory being restored may contain read-only files or files that have
  14715.  been modified since the last backup operation; you may not want to restore
  14716.  these files. The /p option displays a warning message and prompts the user
  14717.  with "Replace the file (Y/N)?" To restore the backup file, type Y for yes.
  14718.  To leave the file unchanged, type N for no.
  14719.  
  14720.  Selecting Files to Restore
  14721.  
  14722.  
  14723.  Just as you can make backup copies based on the time or date a file was
  14724.  created or last modified, you can also restore files based on the time or
  14725.  date. The options that you can use with restore are as follows:
  14726.  Option                            Purpose
  14727.  ────────────────────────────────────────────────────────────────────────────
  14728.  
  14729.  /b:date                           Restores only those files that were last
  14730.                                    modified on or before date.
  14731.  
  14732.  /a:date                           Restores only those files that were last
  14733.                                    modified on or after date.
  14734.  
  14735.  /e:time                           Restores only those files that were last
  14736.                                    modified at or earlier than time.
  14737.  
  14738.  /L:time                           Restores only those files that were last
  14739.                                    modified at or later than time.
  14740.  
  14741.  /m                                Restores only those files that were
  14742.                                    modified after the last backup.
  14743.  
  14744.  You can combine options, if you like.
  14745.  
  14746.  These options work only if the filenames on the source drive are the same as
  14747.  those on the destination drive. In other words, if you are restoring files
  14748.  to an empty directory or to a directory that contains filenames that are
  14749.  different from the backup filenames, these options do not apply. For
  14750.  example, suppose that you want to update a phone list periodically from a
  14751.  backup floppy disk that is made from the company's master phone lists.
  14752.  Suppose also that you want to restore the list to a direc- tory named \PHONE
  14753.  on drive C. To update those phone lists that have not been modified since a
  14754.  specified date, you could use the /b and /m options, as follows:
  14755.  
  14756.  restore a: c:\phone /b:5-14-89 /m
  14757.  
  14758.  
  14759.  The /b option specifies only those files that were last modified on or
  14760.  before May 14, 1989. The /m option specifies those files that have the
  14761.  archive flag set, which means that the file has been modified since the last
  14762.  backup operation.
  14763.  
  14764.  Restoring Files That Are Not on the Destination Drive
  14765.  
  14766.  To restore only those files from the backup
  14767.  disk that do not currently exist on the destination drive, use the /n
  14768.  option.
  14769.  
  14770.  For example, suppose you have the files TEMP1.BAK, TEMP2.BAK, and TEMP3.BAK
  14771.  on a backup disk, and that TEMP1.BAK and TEMP2.BAK already exist in the
  14772.  destination directory. If you use the /n option, only TEMP3.BAK will be
  14773.  restored.
  14774.  
  14775.  Preserving Extended Attributes
  14776.  
  14777.  The restore utility, like the backup utility, preserves the extended
  14778.  attributes of a file or directory. If you are restoring files that have
  14779.  extended attributes to a file system that does not support extended
  14780.  attributes, you may want to use the /f option with the restore utility. For
  14781.  more information about the restore utility, see the Microsoft Operating
  14782.  System/2 Command Reference.
  14783.  
  14784.  
  14785.  Recovering a File from a Damaged Disk
  14786.  
  14787.  If a sector on your disk is damaged, you can use the recover utility to try
  14788.  to recover either just the file that has been written to the damaged sector
  14789.  or the entire disk.
  14790.  
  14791.  Before using this utility, be sure that you have backup copies of all the
  14792.  files on your disk. Then try to restore your files by using the restore
  14793.  utility. If this fails, use the recover utility on one file at a time. Use
  14794.  recover on a disk only if the entire disk is unreadable.
  14795.  
  14796.  ────────────────────────────────────────────────────────────────────────────
  14797.  Note
  14798.  
  14799.  This section describes the recover utility as it works with the MS OS/2 file
  14800.  allocation table (FAT) file system. For a description of the recover utility
  14801.  as it works with the high-performance file system (HPFS), see Chapter 16,
  14802.  "Using the High-Performance File System."
  14803.  ────────────────────────────────────────────────────────────────────────────
  14804.  
  14805.  
  14806.  To recover one file, you type recover followed by the name of the file you
  14807.  want to recover. MS OS/2 reads the file sector by sector, skipping the bad
  14808.  sectors, and labels any bad sectors so that no data is written to them in
  14809.  the future.
  14810.  
  14811.  To recover an entire disk, you type recover followed by the drive letter.
  14812.  
  14813.  The recover utility does not work on a network from a remote workstation,
  14814.  nor does it work on drives that are used with the assign, subst, or join
  14815.  utility. When you use the recover utility on a disk, no other program can
  14816.  access that disk while the utility is running. This prevents other programs
  14817.  from modifying the disk while recover is modifying it. Likewise, if a
  14818.  program is already using a disk, you cannot start the recover util- ity on
  14819.  that disk. Therefore, you cannot run recover on the disk from which you
  14820.  started MS OS/2. Nor can you run recover on the disk from which you started
  14821.  recover. If you need to run recover on the start-up disk, follow these
  14822.  steps:
  14823.  
  14824.    1.  Insert the MS OS/2 Install disk into drive A and turn on your
  14825.        computer. If your computer is already on, restart it by pressing
  14826.        CTRL+ALT+DEL.
  14827.  
  14828.    2.  At the first screen, press ESC. This takes you to the command prompt.
  14829.  
  14830.    3.  Insert the disk that contains the RECOVER
  14831.  
  14832.    4.  Start the recover utility. For example, if you want to run recover on
  14833.        the EMPLOYEE.TXT file located on drive C, type the following at the A
  14834.        prompt and press ENTER:
  14835.  
  14836.  recover c:\employee.txt
  14837.  
  14838.  
  14839.  
  14840.  
  14841.  
  14842.  If you need to run recover on the disk that contains the recover utility,
  14843.  you need to copy the RECOVERfloppy disk or hard disk) and run the utility
  14844.  from there.
  14845.  
  14846.  Recovering Extended Attributes
  14847.  
  14848.  When recovering a single file, the recover utility attempts to recover the
  14849.  extended attributes of the file. If it cannot recover the complete extended
  14850.  attribute information, what it can recover is stored in a file named
  14851.  EAnnnn.REC. (The letters nnnn designate a sequential number assigned by the
  14852.  operating system.) You can read this file by using the type command. The
  14853.  recovered file will no longer have extended attributes.
  14854.  
  14855.  When recovering an entire drive, all of the files lose their extended
  14856.  attributes. The recover utility stores the extended attributes in a file
  14857.  named FILEnnnn.REC. You can read this file by using the type command, but
  14858.  there is no way to tell which files the extended attributes originally
  14859.  belonged to.
  14860.  
  14861.  
  14862.  Specifying Device Information
  14863.  
  14864.  To specify or change the settings for a device in your system, use the mode
  14865.  utility. You can change settings for a parallel printer, a display device,
  14866.  or asynchronous communications devices such as modems and terminals.
  14867.  
  14868.  Before using devices that were set by using the mode utility, make sure that
  14869.  the proper device drivers and devices are installed. For more information
  14870.  about MS OS/2 device drivers, see Chapter 17, "Using MS OS/2 Device
  14871.  Drivers."
  14872.  
  14873.  For complete information about the options to the mode utility, see the
  14874.  Microsoft Operating System/2 Command Reference.
  14875.  
  14876.  
  14877.  Setting Operating Arguments for Devices
  14878.  
  14879.  
  14880.  The mode utility prepares MS OS/2 for communication with devices such as
  14881.  parallel and serial printers, modems, and screens.
  14882.  To use the mode utility, you must specify the name of the device you want to
  14883.  use followed by a list of arguments. MS OS/2 assigns names to devices as
  14884.  follows:
  14885.  
  14886.    ■   LPT1, LPT2, and LPT3 are parallel printers attached to the parallel
  14887.        ports of your computer. If you do not specify a port, LPT1 is the
  14888.        default device name. (PRN can be used in place of LPT1.)
  14889.  
  14890.    ■   COM1, COM2, and COM3 are serial devices that are attached to the
  14891.        serial communications ports of your computer. These could include
  14892.        devices such as modems or serial printers.
  14893.  
  14894.  
  14895.  Before you can set operating arguments for these devices, the device must be
  14896.  installed correctly and the appropriate device driver must be installed. For
  14897.  instructions on how to install device drivers, see Chapter 17, "Using MS
  14898.  OS/2 Device Drivers."
  14899.  
  14900.  Setting the Parallel-Printer Mode
  14901.  
  14902.  You can use the mode utility to set characteristics for parallel printers
  14903.  connected to parallel ports LPT1, LPT2, and LPT3. (PRN and LPT1 can be used
  14904.  interchangeably.) To set the operating arguments for a parallel port, you
  14905.  type mode followed by the following parallel-printer options:
  14906.  
  14907.  Option                            Purpose
  14908.  ────────────────────────────────────────────────────────────────────────────
  14909.  
  14910.  lptn                              Specifies the printer number: 1, 2, or 3.
  14911.  
  14912.  chars                             Specifies the number of characters per
  14913.                                    line: 80 or 132. The default value is 80.
  14914.  
  14915.  lines                             Specifies vertical spacing (lines per
  14916.                                    inch): 6 or 8. The default value is 6.
  14917.  
  14918.  p                                 Specifies that the mode utility
  14919.                                    continues to send output to the printer
  14920.                                    even though a time-out error has
  14921.                                    occurred. A time-out error occurs when a
  14922.                                    printer cannot print your output in a
  14923.                                    previously specified amount of time. You
  14924.                                    can break out of this process at any
  14925.                                    time by pressing CTRL+C.
  14926.  
  14927.  You must set the lptn option; all other arguments are optional.
  14928.  
  14929.  For example, suppose that you want your computer to print to a parallel
  14930.  printer that is connected to your computer's second parallel-printer port
  14931.  (LPT2). If you want to print with 132 characters per line and 8 lines per
  14932.  inch, type the following:
  14933.  
  14934.  mode lpt2: 132,8
  14935.  
  14936.  
  14937.  
  14938.  
  14939.  Setting the Asynchronous Communication Mode
  14940.  
  14941.  You can use the mode utility to configure a specified serial port for
  14942.  communication with external devices such as printers, terminals, and modems.
  14943.  To display the status of a serial device, you type mode followed by the name
  14944.  of the asynchronous port. For example, to see the status of the device that
  14945.  is connected to COM2, type the following:
  14946.  
  14947.  mode com2
  14948.  
  14949.  
  14950.  To set the operating arguments for a serial port, you type mode followed by
  14951.  a combination of the following options:
  14952.  
  14953.  Option                            Purpose
  14954.  ────────────────────────────────────────────────────────────────────────────
  14955.  
  14956.  comn                              Specifies the number of the asynchronous
  14957.                                    communications (COM) port. The range of
  14958.                                    valid values depends on your particular
  14959.                                    computer. For example, IBM PC/AT (and
  14960.                                    compatible) computers generally have two
  14961.                                    COM ports, while IBM PS/2 computers can
  14962.                                    have up to eight.
  14963.  
  14964.  baud                              Specifies the transmission rate. Valid
  14965.                                    rates are 110, 150, 300, 600, 1200, 1800,
  14966.                                    2400, 3600, 4800, 7200, 9600, and 19,200.
  14967.                                    (The 19,200 rate is valid for IBM PS/2
  14968.                                    computers [and compatible computers]
  14969.                                    only.) You can use just the first two
  14970.                                    digits to specify the transmission rate.
  14971.  
  14972.  parity                            Specifies the parity. Valid values are N
  14973.                                    (none), O (odd), E (even), M (mark; the
  14974.                                    parity equals 1), or S  ; the parity
  14975.                                    equals zero). The default value is E.
  14976.  
  14977.  databits                          Specifies the number of data bits. Valid
  14978.                                    values are 5, 6, 7, and 8. The default
  14979.                                    value is 7.
  14980.  
  14981.  stopbits                          Specifies the number of stop bits. Valid
  14982.                                    values are 1, 1.5, and 2. If the baud
  14983.                                    option is set to 110, the default value
  14984.                                    is 2; otherwise, the default value is 1.
  14985.                                    If you specify 1.5 stop bits, the
  14986.                                    databits option must be set to 5.
  14987.  
  14988.  You must set the baud option; all other arguments are optional.
  14989.  
  14990.  The options in the following list are used only when you use the mode
  14991.  utility in a full-screen session. These options may be listed in any order
  14992.  following the stopbits argument.
  14993.  
  14994.  Option                            Purpose
  14995.  ────────────────────────────────────────────────────────────────────────────
  14996.  
  14997.  to=state                          Specifies whether infinite time-out
  14998.                                    processing is enabled (on) or whether
  14999.                                    normal time-out processing is used (off).
  15000.                                    The default setting is to=off.
  15001.  
  15002.  xon=state                         Specifies whether automatic
  15003.                                    transmit-flow control is enabled (on) or
  15004.                                    disabled (off). The default setting is
  15005.                                    xon=off.
  15006.  
  15007.  
  15008.  
  15009.  Option                            Purpose
  15010.  ────────────────────────────────────────────────────────────────────────────
  15011.  
  15012.  idsr=state                        Specifies whether the input handshake
  15013.                                    using DSR (data set ready) is enabled
  15014.                                    (on) or disabled (off). The default
  15015.                                    setting is idsr=on.
  15016.  
  15017.  odsr=state                        Specifies whether the output handshake
  15018.                                    using DSR (data set ready) is enabled
  15019.                                    (on) or disabled (off). The default
  15020.                                    setting is odsr=on.
  15021.  
  15022.  octs=state                        Specifies whether the output handshake
  15023.                                    using CTS (clear to send) is enabled (on)
  15024.                                    or disabled (off). The default setting
  15025.                                    is octs=on.
  15026.  
  15027.  dtr=state                         Specifies whether DTR (data terminal
  15028.                                    ready) is enabled (on) or disabled (off),
  15029.                                    or whether DTR handshaking is enabled
  15030.                                    (hs). The default setting is dtr=on.
  15031.  
  15032.  rts=state                         Specifies whether RTS (request to send)
  15033.                                    is enabled (on) or disabled (off),
  15034.                                    whether RTS handshaking is enabled (hs),
  15035.                                    or RTS toggling is enabled (tog). The
  15036.                                    default setting is rts=on.
  15037.  
  15038.  p                                 DOS session only. Specifies that the
  15039.                                    mode utility uses the COM port for a
  15040.                                    serial printer and that it continues to
  15041.                                    send output to the printer even when a
  15042.                                    time-out error occurs. A time-out error
  15043.                                    occurs when a printer cannot print your
  15044.                                    output in a previously specified amount
  15045.                                    of time. You can break out of this
  15046.                                    process at any time by pressing CTRL+C.
  15047.  
  15048.  buffer=on | off | auto            Specifies whether extended hardware
  15049.                                    buffering is enabled, disabled, or
  15050.                                    controlled automatically by the device
  15051.                                    driver. This option applies only to
  15052.                                    communications hardware or drivers that
  15053.                                    are capable of extended hardware
  15054.                                    buffering. For more information about
  15055.                                    this option, see the Microsoft Operating
  15056.                                    System/2 Command Reference.
  15057.  
  15058.  Suppose you wanted to use the mode utility to set up the COM2 serial
  15059.  communications port for 9600 baud, with even parity, 7 data bits, and 1 stop
  15060.  bit. To do this, you would type the following:
  15061.  
  15062.  mode com2: 9600
  15063.  
  15064.  
  15065.  In this example, the parity and number of data and stop bits were not
  15066.  specified, because the default values were used. If, on the other hand, you
  15067.  wanted to set up the COM2 port for 1200 baud, odd parity, 7 data bits, and 2
  15068.  stop bits, you would type the following:
  15069.  
  15070.  mode com2: 1200,o,,2
  15071.  
  15072.  
  15073.  The arguments you specify when you use the mode utility to set up your
  15074.  serial port must match the requirements of the device with which you want to
  15075.  communicate.
  15076.  
  15077.  
  15078.  Setting the Display Mode
  15079.  
  15080.  You can use the mode utility to select the active graphics adapter and
  15081.  its display mode or to change the way information is displayed on your
  15082.  screen.
  15083.  
  15084.  You can use the following options with the mode utility to set the display
  15085.  mode:
  15086.  
  15087.  Option                            Purpose
  15088.  ────────────────────────────────────────────────────────────────────────────
  15089.  
  15090.  display                           Specifies one of the following values:
  15091.                                    40, 80, BW40, BW80, CO40, CO80, or MONO.
  15092.                                    For each of these values, 40 and 80
  15093.                                    indicate the number of characters per
  15094.                                    line. BW and CO refer to a color
  15095.                                    graphics adapter with color disabled (BW)
  15096.                                    or enabled (CO). MONO specifies a
  15097.                                    monochrome adapter with a constant
  15098.                                    display width of 80 characters per line.
  15099.  
  15100.  rows                              Specifies the number of rows of text
  15101.                                    displayed by the screen: 25, 43, 50, or
  15102.                                    60. The adapter type determines which of
  15103.                                    these values are valid. The initial
  15104.                                    value is 25; the default value is the
  15105.                                    last value that you set.
  15106.  
  15107.  When you type mode with the display argument, the utility affects the
  15108.  current session only. Suppose your computer uses an 80-character-per-line
  15109.  color graphics adapter (CO80). To change the number of rows of text
  15110.  displayed by the screen to 43, type the following:
  15111.  
  15112.  mode co80,43
  15113.  
  15114.  
  15115.  
  15116.  
  15117.  
  15118.  
  15119.  
  15120.  
  15121.  
  15122.  Chapter 13  Setting Up Your Hard Disk
  15123.  ────────────────────────────────────────────────────────────────────────────
  15124.  
  15125.  
  15126.  
  15127.  
  15128.  Introduction
  15129.  
  15130.  Before you use a hard disk, there are certain setup tasks that must be
  15131.  performed. These setup tasks may include any of the following:
  15132.  
  15133.    ■   Displaying partition data or logical-drive information
  15134.  
  15135.    ■   Creating or deleting a primary partition
  15136.  
  15137.    ■   Changing the start-up partition
  15138.  
  15139.    ■   Creating or deleting extended partitions and logical drives
  15140.  
  15141.    ■   Formatting the hard disk
  15142.  
  15143.  
  15144.  This chapter describes the tasks involved in setting up your hard disk and
  15145.  the tools you use to perform these setup tasks: Presentation Manager Fixed
  15146.  Disk Utility and the fdisk utility.
  15147.  
  15148.  ────────────────────────────────────────────────────────────────────────────
  15149.  Note
  15150.  
  15151.  All examples in this chapter are for the file allocation table (FAT) file
  15152.  system, which is the file system used by DOS and MS OS/2 versions 1.1 and
  15153.  earlier. For information on using the high-performance file system (HPFS),
  15154.  see Chapter 16, "Using the High-Performance File System."
  15155.  ────────────────────────────────────────────────────────────────────────────
  15156.  
  15157.  
  15158.  
  15159.  
  15160.  Starting and Quitting Fixed Disk Utility
  15161.  
  15162.  Fixed Disk Utility is a Presentation Manager application. You start it from
  15163.  the Desktop Manager Utilities group. To start Fixed Disk Utility, follow
  15164.  these steps:
  15165.  
  15166.    1.  Switch to Desktop Manager.
  15167.  
  15168.    2.  Open the Utilities-group window.
  15169.  
  15170.    3.  Choose Fixed Disk Utility.
  15171.  
  15172.        Fixed Disk Utility appears in a window on your screen, as shown in the
  15173.        following example.
  15174.  
  15175.  
  15176.  
  15177.  (This figure may be found in the printed book).
  15178.  
  15179.  Specific examples are used throughout this chapter to illustrate how Fixed
  15180.  Disk Utility works. Your computer may display values different from those
  15181.  given in the examples, depending on the size and format of your hard disk.
  15182.  
  15183.  You can quit Fixed Disk Utility by using the Exit command from the Options
  15184.  menu. A dialog box asks if you want to save any changes. If you choose to
  15185.  save changes, another dialog box appears, telling you to restart your system
  15186.  by pressing CTRL+ALT+DEL. Changes take effect after you restart your system.
  15187.  To quit Fixed Disk Utility, follow these steps:
  15188.  
  15189.    1.  Select the Options menu and choose the Exit command.
  15190.  
  15191.        The Exit Fixed Disk Utility dialog box appears.
  15192.  
  15193.    2.  To save any changes, turn on the Save Changes check box.
  15194.  
  15195.    3.  Choose the Yes button.
  15196.  
  15197.  
  15198.  If you choose the No button in the dialog box, you return to Fixed Disk
  15199.  Utility. When you choose the Yes button, a dialog box appears, telling you
  15200.  to close all other running programs and then restart your computer by
  15201.  pressing CTRL+ALT+DEL. At this point, you must either restart your system or
  15202.  choose the Help button for information about shutting down your system.
  15203.  
  15204.  
  15205.  Displaying Partition Data
  15206.  
  15207.  You can see how your hard disk is set up by using Fixed Disk Utility.
  15208.  
  15209.  (This figure may be found in the printed book).
  15210.  
  15211.  When you start Fixed Disk Utility, it creates a window that provides
  15212.  information about your hard disk. The Fixed Disk Utility window is divided
  15213.  into three sections: hard-disk icons, partition information, and
  15214.  logical-drive information.
  15215.  
  15216.    ■   You can display information for up to seven hard disks by using Fixed
  15217.        Disk Utility. Each hard disk is represented by a hard-disk icon, which
  15218.        is located at the top of the window. When you select a hard-disk icon,
  15219.        information about that disk is displayed.
  15220.  
  15221.    ■   You can organize your hard disk into separate sections called
  15222.        partitions. The primary partition is drive C; this is the location of
  15223.        the MS OS/2 start-up files. (The primary partition can contain data
  15224.        files and directories in addition to the start-up files.) PRI OS/2
  15225.        designates the primary partition in the Fixed Disk Utility window.
  15226.  
  15227.    ■   The extended partition is where logical drives are set up. Logical
  15228.        drives can contain data files and directories, but cannot contain MS
  15229.        OS/2 start-up files. EXT OS/2 designates the extended partition in the
  15230.        Fixed Disk Utility window. Having an extended partition on your hard
  15231.        disk is optional.
  15232.  
  15233.    ■   A partition's status is either startable or not startable. If the
  15234.        partition is startable, it contains the operating system's start-up
  15235.        files.
  15236.  
  15237.    ■   The size of the partition is displayed in megabytes.
  15238.  
  15239.    ■   The Percent of Disk entry indicates how much of the disk is formatted
  15240.        as the primary partition and how much of it is assigned to the
  15241.        extended partition and logical drives.
  15242.  
  15243.    ■   The Logical Drive entry gives the drive letter that MS OS/2 has
  15244.        assigned to each logical drive─for example, D, E, or F.
  15245.  
  15246.    ■   The Volume Label entry is the name that you give the disk when you
  15247.        format it.
  15248.  
  15249.    ■   The System entry indicates the file system with which the disk is
  15250.        formatted. If the type is IFS, for example, it means the partition is
  15251.        formatted with an installable file system.
  15252.  
  15253.  
  15254.  
  15255.  
  15256.  Creating and Deleting the Primary Partition
  15257.  
  15258.  MS OS/2 creates the primary partition during the installation process. Since
  15259.  the primary partition contains the MS OS/2 start-up files, and Presentation
  15260.  Manager cannot be started without them, you cannot create the primary
  15261.  partition on your start-up drive by using Fixed Disk Utility. You can,
  15262.  however, create a primary partition on another hard disk. To create a
  15263.  primary partition on a disk drive (other than the start-up drive), follow
  15264.  these steps:
  15265.  
  15266.    1.  Select the hard-disk icon for the disk you want to create a primary
  15267.        partition for.
  15268.  
  15269.    2.  Select the Options menu and the Create Primary Partition command. The
  15270.        Create Primary dialog box appears.
  15271.  
  15272.        (This figure may be found in the printed book).
  15273.  
  15274.    3.  Press ENTER or choose the Create button to accept the default
  15275.        (maximum) value for the partition size, or type a smaller size and
  15276.        then choose the Create button. The maximum partition size is
  15277.        determined by the amount of space available on your hard disk.
  15278.  
  15279.    4.  A dialog box appears, reporting that the primary partition has been
  15280.        created. Choose the OK button.
  15281.  
  15282.    5.  To save your changes, select the Options menu, choose the Exit
  15283.        command, and follow the instructions on your screen.
  15284.  
  15285.  
  15286.  When a primary partition is created during the MS OS/2 installation process,
  15287.  you are asked to specify the size of the partition. By default, the
  15288.  installation program creates the primary partition using the maximum space
  15289.  available on the hard disk. Once the primary partition has been created, the
  15290.  only way to change its size is to delete it and then reinstall MS OS/2. The
  15291.  following section describes how to delete the primary partition.
  15292.  
  15293.  ────────────────────────────────────────────────────────────────────────────
  15294.  Note
  15295.  
  15296.  Be sure to make backup copies of all files before you delete the primary
  15297.  partition. When the primary partition is deleted, any extended partitions
  15298.  and logical drives are deleted as well, and all information contained on
  15299.  them is destroyed.
  15300.  ────────────────────────────────────────────────────────────────────────────
  15301.  
  15302.  
  15303.  To delete the primary and extended partitions, follow these steps:
  15304.  
  15305.    1.  Make sure that you have backup copies of all the files you want to
  15306.        save.
  15307.  
  15308.    2.  Insert the MS OS/2 Install disk into drive A and turn on your
  15309.        computer. If your computer is already on, restart it by pressing
  15310.        CTRL+ALT+DEL.
  15311.  
  15312.    3.  At the first screen, press the ESC key. This takes you to the command
  15313.        prompt for drive A.
  15314.  
  15315.    4.  Type the following at the prompt, and then press the ENTER key:
  15316.  
  15317.  fdisk /d
  15318.  
  15319.  
  15320.  
  15321.  
  15322.    5.  MS OS/2 displays a message that asks if you are sure you want to
  15323.        delete the primary partition. Press Y to proceed with the deletion.
  15324.        Press ENTER or N to stop without deleting the partition.
  15325.  
  15326.  
  15327.  
  15328.  
  15329.  Changing the Start-Up Partition
  15330.  
  15331.  The start-up partition is the partition from which your system starts; it
  15332.  contains the operating system's start-up files. If you have more than one
  15333.  operating system on your computer, you place each in a separate partition.
  15334.  Then, to use one of them, you make that partition the start-up partition.
  15335.  The primary partition on your C drive is, by default, the start-up
  15336.  partition. An extended partition cannot be a start-up partition unless it
  15337.  contains the start-up files for an operating system. To change the start-up
  15338.  partition, follow these steps:
  15339.  
  15340.    1.  Select the hard-disk icon for the disk that contains the partition you
  15341.        want to make the start-up partition.
  15342.  
  15343.    2.  Select the partition that you want to make the start-up partition from
  15344.        the Partition Information section of the Fixed Disk Utility window.
  15345.  
  15346.    3.  Select the Options menu and choose the Make Startable command.
  15347.  
  15348.    4.  A dialog box appears, telling you that the partition was made the
  15349.        start-up partition. Choose the OK button.
  15350.  
  15351.    5.  To save your changes, select the Options menu, choose the Exit
  15352.        command, and follow the instructions on your screen.
  15353.  
  15354.  
  15355.  
  15356.  
  15357.  Using an Extended Partition and Logical Drives
  15358.  
  15359.  Most users set up their entire hard disk as the primary partition, so they
  15360.  can gain access to any file or directory on the disk without having to
  15361.  change to a different logical drive. Some users, however, may need to set up
  15362.  and use an extended partition and logical drives. Several people sharing one
  15363.  computer, for example, could reserve the primary partition (drive C) for
  15364.  system files and shared data files and use logical drives D and E for the
  15365.  files of individual users. The following sections describe how to create and
  15366.  delete an extended partition and logical drives.
  15367.  
  15368.  
  15369.  Creating an Extended Partition
  15370.  
  15371.  You must create an extended partition before you can create logical drives.
  15372.  To create an extended partition, follow these steps:
  15373.  
  15374.    1.  Select the hard-disk icon for the disk on which you want to create an
  15375.        extended partition.
  15376.  
  15377.    2.  Select the Options menu and choose the Create Extended Partition
  15378.        command. The Create Extended dialog box appears.
  15379.  
  15380.        (This figure may be found in the printed book).
  15381.  
  15382.    3.  Press ENTER or choose the Create button to accept the default
  15383.        (maximum) value for the partition size, or type a smaller size and
  15384.        then choose the Create button. The maximum partition size is
  15385.        determined by the amount of space available on your hard disk. .ET
  15386.  
  15387.    4.  A dialog box appears, reporting that an extended partition has been
  15388.        created. Choose the OK button.
  15389.  
  15390.    5.  To save your changes, select the Options menu, choose the Exit
  15391.        command, and follow the instructions on your screen.
  15392.  
  15393.  
  15394.  .RT
  15395.  
  15396.  
  15397.  Creating a Logical Drive
  15398.  
  15399.  After you have created an extended partition, you can create a logical
  15400.  drive. To create a logical drive, follow these steps:
  15401.  
  15402.    1.  Select the hard-disk icon for the disk on which you want to create a
  15403.        logical drive.
  15404.  
  15405.    2.  Select the Options menu and choose the Create Logical Drive command.
  15406.        The Create Logical dialog box appears.
  15407.  
  15408.        (This figure may be found in the printed book).
  15409.  
  15410.    3.  Press ENTER or choose the Create button to accept the default value
  15411.        for the size of the logical drive. You can type a smaller size if you
  15412.        would like to create more than one logical drive.
  15413.  
  15414.    4.  A dialog box appears, reporting that a logical drive has been created.
  15415.        Choose the OK button.
  15416.  
  15417.    5.  To save your changes, select the Options menu, choose the Exit
  15418.        command, and follow the instructions on your screen.
  15419.  
  15420.  
  15421.  When you quit Fixed Disk Utility after creating a logical drive, you should
  15422.  restart your system and then use the format utility to prepare the new
  15423.  logical drive for use. To do this, follow these steps:
  15424.  
  15425.    1.  Restart your system by pressing CTRL+ALT+DEL.
  15426.  
  15427.    2.  Choose OS/2 Full-Screen Command Prompt from the Main-group window.
  15428.  
  15429.    3.  At the command prompt, type the following and press ENTER:
  15430.  
  15431.  format drive:
  15432.  
  15433.  
  15434.        The drive argument is the letter assigned to the logical drive you
  15435.        just created. Repeat this step for every logical drive you created.
  15436.  
  15437.  
  15438.  The format utility, by default, formats a logical drive to use the file
  15439.  allocation table (FAT) file system. You can also format a logical drive to
  15440.  use the high-performance file system (HPFS). For more information, see
  15441.  Chapter 16, "Using the High-Performance File System."
  15442.  
  15443.  For complete information about using the format utility, see the Microsoft
  15444.  Operating System/2 Command Reference.
  15445.  
  15446.  
  15447.  Deleting a Logical Drive
  15448.  
  15449.  Before you can delete an extended partition, you must first delete any
  15450.  logical drives it contains. Remember that when you delete a logical drive,
  15451.  you lose any information stored there. To delete a logical drive, follow
  15452.  these steps:
  15453.  
  15454.    1.  Select the hard-disk icon for the disk that contains the logical drive
  15455.        to be deleted.
  15456.  
  15457.    2.  Select the logical drive to be deleted.
  15458.  
  15459.    3.  Select the Options menu and choose the Delete command.
  15460.  
  15461.    4.  A dialog box appears, asking if you are sure you want to delete the
  15462.        logical drive. Choose the Yes button to continue.
  15463.  
  15464.    5.  Another dialog box appears, reporting that the logical drive has been
  15465.        deleted. Choose the OK button.
  15466.  
  15467.    6.  To save your changes, select the Options menu, choose the Exit
  15468.        command, and follow the instructions on your screen.
  15469.  
  15470.  
  15471.  
  15472.  
  15473.  Deleting an Extended Partition
  15474.  
  15475.  To delete an extended partition, follow these steps:
  15476.  
  15477.    1.  Select the hard-disk icon for the disk that contains the extended
  15478.        partition to be deleted.
  15479.  
  15480.    2.  Make sure any logical drives in the extended partition have been
  15481.        deleted.
  15482.  
  15483.    3.  Select the extended partition to be deleted.
  15484.  
  15485.    4.  Select the Options menu and choose the Delete command.
  15486.  
  15487.    5.  A dialog box appears, asking if you are sure you want to delete the
  15488.        logical drive. Choose the Yes button to continue.
  15489.  
  15490.    6.  Another dialog box appears, reporting that the logical drive has been
  15491.        deleted. Choose the OK button.
  15492.  
  15493.    7.  To save your changes, select the Options menu, choose the Exit
  15494.        command, and follow the instructions on your screen.
  15495.  
  15496.  
  15497.  
  15498.  
  15499.  
  15500.  
  15501.  
  15502.  
  15503.  
  15504.  Chapter 14  Using Start-Up Files in MS OS/2
  15505.  ────────────────────────────────────────────────────────────────────────────
  15506.  
  15507.  
  15508.  
  15509.  
  15510.  Introduction
  15511.  
  15512.  Whenever you start or restart your system, MS OS/2 uses start-up files to
  15513.  get information about how to start your system. There are different start-up
  15514.  files for different parts of MS OS/2: AUTOEXEC.BAT provides information for
  15515.  the DOS session, STARTUP.CMD is for the full-screen and Presentation Manager
  15516.  sessions, and CONFIG.SYS provides information for the entire working
  15517.  environment. You can customize your MS OS/2 working environment by using
  15518.  these start-up files.
  15519.  
  15520.  This chapter briefly describes how to use the start-up files in MS OS/2.
  15521.  
  15522.  
  15523.  AUTOEXEC.BAT
  15524.  
  15525.  The AUTOEXEC.BAT batch
  15526.  file is used for customizing the DOS session in MS OS/2. You can use this
  15527.  file to change your DOS command prompt or to make MS OS/2 run certain
  15528.  commands automatically when you start the DOS session.
  15529.  
  15530.  The AUTOEXEC.BAT batch file is created during MS OS/2 installation, in the
  15531.  root directory of your start-up drive. It is run the first time you start
  15532.  the DOS session after starting or restarting your system.
  15533.  
  15534.  For more information about how to use AUTOEXEC.BAT and the DOS session, see
  15535.  Chapter 10, "Using the DOS Session."
  15536.  
  15537.  
  15538.  CONFIG.SYS
  15539.  
  15540.  The CONFIG.SYS file is an ASCII (text) file that contains start-up
  15541.  information. MS OS/2 reads this file when you start or restart your system.
  15542.  The protshell command in CONFIG.SYS specifies what user interface and
  15543.  initialization file to use, as well as which command interpreter to use in a
  15544.  full-screen session.
  15545.  
  15546.  A CONFIG.SYS file is created during MS OS/2 installation, and the following
  15547.  protshell command is placed there:
  15548.  
  15549.  protshell=c:\os2\pmshell.exe c:\os2\os2.ini c:\os2\cmd.exe
  15550.  
  15551.  
  15552.  This command specifies PMSHELL.EXE (Presentation Manager) as the user
  15553.  interface, OS2.INI as the initialization file, and cmd as the command
  15554.  interpreter to use in a full-screen session.
  15555.  
  15556.  
  15557.  OS2.INI and OS2SYS.INI
  15558.  
  15559.  The OS2.INI and OS2SYS.INI initialization files are binary files that
  15560.  contain information MS OS/2 uses when it starts Presentation Manager.
  15561.  OS2.INI contains information such as the program names, group names, and
  15562.  search paths used by Presentation Manager. For example, when you customize
  15563.  Desktop Manager or make changes through Control Panel, the new information
  15564.  is saved in the OS2.INI file. The file OS2SYS.INI contains information used
  15565.  by Print Manager. If something happens to either your OS2.INI or OS2SYS.INI
  15566.  file, you will need to replace it with a new one. To create a new OS2.INI or
  15567.  OS2SYS.INI file by using the makeini utility, follow these steps:
  15568.  
  15569.    1.  Insert the MS OS/2 Install Disk into drive A and turn on your
  15570.        computer. If your computer is already on, restart it by pressing
  15571.        CTRL+ALT+DEL.
  15572.  
  15573.    2.  At the first screen, press the ESC key. This takes you to the command
  15574.        prompt.
  15575.  
  15576.    3.  To create a new OS2.INI file, type the following and press the ENTER
  15577.        key:
  15578.  
  15579.        c:\os2\makeini os2.ini ini.rc
  15580.  
  15581.    4.  To create a new OS2SYS.INI file, type the following and press the
  15582.        ENTER key:
  15583.  
  15584.        c:\os2\makeini os2sys.ini inisys.rc
  15585.  
  15586.    5.  Remove the MS OS/2 Install disk from drive A and restart your computer
  15587.        by pressing CTRL+ALT+DEL.
  15588.  
  15589.  
  15590.  For information about cmd, the MS OS/2 command interpreter, see Chapter 8,
  15591.  "Running Cmd."
  15592.  
  15593.  The CONFIG.SYS file contains other commands that customize your system. For
  15594.  a list of the contents of CONFIG.SYS and for information about how to use
  15595.  configuration commands, see Chapter 15, "Using MS OS/2 Configuration
  15596.  Commands."
  15597.  
  15598.  
  15599.  Other Start-Up Files
  15600.  
  15601.  The CONFIG.SYS file is the primary start-up file for the OS/2 and DOS
  15602.  sessions. Although CONFIG.SYS is usually the only start-up file you will
  15603.  need, you can create other start-up files to further customize the cmd
  15604.  working environment. There are two cmd start-up files you can create, both
  15605.  of which are batch programs:
  15606.  
  15607.    ■   The STARTUP.CMD batch program, which initializes the first cmd
  15608.        session.
  15609.  
  15610.    ■   A separate batch program, which initializes all subsequent cmd
  15611.        sessions.
  15612.  
  15613.  
  15614.  Both types of batch programs are described in the following sections.
  15615.  
  15616.  
  15617.  Calling STARTUP.CMD
  15618.  
  15619.  When you start or restart your system, MS OS/2 searches for the STARTUP.CMD
  15620.  file in the root directory of the start-up drive. If found, STARTUP.CMD
  15621.  automatically creates the first cmd session. As in other batch files, you
  15622.  can place batch commands, cmd commands, utilities, and programs in the
  15623.  STARTUP.CMD file.
  15624.  
  15625.  Remember that STARTUP.CMD is run only when you start or restart your
  15626.  computer, and therefore customizes only the first cmd session. To customize
  15627.  additional cmd sessions, you must create a separate batch program.
  15628.  
  15629.  
  15630.  Calling a Batch Program from Cmd
  15631.  
  15632.  To run a specified batch program whenever you start cmd, you add the /k
  15633.  option, followed by the name of the batch program, to the protshell
  15634.  configuration command in the CONFIG.SYS file.
  15635.  
  15636.  For example, suppose that whenever you run cmd you want your command prompt
  15637.  to appear in a special, customized form. First you create a batch file that
  15638.  contains the command that sets your prompt to the way you want it to appear,
  15639.  and then you specify the name of that batch file on the protshell command
  15640.  line in the CONFIG.SYS file.
  15641.  
  15642.  If the batch file in this example were named OS2INIT.CMD, you would add the
  15643.  following line to your CONFIG.SYS file:
  15644.  
  15645.  protshell=c:\os2\pmshell.exe c:\os2\os2.ini c:\os2\os2sys.ini
  15646.  c:\os2\cmd.exe /k c:\os2init.cmd
  15647.  
  15648.  
  15649.  (This should all be typed on one line, even though it appears as two lines
  15650.  here.) In this example, the OS2INIT.CMD batch program runs whenever cmd is
  15651.  started. OS2INIT.CMD can contain any combination of batch-program commands.
  15652.  For more information about the protshell command, see Chapter 15, "Using MS
  15653.  OS/2 Configuration Commands."
  15654.  
  15655.  
  15656.  
  15657.  
  15658.  
  15659.  
  15660.  Chapter 15  Using MS OS/2 Configuration Commands
  15661.  ────────────────────────────────────────────────────────────────────────────
  15662.  
  15663.  
  15664.  
  15665.  
  15666.  
  15667.  
  15668.  When you start MS OS/2, your system reads configuration commands from the
  15669.  CONFIG.SYS file on your start-up disk. These commands give information to
  15670.  the operating system about the setup, or configuration, of your particular
  15671.  system. This chapter gives the form of the MS OS/2 configuration commands
  15672.  and examples of how they might be used. Even though most users will never
  15673.  need to change their CONFIG.SYS file, changes can be made, if necessary, by
  15674.  referring to the information in this chapter. For more information about the
  15675.  individual configuration commands, see the Microsoft Operating System/2
  15676.  Command Reference.
  15677.  
  15678.  During installation, MS OS/2 creates the CONFIG.SYS file; you can view the
  15679.  default values assigned to some of the configuration commands and modify
  15680.  some of those values at this time. Once the installation is complete, you
  15681.  can change command values, either by running the installation program again
  15682.  or by using System Editor or another text editor to edit your CONFIG.SYS
  15683.  file. If MS OS/2 detects an error in the CONFIG.SYS file, it displays an
  15684.  error message and pauses until you press the ENTER key. If you do not want
  15685.  MS OS/2 to pause after displaying a CONFIG.SYS error message, add the
  15686.  following command to your CONFIG.SYS file:
  15687.  
  15688.  pauseonerror=no
  15689.  
  15690.  
  15691.  When you add this command, MS OS/2 still displays the error message, but it
  15692.  does not pause before processing the CONFIG.SYS file.
  15693.  
  15694.  ────────────────────────────────────────────────────────────────────────────
  15695.  Note
  15696.  
  15697.  All examples of filenames and directory names in this chapter use the file
  15698.  allocation table (FAT) file system, which is the file system used by DOS and
  15699.  MS OS/2 versions 1.1 and earlier. For information on using high-performance
  15700.  file system (HPFS) filenames and directory names, see Chapter 16, "Using the
  15701.  High-Performance File System."
  15702.  ────────────────────────────────────────────────────────────────────────────
  15703.  
  15704.  
  15705.  
  15706.  
  15707.  Defining the CONFIG.SYS File
  15708.  
  15709.  In order to run MS OS/2, certain configuration commands are required in your
  15710.  CONFIG.SYS file. During installation, MS OS/2 adds these required commands
  15711.  to your CONFIG.SYS file. The following list shows you what the CONFIG.SYS
  15712.  file might look like after MS OS/2 is installed:
  15713.  
  15714.  protshell=c:\os2\pmshell.exe c:\os2\os2.ini c:\os2\os2sys.ini
  15715.   c:\os2\cmd.exe
  15716.  set comspec=c:\os2\cmd.exe
  15717.  libpath=c:\os2\dll;c:\;
  15718.  set path=c:\os2;c:\os2\system;c:\os2\install;c:\;
  15719.  set dpath=c:\os2;c:\os2\system;c:\os2\install;c:\;
  15720.  set prompt=$i[$p]
  15721.  set help=c:\os2\help
  15722.  set bookshelf=c:\os2\book
  15723.  buffers=30
  15724.  diskcache=64
  15725.  maxwait=3
  15726.  memman=swap,move
  15727.  protectonly=no
  15728.  swappath=c:\os2\system 512
  15729.  threads=128
  15730.  shell=c:\os2\command.com c:\os2 /p
  15731.  break=off
  15732.  fcbs=16,8
  15733.  rmsize=640
  15734.  country=001,c:\os2\system\country.sys
  15735.  devinfo=kbd,us,c:\os2\keyboard.dcp
  15736.  codepage=437,850
  15737.  device=c:\os2\epmdd.sys
  15738.  devinfo=scr,ega,c:\os2\viotbl.dcp
  15739.  set video_devices=vio_ibmega
  15740.  set vio_ibmega=device(bvhega)
  15741.  device=c:\os2\ega.sys
  15742.  device=c:\os2\com01.sys
  15743.  
  15744.  
  15745.  
  15746.  
  15747.  
  15748.  
  15749.  
  15750.  
  15751.  The following list tells you what the
  15752.  onfiguration commands in this example do:
  15753.  Command                           Purpose
  15754.  ────────────────────────────────────────────────────────────────────────────
  15755.  
  15756.  protshell                         Specifies the MS OS/2 user interface
  15757.                                    (the protected-mode shell) and the MS
  15758.                                    OS/2 command interpreter.
  15759.  
  15760.  set comspec                       Specifies the location of the MS OS/2
  15761.                                    command interpreter, cmd; used by
  15762.                                    programs to find cmd quickly.
  15763.  
  15764.  libpath                           Specifies the location of dynamic-link
  15765.                                    libraries.
  15766.  
  15767.  set path                          Specifies a search path for cmd.
  15768.  
  15769.  set dpath                         Specifies a data search path; used by
  15770.                                    programs to locate associated data.
  15771.  
  15772.  set prompt                        Determines the appearance of the command
  15773.                                    prompt.
  15774.  
  15775.  
  15776.  
  15777.  Command                           Purpose
  15778.  ────────────────────────────────────────────────────────────────────────────
  15779.  
  15780.  set help                          Specifies the location of Presentation
  15781.                                    Manager help files.
  15782.  
  15783.  set bookshelf                     Specifies the location of the file
  15784.                                    containing the on-line MS OS/2 Command
  15785.                                    Reference.
  15786.  
  15787.  buffers                           Specifies the number of disk buffers in
  15788.                                    memory.
  15789.  
  15790.  iopl                              Determines the input and output
  15791.                                    privilege levels.
  15792.  
  15793.  diskcache                         Enables disk caching and specifies the
  15794.                                    disk-cache size.
  15795.  
  15796.  maxwait                           Specifies the maximum amount of time any
  15797.                                    active process must wait before it is
  15798.                                    run.
  15799.  
  15800.  memman                            Specifies whether memory swapping and
  15801.                                    moving is permitted.
  15802.  
  15803.  protectonly                       Determines whether MS OS/2 will run a
  15804.                                    DOS session and a full-screen session.
  15805.  
  15806.  swappath                          Specifies the location of the disk-swap
  15807.                                    file and the minimum free space (in
  15808.                                    kilobytes).
  15809.  
  15810.  threads                           Specifies the maximum number of threads
  15811.                                    that can be used at one time.
  15812.  
  15813.  shell                             Specifies the DOS command interpreter,
  15814.                                    command; used in the DOS session.
  15815.  
  15816.  break                             Determines when MS OS/2 checks for the
  15817.                                    key combination CTRL+C during a process;
  15818.                                    used in the DOS session.
  15819.  
  15820.  fcbs                              Specifies the maximum number of open
  15821.                                    file-control blocks; used in the DOS
  15822.                                    session.
  15823.  
  15824.  rmsize                            Determines the amount of memory reserved
  15825.                                    for DOS (real-mode) applications; used
  15826.                                    in the DOS session.
  15827.  
  15828.  country                           Defines country-dependent information,
  15829.                                    such as time, date, and currency
  15830.                                    conventions.
  15831.  
  15832.  devinfo                           Specifies the information a device needs
  15833.                                    in order to use a particular code page.
  15834.  
  15835.  codepage                          Specifies which code pages your system
  15836.                                    is prepared to use.
  15837.  
  15838.  device                            Sets up a device driver.
  15839.  
  15840.  
  15841.  
  15842.  Modifying Values of Configuration Commands
  15843.  
  15844.  You can use your favorite text editor to modify the CONFIG.SYS file. Changes
  15845.  take effect when you restart your system. Before you make changes to the
  15846.  CONFIG.SYS file, you should first make a backup copy of the file. The backup
  15847.  copy of the CONFIG.SYS file is useful if you make a change that causes an
  15848.  error and prevents your system from starting correctly. If such an error
  15849.  occurs, follow these steps to start your system:
  15850.  
  15851.    1.  Insert the MS OS/2 Install disk into drive A and turn on your
  15852.        computer. If your computer is already on, restart it by pressing
  15853.        CTRL+ALT+DEL.
  15854.  
  15855.    2.  At the first screen, press the ESC key. This takes you to the command
  15856.        prompt.
  15857.  
  15858.    3.  Copy your backup copy of the configuration file to the root directory
  15859.        of the start-up drive. The copy you put on the start-up drive must be
  15860.        named CONFIG.SYS.
  15861.  
  15862.    4.  Remove the MS OS/2 Install disk from drive A and restart your computer
  15863.        by pressing CTRL+ALT+DEL.
  15864.  
  15865.  
  15866.  It is important to note that most users will never need to change the values
  15867.  in the CONFIG.SYS file and that it is recommended that you not do so. If you
  15868.  need to change the CONFIG.SYS file, however, the information provided in
  15869.  this chapter should help you to understand how the configuration commands
  15870.  work.
  15871.  
  15872.  
  15873.  Setting Up the Presentation Manager Session
  15874.  
  15875.  This section describes the configuration commands that set up the
  15876.  Presentation Manager session. You use these commands to set up the MS OS/2
  15877.  user interface and to specify the location of dynamic-link libraries. The
  15878.  following commands are described:
  15879.  
  15880.    ■   libpath
  15881.  
  15882.    ■   protshell
  15883.  
  15884.    ■   iopl
  15885.  
  15886.  
  15887.  
  15888.  
  15889.  Specifying the Location of .DLL Files
  15890.  
  15891.  
  15892.  MS OS/2 finds dynamic-link library modules by using the libpath
  15893.  onfiguration command. Dynamic-link libraries contain functionally related
  15894.  portions of MS OS/2. The filenames of dynamic-link libraries usually end
  15895.  with the extension .DLL; for example, a library named DISPLAY.DLL contains
  15896.  an MS OS/2 display driver. Presentation Manager printer drivers, fonts, and
  15897.  queue processors are also dynamic-link libraries; these filenames usually
  15898.  end with the .DRV, Suppose, for example, that you have a new dynamic-link
  15899.  library that you have put into the LIB directory on drive C. For MS OS/2 to
  15900.  be able to use the new dynamic-link library, the LIB directory must be part
  15901.  of the libpath command in your CONFIG.SYS file. The libpath command would
  15902.  appear as follows:
  15903.  libpath=c:\os2\dll;c:\;c:\lib
  15904.  
  15905.  
  15906.  This example directs MS OS/2 to look for dynamic-link libraries in the
  15907.  C:\OS2\DLL directory, the root directory, and the C:\LIB directory on your
  15908.  hard disk.
  15909.  
  15910.  ────────────────────────────────────────────────────────────────────────────
  15911.  Note
  15912.  
  15913.  There are differences between the libpath command and the set path command.
  15914.  The libpath command is a configuration command that specifies the location
  15915.  of each of the directories containing .DLL files. The set path command sets
  15916.  the value of the PATH environment variable and specifies a directory search
  15917.  path. Also, with the libpath command, the current directory is not searched
  15918.  first, as it is with set path.
  15919.  ────────────────────────────────────────────────────────────────────────────
  15920.  
  15921.  
  15922.  
  15923.  
  15924.  Changing the User Interface
  15925.  
  15926.  You use the protshell configuration command to specify the user interface
  15927.  (the protected-mode shell) and the MS OS/2 command interpreter. The user
  15928.  interface is the program you see when you start your system.
  15929.  
  15930.  During installation, MS OS/2 places the following protshell command in your
  15931.  CONFIG.SYS file:
  15932.  
  15933.  protshell=c:\os2\pmshell.exe c:\os2\os2.ini c:\os2\cmd.exe
  15934.  
  15935.  
  15936.  In this example, the user interface is PMSHELL.EXE, the Presentation Manager
  15937.  shell. For more information about this command, see Chapter 14, "Using
  15938.  Start-Up Files in MS OS/2."
  15939.  
  15940.  
  15941.  Specifying the Presentation Manager Device Driver
  15942.  
  15943.  When you specify the Presentation Manager shell, you must also specify the
  15944.  Presentation Manager device driver. The device=c:\os2\pmdd.sys command
  15945.  specifies this device driver; this command is placed in your CONFIG.SYS file
  15946.  during the installation of MS OS/2. If, for some reason, this command does
  15947.  not exist in your CONFIG.SYS file, you will not be able to start
  15948.  Presentation Manager. You can add the command by following these steps:
  15949.  
  15950.    1.  Insert the MS OS/2 Install disk into drive A and turn on your
  15951.        computer. If your computer is already on, restart it by pressing
  15952.        CTRL+ALT+DEL.
  15953.  
  15954.    2.  At the first screen, press ESC. This takes you to the command prompt.
  15955.  
  15956.    3.  Using a text editor, add the following line to your CONFIG.SYS file:
  15957.  
  15958.  device=c:\os2\pmdd.sys
  15959.  
  15960.  
  15961.  
  15962.  
  15963.    4.  Remove the MS OS/2 Install disk from drive A and restart your computer
  15964.        by pressing CTRL+ALT+DEL.
  15965.  
  15966.  
  15967.  
  15968.  
  15969.  Enabling Input and Output Privilege Levels
  15970.  
  15971.  You enable or disable input and output privilege levels by using the iopl
  15972.  configuration command.
  15973.  
  15974.  The privilege level assigned to a program determines which data segments it
  15975.  can access and which machine instructions it can execute. Applications are
  15976.  usually assigned privilege level 3, which allows them to refer only to their
  15977.  own data segments and restricts them from issuing input/output instructions.
  15978.  
  15979.  
  15980.  Applications that are assigned privilege level 2 can refer to the data
  15981.  segments of other applications and issue input/output instructions. When you
  15982.  specify iopl=yes, a program that has been assigned privi- lege level 2 is
  15983.  allowed to send or receive the machine instructions necessary to access a
  15984.  particular input/output device. You can also specify input/output privilege
  15985.  levels for programs on an individual basis. For example, to grant a printer
  15986.  driver named Newprint access to a particular piece of hardware, add the
  15987.  following command to your CONFIG.SYS file:
  15988.  
  15989.  iopl=newprint.drv
  15990.  
  15991.  
  15992.  The iopl command does not affect programs that run in the DOS session.
  15993.  
  15994.  It is not necessary for you to specify iopl=no, since no is the default
  15995.  value.
  15996.  
  15997.  
  15998.  Setting Up the DOS Session
  15999.  
  16000.  This section describes the configuration commands that customize the DOS
  16001.  session. In most cases, the default initialization values should not be
  16002.  changed. You will need to modify these values only when you want to create a
  16003.  customized work environment or when an application requires you to do so.
  16004.  
  16005.  You can further customize the DOS session by adding commands to your
  16006.  AUTOEXEC.BAT file. For information on this file, see Chapter 10, "Using the
  16007.  DOS Session."
  16008.  
  16009.  
  16010.  Enabling the DOS Session
  16011.  
  16012.  By default, the DOS session is enabled whenever you start MS OS/2. This is
  16013.  controlled by the protectonly configuration command in your CONFIG.SYS file.
  16014.  The following rules apply to setting up the DOS session:
  16015.  
  16016.    ■   If you specify protectonly=no, the DOS session can be started. If you
  16017.        do not place a protectonly command in your CONFIG.SYS file, MS OS/2
  16018.        enables the DOS session.
  16019.  
  16020.    ■   If you specify protectonly=no, the following line must also appear in
  16021.        the CONFIG.SYS file:
  16022.  
  16023.  device=c:\os2\dos.sys
  16024.  
  16025.  
  16026.  
  16027.  
  16028.    ■   If you specify protectonly=yes, the DOS session cannot be started.
  16029.  
  16030.  
  16031.  
  16032.  
  16033.  Configuring the DOS Session
  16034.  
  16035.  While most of the configuration commands apply to all of the sessions in MS
  16036.  OS/2, the following configuration commands are specific to the DOS session:
  16037.  
  16038.    ■   shell
  16039.  
  16040.    ■   rmsize
  16041.  
  16042.    ■   break
  16043.  
  16044.    ■   fcbs
  16045.  
  16046.  
  16047.  These commands are described in the following sections.
  16048.  
  16049.  Specifying the DOS Command Interpreter
  16050.  
  16051.  To specify the DOS command interpreter, use the shell configuration command.
  16052.  The shell configuration command lets you specify the command interpreter
  16053.  that is loaded and run in the DOS session.
  16054.  
  16055.  The default shell for the DOS session is command. This means that if you do
  16056.  not include a shell configuration command in the CONFIG.SYS file, MS OS/2
  16057.  searches for COMMANDof your start-up disk and loads it into memory. If you
  16058.  specify another DOS shell to use, MS OS/2 will search for that shell program
  16059.  and load it into memory. The chances are that you will need to use the shell
  16060.  command only if the COMMANDexample, suppose that COMMANDdirectory of your
  16061.  start-up drive (drive C). In this case, you would place the following line
  16062.  in your CONFIG.SYS file:
  16063.  
  16064.  shell=c:\os2\command.com c:\os2 /p /e:512
  16065.  
  16066.  
  16067.  This example directs MS OS/2 to load command from the OS2 directory instead
  16068.  of from the root directory of drive C.
  16069.  
  16070.  Another reason for using the shell configuration command is to spec- ify
  16071.  options to the DOS-session command interpreter. Command has options that let
  16072.  you permanently keep a copy of COMMANDin memory, run a command or program,
  16073.  or specify the size of the command interpreter's environment.
  16074.  
  16075.  For information about command and its options, see the Microsoft Operating
  16076.  System/2 Command Reference.
  16077.  
  16078.  Allocating Memory for DOS Applications
  16079.  
  16080.  
  16081.  To set the amount of memory reserved for DOS applications, use the rmsize
  16082.  configuration command. Up to 640K can be reserved. You need to specify at
  16083.  least 256K to be able to create a DOS session.
  16084.  The default size depends on the total memory installed in your computer; it
  16085.  is the amount of memory installed below 1024K (either 512K or 640K). To use
  16086.  this command, you type rmsize= followed by the number of kilobytes of memory
  16087.  you want to reserve for DOS applications. For example, to reserve 640K for
  16088.  use by programs running in the DOS session, add the following line to your
  16089.  CONFIG.SYS file:
  16090.  
  16091.  rmsize=
  16092.  
  16093.  
  16094.  Remember that some of the total memory is reserved for MS OS/2 itself. For
  16095.  more information about memory usage with the rmsize command, see the
  16096.  Microsoft Operating System/2 Command Reference.
  16097.  
  16098.  Setting CTRL+C Checking
  16099.  
  16100.  Normally, MS OS/2 checks whether you have pressed CTRL+C only while it is
  16101.  reading from your keyboard or sending something to your screen or printer.
  16102.  However, you can enable additional CTRL+C check- ing by using the break
  16103.  configuration command. When you specify break=on, MS OS/2 checks whether
  16104.  CTRL+C has been pressed whenever it is reading from or writing to a disk.
  16105.  For example, if you want to stop a file from being sorted and you have set
  16106.  break=on in your CONFIG.SYS file, you can press CTRL+C to stop the sorting
  16107.  process. To enable additional CTRL+C checking, add the following line to
  16108.  your CONFIG.SYS file:
  16109.  
  16110.  break=on
  16111.  
  16112.  
  16113.  
  16114.  
  16115.  Specifying the Number of Open File-Control Blocks (FCBs)
  16116.  
  16117.  To specify the number of open file-control blocks (FCBs), use the fcbs
  16118.  configuration command.
  16119.  
  16120.  Although it is recommended that new programs use file handles to access
  16121.  files, some older DOS applications use data structures called file-control
  16122.  blocks (FCBs) to control opened files. If your application uses FCBs, you
  16123.  can use the fcbs configuration command to specify the maximum number of
  16124.  files controlled by FCBs that can be opened concurrently. The command also
  16125.  specifies the number of files opened with FCBs that are protected against
  16126.  automatic closure.
  16127.  
  16128.  By default, up to 16 FCB files can be opened concurrently, and all but 8
  16129.  files can be automatically closed. You should use the fcbs command to change
  16130.  these values only if your application requires you to do so. To use this
  16131.  command, you type fcbs= followed by the total number of FCBs that can be
  16132.  opened concurrently (1 through 255) and the total number of files that
  16133.  cannot be closed automatically (zero through 255).
  16134.  
  16135.  For example, to open as many as four files with FCBs and protect the first
  16136.  two files from being closed automatically, add the following line to your
  16137.  CONFIG.SYS file:
  16138.  
  16139.  fcbs=,2
  16140.  
  16141.  
  16142.  The number of files that are protected from closure must be less than or
  16143.  equal to the total number of open files.
  16144.  
  16145.  
  16146.  Modifying Multitasking Features
  16147.  
  16148.  MS OS/2 provides several configuration commands that let you modify its
  16149.  multitasking features. Although most users will not need to use these
  16150.  commands, there may be times when you are advised to change these features
  16151.  to enhance how an application runs with MS OS/2. The following commands let
  16152.  you modify the multitasking features of MS OS/2:
  16153.  
  16154.    ■   threads
  16155.  
  16156.    ■   maxwait
  16157.  
  16158.    ■   priority
  16159.  
  16160.    ■   timeslice
  16161.  
  16162.  
  16163.  These commands are described in the following sections.
  16164.  
  16165.  
  16166.  Specifying the Maximum Number of Threads
  16167.  
  16168.  To specify the maximum number of threads that you can create at one time,
  16169.  use the threads configuration command.
  16170.  
  16171.  MS OS/2 allocates at least one thread for every running program. A program
  16172.  may request additional threads if it needs them to perform tasks
  16173.  simultaneously.
  16174.  
  16175.  The threads configuration command sets a system-wide limit on the number of
  16176.  threads that can be created. During installation, MS OS/2 sets the number of
  16177.  threads to 128. About 35 threads are used by MS OS/2; the remaining threads
  16178.  are available for use by other programs. If you will be running many
  16179.  programs that use a large number of threads, you may want to use the threads
  16180.  configuration command to increase the number of threads that can be created
  16181.  at one time. To use this command, you type threads= followed by the maximum
  16182.  number of threads you want to create at one time. You can specify any value
  16183.  from 64 through 512.
  16184.  
  16185.  For example, to increase the number of threads from 128 (the default value)
  16186.  to 255, add the following line to your CONFIG.SYS file:
  16187.  
  16188.  threads=
  16189.  
  16190.  
  16191.  Be aware that as the number of threads is increased, a small amount of
  16192.  memory is used up.
  16193.  
  16194.  
  16195.  Specifying the Maximum Time a Process Waits
  16196.  
  16197.  In a multitasking environment, each process that runs is assigned a priority
  16198.  level that determines how often the process can run. If a process has a high
  16199.  priority, it is granted permission to run more often than a process with a
  16200.  low priority. Thus, a low-priority process might wait a long time before it
  16201.  is allowed to run. You can change the amount of time a process must wait by
  16202.  using the maxwait configuration command.
  16203.  
  16204.  The maxwait command specifies the maximum amount of time any active process
  16205.  must wait before it runs. If the specified time elapses, the priority of the
  16206.  waiting process is increased for one execution cycle (also called a time
  16207.  slice). To use the maxwait command, you type maxwait= followed by the number
  16208.  of seconds a process must wait before receiving a priority increase. You can
  16209.  specify any value from 1 through 255 seconds. The default value is 3
  16210.  seconds.
  16211.  
  16212.  For example, suppose that you want to make background programs, which
  16213.  normally have low priority, run faster. You could specify that you want a
  16214.  process to wait only 1 second before receiving a priority increase, by
  16215.  placing the following line in your CONFIG.SYS file:
  16216.  
  16217.  maxwait=
  16218.  
  16219.  
  16220.  Note that this will increase the speed of low-priority processes (such as
  16221.  background programs), but that it will also decrease the speed of
  16222.  high-priority processes (such as foreground programs).
  16223.  
  16224.  
  16225.  Disabling Dynamic Priority Assignments
  16226.  
  16227.  In MS OS/2, processes (threads) are divided into three categories according
  16228.  to their priority: general, time-critical, and low. The general-priority
  16229.  category is further divided into foreground, background, and interactive
  16230.  subcategories. MS OS/2 can automatically adjust the priority levels of
  16231.  general-priority processes as circumstances change (for example, when a
  16232.  foreground process becomes a background process), thus causing the process
  16233.  to run more often or less often. This feature is known as dynamic priority
  16234.  scheduling.
  16235.  
  16236.  By default, MS OS/2 allows dynamic priority scheduling; however, you can
  16237.  turn this feature off (or turn it back on) by using the priority
  16238.  configuration command. To disable dynamic priority processing and instead
  16239.  allocate CPU time to the processes according to the priorities they are
  16240.  currently assigned, you would type the following:
  16241.  
  16242.  priority=absolute
  16243.  
  16244.  
  16245.  By default, the priority command
  16246.  is set to dynamic. Unless you are specifically advised to do so, it should
  16247.  not be necessary to change this setting. This command interacts with the
  16248.  maxwait command described earlier: the priority command must be set to
  16249.  dynamic for the maxwait command to have an effect on system performance.
  16250.  
  16251.  
  16252.  Setting the Time-Slice Values
  16253.  
  16254.  To specify the minimum and maximum amount of time that MS OS/2 will dedicate
  16255.  to a given process before it checks on other processes that may be waiting,
  16256.  use the timeslice configuration command. A time slice is an interval of time
  16257.  used by MS OS/2 to schedule the threads of a process. To use this command,
  16258.  you type timeslice= followed by the minimum and, optionally, the maximum
  16259.  time-slice value (in milliseconds). If you specify only the minimum
  16260.  time-slice value, the maximum time slice is also set to that value.
  16261.  
  16262.  For example, if you run an application that advises you to change the
  16263.  minimum time-slice value to 64 milliseconds, add the following line to your
  16264.  CONFIG.SYS file:
  16265.  
  16266.  timeslice=
  16267.  
  16268.  
  16269.  If you add this line, MS OS/2 will let at least 64 milliseconds pass before
  16270.  it switches to another program.
  16271.  
  16272.  For applications that take up a large amount of processing time, a larger
  16273.  time-slice setting is better. For applications that do not work if they are
  16274.  interrupted for long periods of time, such as telecommunications
  16275.  applications, a smaller time-slice setting is better.
  16276.  
  16277.  
  16278.  Managing System Memory
  16279.  
  16280.  The following MS OS/2 configuration commands help your system manage memory
  16281.  efficiently:
  16282.  
  16283.    ■   diskcache
  16284.  
  16285.    ■   memman
  16286.  
  16287.    ■   swappath
  16288.  
  16289.    ■   buffers
  16290.  
  16291.  
  16292.  
  16293.  
  16294.  These commands are described in the following sections.
  16295.  
  16296.  
  16297.  Setting Up a Disk Cache
  16298.  
  16299.  You can enable disk caching and specify the number of kilobytes of memory
  16300.  allocated for the disk cache by using the diskcache configuration command.
  16301.  Since reading from a disk cache in memory takes less time than reading from
  16302.  storage, using a disk cache makes your system-response time much faster.
  16303.  When disk caching is enabled and a program instructs the system to read from
  16304.  your hard disk, the system stores what it reads in the disk cache in memory.
  16305.  When the program instructs the system to read from the hard disk again, the
  16306.  system checks the cache for the data, and reads from the hard drive only if
  16307.  the data is not in the cache. To allocate a 128K disk cache in your system,
  16308.  add the following line to your CONFIG.SYS file:
  16309.  
  16310.  diskcache=
  16311.  
  16312.  
  16313.  If there is no diskcache command in your CONFIG.SYS file, MS OS/2 does not
  16314.  enable disk caching, and no cache space is allocated.
  16315.  
  16316.  You should not use the diskcache configuration command if your system has a
  16317.  partition that uses the high-performance file system (HPFS), because it
  16318.  slows the performance of HPFS.
  16319.  
  16320.  
  16321.  Enabling Memory Swapping and Moving
  16322.  
  16323.  You can use the memman configuration command to enable or disable the
  16324.  memory-management techniques of swapping and moving.
  16325.  
  16326.  Swapping is a technique by which some segments in memory are written to a
  16327.  file on a disk, making the memory these segments were using available for
  16328.  another purpose. The swapped segment is reloaded into memory when it is
  16329.  needed. You can swap memory segments from the DOS session by using the
  16330.  swapdos option.
  16331.  
  16332.  Moving is a technique by which MS OS/2 can combine unused blocks of storage
  16333.  into larger areas, which can then be used by a program or application.
  16334.  Suppose you are running a telecommunications program that loses its
  16335.  connection if it cannot respond to incoming data within a specified amount
  16336.  of time. To prevent MS OS/2 from swapping segments of the program out to the
  16337.  hard disk (and possibly preventing a timely response), add the following
  16338.  line to your CONFIG.SYS file:
  16339.  
  16340.  memman=noswap
  16341.  
  16342.  
  16343.  You can use the memman command in several forms, including the following:
  16344.  
  16345.  memman=swapdos
  16346.  memman=swap,move,noswapdos
  16347.  memman=noswap,nomove
  16348.  memman=swap
  16349.  memman=swap,move
  16350.  memman=noswap
  16351.  memman=noswap,move
  16352.  
  16353.  
  16354.  If you specify the swapdos option, swap and move are the default
  16355.  assignments. If you specify only the swap or noswap option, move is the
  16356.  default assignment.
  16357.  
  16358.  ────────────────────────────────────────────────────────────────────────────
  16359.  Note
  16360.  
  16361.  MS OS/2 may not swap the DOS session in the following situations:
  16362.  ────────────────────────────────────────────────────────────────────────────
  16363.  
  16364.  
  16365.    ■   If you use the mode utility to configure a serial port
  16366.  
  16367.    ■   If you switch to another session while a DOS program is reading from
  16368.        or writing to a file
  16369.  
  16370.  
  16371.  
  16372.  
  16373.  
  16374.  Using a Disk-Swap File
  16375.  
  16376.  You can specify the location of the disk-swap file by using the swappath
  16377.  configuration command. A disk-swap file is a file that keeps track of code
  16378.  or data that is temporarily moved out of mem- ory while another programs
  16379.  runs. The swappath command is used in conjunction with the memman command.
  16380.  Suppose, for example, that you want MS OS/2 to write the swap file to the
  16381.  SWAPFILE directory on your hard disk (drive C). To do this, add the
  16382.  following lines to your CONFIG.SYS file:
  16383.  
  16384.  memman=swap,move
  16385.  swappath=c:\swapfile
  16386.  
  16387.  
  16388.  If the swappath command is not specified in your CONFIG.SYS file, MS OS/2
  16389.  writes the disk-swap file to the root directory of the drive from which your
  16390.  system starts.
  16391.  
  16392.  ────────────────────────────────────────────────────────────────────────────
  16393.  Note
  16394.  
  16395.  If you are using the swappath command, make sure your sys- tem has ample
  16396.  space available. The minimum size of a disk-swap file is 512K.
  16397.  ────────────────────────────────────────────────────────────────────────────
  16398.  
  16399.  
  16400.  
  16401.  
  16402.  Changing the Number of Disk Buffers
  16403.  
  16404.  You can change the number of disk buffers (work areas in memory) by using
  16405.  the buffers configuration command. MS OS/2 uses disk buffers as temporary
  16406.  work space while reading and writing data when you use the file allocation
  16407.  table (FAT) file system. Suppose that you want to change the number of
  16408.  buffers to 15. To do this, add the following line to your CONFIG.SYS file:
  16409.  
  16410.  buffers=
  16411.  
  16412.  
  16413.  Each disk buffer is a 512-byte block of memory. You can specify from 1
  16414.  through 100 buffers. During installation, the value of the buffers command
  16415.  is set to 30. If you remove the buffers command from your CONFIG.SYS file,
  16416.  the default value is 3.
  16417.  
  16418.  
  16419.  Setting Up a Device Driver
  16420.  
  16421.  You can set up a device driver by using the device configuration command. A
  16422.  device driver is a program that allows MS OS/2 to use devices in your
  16423.  system. These devices may include the keyboard, monitor, disk drives, and
  16424.  system clock, and pointing devices such as a mouse. For example, if you are
  16425.  using the serial version of the Microsoft Mouse with Presentation Manager on
  16426.  an IBM PC/AT (or a compatible computer), your CONFIG.SYS file should contain
  16427.  the following device commands:
  16428.  
  16429.  device=c:\os2\epointdd.sys
  16430.  device=c:\os2\msser01.sys model=
  16431.  device=c:\os2\mouse.sys type=msser$
  16432.  
  16433.  
  16434.  This example directs MS OS/2 to look for the pointer and mouse drivers. When
  16435.  MS OS/2 loads these drivers, MS OS/2 and DOS programs can use the mouse.
  16436.  
  16437.  For more information about MS OS/2 device drivers, see Chapter 17, "Using MS
  16438.  OS/2 Device Drivers."
  16439.  
  16440.  
  16441.  Setting Up Your Environment
  16442.  
  16443.  One of the steps in setting up your system environment is defining the way
  16444.  you want your system to perform. This section describes how to set
  16445.  environment variables and how to run programs that set up your system.
  16446.  
  16447.  Environment variables are ASCII strings that can be assigned values of your
  16448.  choice. The set of these strings is known as the environment. A small part
  16449.  of memory is reserved for storing environment variables. When a value is
  16450.  stored as an environment variable, it can be used by any program in the
  16451.  session.
  16452.  
  16453.  
  16454.  Setting Environment Variables
  16455.  
  16456.  To assign a value to an environment variable,
  16457.  use the set configuration command. To use this command, specify the
  16458.  environment-variable name followed by the value that will be assigned to it.
  16459.  
  16460.  
  16461.  Environment variables commonly set in your CONFIG.SYS file include PATH
  16462.  (directory search path) and DPATH (data search path). Programmers will often
  16463.  set the LIB (library search path), INCLUDE (include-file search path), and
  16464.  TMP (temporary-file search path) environment variables in their CONFIG.SYS
  16465.  file. You can also define and set your own environment variables. For
  16466.  example, to set the PATH environment variable so that MS OS/2 searches the
  16467.  current directory first (the default setting), the BIN directory on drive C
  16468.  second, and the OS2 directory on drive C third, add the following line to
  16469.  your CONFIG.SYS file:
  16470.  
  16471.  set path=c:\ebin;c:\eos2
  16472.  
  16473.  
  16474.  You can turn on the MS OS/2 command-line editing feature by setting an
  16475.  environment variable. To do this, place the following line in your
  16476.  CONFIG.SYS file:
  16477.  
  16478.  set keys=on
  16479.  
  16480.  
  16481.  For information about how to use the keys command, see Chapter 8, "Running
  16482.  Cmd."
  16483.  
  16484.  Inheriting Environment Variables
  16485.  
  16486.  Normally, environment variables such as PATH and DPATH are set up in your
  16487.  CONFIG.SYS file. The first time the MS OS/2 command interpreter (cmd) is
  16488.  run, these environment variables are used to set up the initial working
  16489.  environment.
  16490.  
  16491.  When you start cmd from Desktop Manager, the new session inherits the
  16492.  environment variables found in the CONFIG.SYS file. If you start cmd from an
  16493.  existing session, however, the new version of cmd inherits the environment
  16494.  variables of the current session. If you have modified any environment
  16495.  variables, the current environment may not be the same as the environment
  16496.  that is specified in the CONFIG.SYS file.
  16497.  
  16498.  
  16499.  Starting a Program When You Start Your System
  16500.  
  16501.  By using configuration commands, you can have MS OS/2 start programs when
  16502.  you start or restart your system. Whether you run a program as a foreground
  16503.  or a background program depends on whether the program needs to receive
  16504.  input. A program that needs to receive input from the keyboard or mouse must
  16505.  run as a foreground program.
  16506.  
  16507.  
  16508.  Starting a Program as a Foreground Program
  16509.  
  16510.  You use the call configuration command to specify an MS OS/2 program that
  16511.  you want to be started as a foreground program whenever you start or restart
  16512.  your system. You can specify any program that you can start from cmd. For
  16513.  example, you can use the call configuration command to start a program that
  16514.  makes a network connection each time you start your system. (This kind of
  16515.  program should run as a foreground program, because you will need to type
  16516.  your password.) To start a program called Connect, located in the NETWORK
  16517.  directory of drive C, you would add the following line to your CONFIG.SYS
  16518.  file:
  16519.  
  16520.  call=c:\network\connect.exe
  16521.  
  16522.  
  16523.  If the program you want to start requires arguments, simply type the
  16524.  arguments after the program name.
  16525.  
  16526.  Starting a Program as a Background Program
  16527.  
  16528.  You use the run configuration command to specify a program that you want to
  16529.  be started as a background program when you start or restart your system.
  16530.  Suppose that you want to start a keyboard speed-up program called Fastype
  16531.  each time you start MS OS/2. If this program is located in the root
  16532.  directory of drive C, you would add the following line to your CONFIG.SYS
  16533.  file:
  16534.  
  16535.  run=c:\fastype.exe
  16536.  
  16537.  
  16538.  Keep the following points in mind when you use the call and run
  16539.  configuration commands:
  16540.  
  16541.    ■   You can specify multiple call and run commands in your CONFIG.SYS
  16542.        file.
  16543.  
  16544.    ■   You cannot specify a batch program with either the call or run
  16545.        command.
  16546.  
  16547.    ■   MS OS/2 processes call and run commands in the order in which they
  16548.        appear in the CONFIG.SYS file.
  16549.  
  16550.    ■   MS OS/2 processes all device commands before processing call and run
  16551.        commands.
  16552.  
  16553.    ■   Programs specified by the call and run commands are started before the
  16554.        user interface is initialized.
  16555.  
  16556.  
  16557.  
  16558.  
  16559.  Setting Up Code-Page Support
  16560.  
  16561.  
  16562.  MS OS/2 provides national-language support through the use of code pages. A
  16563.  code page is a set of 256 characters that MS OS/2 recognizes and processes.
  16564.  MS OS/2 currently supports four code pages: United States (437),
  16565.  Multilingual (850), Portuguese (860), and Canadian French (863). New
  16566.  programs, including Presentation Manager, use the multilingual code page. If
  16567.  you have a program that uses a different code page, you will need to set up
  16568.  the code page during installation or by modifying your CONFIG.SYS file.
  16569.  You can set up one code page for a single country, or you can set up two
  16570.  code pages to enable code-page switching. If you set up two code pages, you
  16571.  can use the chcp command to switch between them. This command is described
  16572.  in Chapter 8, "Running Cmd." You can also switch between the keyboard
  16573.  layouts of two different countries by using the keyb utility. This utility
  16574.  is described in Chapter 9, "Using MS OS/2 Utilities."
  16575.  
  16576.  If you are using the United States version of MS OS/2, the correct code-page
  16577.  information is set up automatically during installation. If, however, you
  16578.  want your keyboard, screen, and printer to be customized to support
  16579.  characters and keyboard layouts for countries other than the United States,
  16580.  you must modify the default code-page information.
  16581.  
  16582.  Normally, you modify code-page information during installation. On-screen
  16583.  messages prompt you for the country you want to support. The information you
  16584.  supply is written to your CONFIG.SYS file. If you want to change code-page
  16585.  information after installing MS OS/2, follow the instructions in this
  16586.  section to modify your CONFIG.SYS file.
  16587.  
  16588.  To set up code-page support for a country other than the United States, you
  16589.  must do the following:
  16590.  
  16591.    ■   Set the country code for the country for which you want code-page
  16592.        support by using the country configuration command.
  16593.  
  16594.    ■   Prepare the code page(s) for the system by using the codepage
  16595.        configuration command.
  16596.  
  16597.    ■   Prepare devices for use with the code page(s) you have prepared, by
  16598.        using the devinfo configuration command.
  16599.  
  16600.  
  16601.  The following sections describe how to use each of these commands in your
  16602.  CONFIG.SYS file.
  16603.  
  16604.  After you have specified the country code and code page(s) to be used, and
  16605.  after you have prepared devices for use with code pages, restart your
  16606.  computer. When you restart your computer, MS OS/2 reads the information in
  16607.  your CONFIG.SYS file and loads the proper code page(s) in memory.
  16608.  
  16609.  
  16610.  Supported Countries
  16611.  
  16612.  
  16613.  The following list shows each country (or group of countries) that is
  16614.  supported by MS OS/2, and its related country code, default code-page
  16615.  assignment (assigned during the installation of MS OS/2, when you choose the
  16616.  country), keyboard code, and keyboard subcode. The primary code page is
  16617.  listed first, followed by the secondary code page. You use the values in
  16618.  this list when you add the country, codepage, and devinfo configuration
  16619.  commands to your CONFIG.SYS file, and when you use the keyb utility.
  16620. ╓┌─────────────────────┌────────┌────────┌─────────┌─────────────────────────╖
  16621.                        Country  Code     Keyboard  Keyboard
  16622.  Country               code     pages    code      subcode
  16623.  ────────────────────────────────────────────────────────────────────────────
  16624.  Australia             061      437,850  ─         ─
  16625.  Belgium               032      850,437  BE        120
  16626.  Canada (French)       002      863,850  CF        058
  16627.  Denmark               045      850      DK        159
  16628.  Finland               358      850,437  SU        153
  16629.  France                033      437,850  FR        189, 120
  16630.  Germany               049      850,437  GR        129
  16631.  Italy                 039      437,850  IT        141, 142
  16632.  Latin America         003      437,850  LA        171
  16633.  Netherlands           031      850,437  NL        143
  16634.                        Country  Code     Keyboard  Keyboard
  16635.  Country               code     pages    code      subcode
  16636.  ────────────────────────────────────────────────────────────────────────────
  16637. Netherlands           031      850,437  NL        143
  16638.  Norway                047      850      NO        155
  16639.  Portugal              351      850,860  PO        163
  16640.  Spain                 034      850,437  SP        172
  16641.  Sweden                046      850,437  SV        153
  16642.  Switzerland (French)  041      850,437  SF        150F
  16643.  Switzerland (German)  041      850,437  SG        150G
  16644.  United Kingdom        044      437,850  UK        166, 168
  16645.  United States         001      437,850  US        103
  16646.  
  16647.  
  16648.  
  16649.  
  16650.  ────────────────────────────────────────────────────────────────────────────
  16651.  Note
  16652.  
  16653.  Although they are not shown in the list, the following code pages are
  16654.  available with special versions of MS OS/2: Arabic, Asia, Hebrew, Japan,
  16655.  Korea, People's Republic of China, and Taiwan.
  16656.  ────────────────────────────────────────────────────────────────────────────
  16657.  
  16658.  
  16659.  
  16660.  
  16661.  Setting the Country Code
  16662.  
  16663.  
  16664.  To define country-dependent information such as time, date, and
  16665.  urrency conventions, use the country configuration command. To use this
  16666.  command, you type country= followed by the country code. If your COUNTRY.SYS
  16667.  file is not in the root directory of your start-up drive, you type the
  16668.  drive, directory path, and filename after the country code.
  16669.  For example, if your COUNTRY.SYS file is in the OS2 directory on drive C,
  16670.  you would type the following to specify the country code for France:
  16671.  
  16672.  country=,c:\os2\country.sys
  16673.  
  16674.  
  16675.  The country code 033 sets country-specific information for France.
  16676.  
  16677.  
  16678.  Preparing Code Pages
  16679.  
  16680.  To select the code page(s) that will be prepared for use, use the codepage
  16681.  configuration command. To use this command, you type codepage= followed by
  16682.  one or two code-page numbers. (If you are preparing two code pages, separate
  16683.  the two numbers with a comma.)
  16684.  
  16685.  Valid code-page numbers are as follows:
  16686.  
  16687.  Number                            Code page
  16688.  ────────────────────────────────────────────────────────────────────────────
  16689.  
  16690.  437                               United States
  16691.  
  16692.  850                               Multilingual
  16693.  
  16694.  860                               Portuguese
  16695.  
  16696.  863                               Canadian French
  16697.  
  16698.  For example, to prepare code pages 437 (United States) and 850
  16699.  (Multilingual), type the following:
  16700.  
  16701.  codepage=,850
  16702.  
  16703.  
  16704.  If you prepare two code pages, you can use the chcp command to switch back
  16705.  and forth between the two character sets. See the Microsoft Operating
  16706.  System/2 Command Reference for the charac- ter sets for code pages 437, 850,
  16707.  860, and 863.
  16708.  
  16709.  
  16710.  Preparing Devices for Use with Code Pages
  16711.  
  16712.  
  16713.  To prepare your keyboard, screen, and printer so that they can use the code
  16714.  pages that you specified with the codepage configuration command, use the
  16715.  devinfo configuration command. If you want to be able to switch code pages,
  16716.  one devinfo command is required for each device you prepare. The devinfo
  16717.  command for your keyboard specifies your keyboard layout and the file that
  16718.  contains the keyboard-translation tables. To set up your keyboard for use
  16719.  with code pages, you type devinfo=kbd followed by a keyboard code and the
  16720.  drive, directory path, and name of the file containing the
  16721.  keyboard-translation table. By default, MS OS/2 supplies
  16722.  keyboard-translation tables in a file called KEYBOARD.DCP.
  16723.  For example, to prepare a French keyboard for use with code pages, place the
  16724.  following line in your CONFIG.SYS file:
  16725.  
  16726.  devinfo=kbd,fr,c:\os2\keyboard.dcp
  16727.  
  16728.  
  16729.  .ET The devinfo command for your screen specifies the type of screen (either
  16730.  EGA or VGA) and the file that contains a video-font table for displaying
  16731.  characters in each of the supported code pages. To set up your screen for
  16732.  use with code pages, you type devinfo=scr followed by the type of graphics
  16733.  adapter you have and the drive, directory path, and name of the file that
  16734.  contains the system code pages for the screen. The file VIOTBL.DCP contains
  16735.  the screen-translation table.
  16736.  
  16737.  For example, to prepare an EGA display for use with code pages, place the
  16738.  following line in your CONFIG.SYS file:
  16739.  
  16740.  devinfo=scr,ega,c:\os2\viotbl.dcp
  16741.  
  16742.  
  16743.  The devinfo command for your printer specifies the printer type, the printer
  16744.  name, and the file that contains a printer-font table for each code page
  16745.  supported by MS OS/2. To set up your printer for use with code pages, you
  16746.  type devinfo= followed by the port name, the printer name, and the drive,
  16747.  directory path, and name of the file that contains the printer-font tables.
  16748.  
  16749.  For example, to prepare an IBM 4201 printer that is connected to the LPT1
  16750.  printer port for use with code pages, you would add the following line to
  16751.  your CONFIG.SYS file:
  16752.  
  16753.  devinfo=lpt1,4201,c:\os2\4201.dcp
  16754.  
  16755.  
  16756.  If your computer includes code-page information in read-only memory (ROM),
  16757.  specify the code page and font-identification number for each .RT ROM or
  16758.  printer cartridge by using the ROM specification after the name of the file
  16759.  containing the printer-font table. If you do not specify multiple fonts or
  16760.  font-identification numbers, the devinfo command uses zero as the
  16761.  font-identification number.
  16762.  
  16763.  For example, to prepare an IBM 4201 printer that is connected to printer
  16764.  port LPT1 for use with code page 437 that is contained in ROM, add the
  16765.  following line to your CONFIG.SYS file:
  16766.  
  16767.  devinfo=lpt1,4201,c:\os2\4201.dcp,rom=(437,0)
  16768.  
  16769.  
  16770.  Remember that you must have one devinfo command for each device on your
  16771.  system if you want to be able to switch code pages.
  16772.  
  16773.  
  16774.  Controlling System Tracing
  16775.  
  16776.  The system trace is a record of actions, such as hardware interrupts or
  16777.  functions, that are taken or processed by the operating system while it
  16778.  runs. Recording these events can be helpful in developing programs for MS
  16779.  OS/2. There are two configuration commands that control system tracing:
  16780.  tracebuf and trace. (There are also two utilities you can use to control
  16781.  system tracing: trace and tracefmt. For information about these utilities,
  16782.  see the Microsoft Operating System/2 Command Reference.)
  16783.  
  16784.  
  16785.  Setting the Size of the System-Trace Buffer
  16786.  
  16787.  To set the size of the system-trace buffer, you place a tracebuf command in
  16788.  your CONFIG.SYS file. The system-trace buffer is where system-trace events
  16789.  are stored. If you enable tracing but do not specify the size of the trace
  16790.  buffer, a 4K buffer is automatically set up for you. To use the tracebuf
  16791.  command, type tracebuf= followed by the size of the trace buffer (in
  16792.  kilobytes). The size can be from 1 through 63K. For example, to set up a
  16793.  trace buffer of 8K, add the following line to your CONFIG.SYS file:
  16794.  
  16795.  tracebuf=
  16796.  
  16797.  
  16798.  A trace buffer of between 4 and 8K is enough for most trace activities.
  16799.  
  16800.  
  16801.  Turning Tracing On or Off
  16802.  
  16803.  To turn tracing on or off for some or all events, you use the trace
  16804.  configuration command. To use this command, you should specify an event code
  16805.  that corresponds to a type of system activity, such as file-system events.
  16806.  The event code must be a decimal number from zero through 255. To turn
  16807.  tracing on, type trace=on followed by one or more event codes. Typing
  16808.  trace=on without an event code records all system-trace events. To turn
  16809.  tracing off, type trace=off followed by one or more event codes. Typing
  16810.  trace=off without an event code cancels the recording of all system-trace
  16811.  events.
  16812.  
  16813.  You can turn tracing on for specified event codes. For example, to turn on
  16814.  only the system-trace events zero and 1, add the following lines to your
  16815.  CONFIG.SYS file:
  16816.  
  16817.  trace=off
  16818.  trace=on 0, 1
  16819.  
  16820.  
  16821.  You can also selectively turn tracing off for certain events. If you want to
  16822.  turn tracing on for all events except 31 through 34, add the following lines
  16823.  to your CONFIG.SYS file:
  16824.  
  16825.  trace=on
  16826.  trace=off 31, 32, 33, 34
  16827.  
  16828.  
  16829.  You can use the tracefmt utility to view trace-event records. For more
  16830.  information about using tracefmt, see the Microsoft Operating System/2
  16831.  Command Reference.
  16832.  
  16833.  
  16834.  
  16835.  
  16836.  
  16837.  
  16838.  Chapter 16  Using the High-Performance File System
  16839.  ────────────────────────────────────────────────────────────────────────────
  16840.  
  16841.  
  16842.  
  16843.  
  16844.  Introduction
  16845.  
  16846.  A new feature of MS OS/2 is the capability for multiple file systems to
  16847.  exist under one operating system. The original file allocation table (FAT)
  16848.  file system is still present, but you can install additional file systems as
  16849.  well. In MS OS/2, an additional file system is referred to as an installable
  16850.  file system (IFS).
  16851.  
  16852.  One installable file system you can use is the high-performance file system
  16853.  (HPFS). HPFS completes the tasks of writing to and reading from your hard
  16854.  disk much faster than the FAT file system can. HPFS also allows you to use
  16855.  up to 254 characters, including some characters not allowed in the FAT file
  16856.  system, when naming files and directories; this lets you create more
  16857.  descriptive names.
  16858.  
  16859.  HPFS uses disk caching and lazy writing to speed up reading and writing
  16860.  tasks. In most cases, when a program needs to write information to the hard
  16861.  disk, it is not necessary that the information be written immediately. When
  16862.  you use HPFS, information that a program sends to be written to the disk is
  16863.  temporarily stored in a cache in memory. This is called disk caching. Later,
  16864.  when the disk would otherwise be idle, HPFS writes the information to the
  16865.  disk as a background activity. This is called lazy writing.
  16866.  
  16867.  This chapter describes how to install and use HPFS. It explains some of the
  16868.  choices you make when you install HPFS and describes the utilities that run
  16869.  differently in HPFS.
  16870.  
  16871.  
  16872.  Installing HPFS
  16873.  
  16874.  You can install HPFS in two ways: by using the MS OS/2 installation program
  16875.  or by copying the HPFS files to your hard disk and adding information to
  16876.  your CONFIG.SYS file. .ET
  16877.  
  16878.  If you choose to format the primary partition during the installation of MS
  16879.  OS/2, you must also choose which file system to use. You can choose either
  16880.  HPFS or the FAT file system. You can format the primary partition to use one
  16881.  file system and format the extended partition to use the other. For example,
  16882.  you might format the primary partition to use HPFS and format the extended
  16883.  partition to use the FAT file system. If you have chosen to use the
  16884.  dual-boot option on your hard disk, however, you cannot format your primary
  16885.  partition to use HPFS. If you choose to install dual boot and format an
  16886.  extended partition to use HPFS, you will not be able to use the HPFS
  16887.  partition when you are running DOS. The dual-boot option is described in
  16888.  Appendix B, "Using MS OS/2 Dual Boot." .RT To install HPFS on your primary
  16889.  partition by using the MS OS/2 installation program, follow these steps:
  16890.  
  16891.    1.  Insert the MS OS/2 Install disk in drive A and restart your system by
  16892.        pressing CTRL+ALT+DEL.
  16893.  
  16894.    2.  Follow the installation instructions on your screen to create, size,
  16895.        and format the HPFS primary partition. The installation program copies
  16896.        the HPFS and MS OS/2 information to your hard disk.
  16897.  
  16898.    3.  When the installation program has finished, restart your system by
  16899.        pressing CTRL+ALT+DEL.
  16900.  
  16901.  
  16902.  If you already have MS OS/2 (version 1.2 or higher) installed and running on
  16903.  your computer, you can install HPFS on the extended partition without going
  16904.  through the installation program again. To do this, follow these steps:
  16905.  
  16906.    1.  Either use Fixed Disk Utility to create an extended partition and
  16907.        logical drive on your hard disk or use an existing extended partition.
  16908.        (For information about Fixed Disk Utility, see Chapter 13, "Setting Up
  16909.        Your Hard Disk.")
  16910.  
  16911.    2.  Using System Editor or another text editor, add the following lines to
  16912.        the beginning of your CONFIG.SYS file:
  16913.  
  16914.  ifs=c:\os2\hpfs.ifs /c:64
  16915.  run=c:\os2\cache.exe /lazy:on
  16916.  
  16917.  
  16918.  
  16919.  
  16920.  
  16921.    3.  Using System Editor or another text editor, remove any diskcache
  16922.        configuration commands from your CONFIG.SYS file.
  16923.  
  16924.    4.  Close all running programs, then restart your system by pressing
  16925.        CTRL+ALT+DEL.
  16926.  
  16927.    5.  Format the new logical drive to use HPFS, by using the format utility
  16928.        with the /fs:hpfs option. For example, if the new logical drive is
  16929.        drive D, type the following:
  16930.  
  16931.  format d: /fs:hpfs
  16932.  
  16933.  
  16934.  
  16935.  
  16936.  
  16937.  
  16938.  
  16939.  Using Files and Directories in HPFS
  16940.  
  16941.  In HPFS, you can give files and directories more descriptive names than you
  16942.  can in the FAT file system. When using these HPFS nam- ing features, you
  16943.  need to be aware of how HPFS names work with MS OS/2. Naming rules and the
  16944.  interaction of HPFS filenames with MS OS/2 are described in the following
  16945.  sections. (For rules on nam- ing FAT files and directories, see Chapter 3,
  16946.  "Using File Manager.")
  16947.  
  16948.  
  16949.  Naming HPFS Files and Directories
  16950.  
  16951.  HPFS file and directory names may include several features that are not
  16952.  available in the FAT file system:
  16953.  
  16954.    ■   File and directory names can be up to 254 characters long. (In the FAT
  16955.        file system, there is a limit of 8-character filenames and 3-character
  16956.        filename extensions.) Paths and filenames together can be up to 259
  16957.        characters long.
  16958.  
  16959.    ■   Blank spaces and periods (.) can occur anywhere in the file or
  16960.        directory name. However, blanks and/or periods that occur at the end
  16961.        of a name are not treated by MS OS/2 as a significant part of the
  16962.        name. For example, the filenames "xyz", "xyz.", "xyz. ", and "xyz ."
  16963.        are stored by MS OS/2 as "xyz".
  16964.  
  16965.    ■   The following characters can be used in naming HPFS files and
  16966.        directories:
  16967.  
  16968.  \, + = [ ] ;
  16969.  
  16970.  
  16971.        Note that the following characters are not currently allowed in any
  16972.        file system with MS OS/2:
  16973.  
  16974.  < > : " / \ | * ?
  16975.  
  16976.  
  16977.  
  16978.  
  16979.    ■   You can use uppercase, lowercase, or mixed case when naming HPFS files
  16980.        and directories; the name is displayed in the directory list just as
  16981.        you typed it. However, MS OS/2 ignores case in comparing file and
  16982.        directory names─for example, "Taxfile", "TAXFILE", and "taxfile" are
  16983.        the same filename to MS OS/2; only one can exist in a given directory.
  16984.  
  16985.  
  16986.  
  16987.  
  16988.  Using HPFS File and Directory Names with Commands
  16989.  
  16990.  You must enclose any blanks or special characters in double quotation marks
  16991.  when you type an HPFS filename or directory name on the command line so that
  16992.  MS OS/2 will recognize that they are part of the name. You can put the
  16993.  double quotation marks around the entire name or around just the blanks and
  16994.  special characters. For example, to copy a file named "My Tax File,
  16995.  1988.txt" to a directory on drive C named "Current Taxes", you can type
  16996.  either of the following:
  16997.  
  16998.  copy "My Tax File, 1988.txt" c:\e"Current Taxes"
  16999.  copy My" "Tax" "File", "1988.txt c:\e\Current" "Taxes
  17000.  
  17001.  
  17002.  You must also use double quotation marks any time a file or directory that
  17003.  uses the HPFS naming features is listed in batch programs.
  17004.  
  17005.  
  17006.  Transferring HPFS Files and Directories
  17007.  
  17008.  Because not all file systems support the use of HPFS naming features, you
  17009.  must be careful when copying and moving files between file systems. In
  17010.  general, HPFS file and directory names that use HPFS naming features cannot
  17011.  be transferred from HPFS to the FAT file system. However, these names can be
  17012.  preserved in the file's extended attributes when you transfer the file. For
  17013.  example, if you copy or move a file that uses HPFS naming features between
  17014.  file systems by using File Manager, you have the option of preserving the
  17015.  HPFS name in the file's extended attributes. (If you use the copy or move
  17016.  command at the command prompt, you must rename the file; the HPFS filename
  17017.  is lost.)
  17018.  
  17019.  Copying a File or Directory
  17020.  
  17021.  By using File Manager, you can copy a file or directory between two
  17022.  different file systems without losing the HPFS name. File Manager gives you
  17023.  the option of preserving the name in an extended attribute. The following
  17024.  example describes one method of copying a file by using File Manager; you
  17025.  also can use other methods to copy files. For more information, see Chapter
  17026.  3, "Using File Manager." To copy a file with an HPFS name from a drive that
  17027.  uses HPFS to a drive that uses the FAT file system, follow these steps:
  17028.  
  17029.    1.  Switch to the Main-group window and choose File Manager.
  17030.  
  17031.    2.  Open the directory window that contains the file you want to copy.
  17032.  
  17033.    3.  Select the file you want to copy.
  17034.  
  17035.    4.  Select the File menu and choose the Copy command. The Copy dialog box
  17036.        appears.
  17037.  
  17038.    5.  In the To text box, type the drive letter of the FAT file-system drive
  17039.        you want to copy the file to. (You can specify a floppy-disk drive.)
  17040.  
  17041.    6.  Choose the Copy button.
  17042.  
  17043.    7.  If you have chosen to confirm all proposed FAT file-system names, the
  17044.        Confirm dialog box appears. (To confirm proposed filenames, select the
  17045.        Options menu and choose the Confirmation command.) Choose the Copy
  17046.        button to accept the proposed filename, or type a new filename and
  17047.        choose the Copy button. Another dialog box appears if a file with the
  17048.        proposed filename already exists.
  17049.  
  17050.  
  17051.  
  17052.  Moving a File or Directory
  17053.  
  17054.  You can move a file or directory between different file systems by using
  17055.  File Manager; the method is very similar to copying a file or directory.
  17056.  When you use File Manager to move a file or directory, you have the option
  17057.  of preserving a name that uses HPFS naming features in an extended
  17058.  attribute. For more information about moving files and directories using
  17059.  File Manager, see Chapter 3, "Using File Manager."
  17060.  
  17061.  ────────────────────────────────────────────────────────────────────────────
  17062.  Note
  17063.  
  17064.  In HPFS, you can change the case of a file or directory name (for example,
  17065.  from uppercase to lowercase) by using the move or the rename command and
  17066.  giving the file or directory a new name. You can use the Move or Rename
  17067.  command available in File Manager or type the command at the command prompt;
  17068.  when you type the new name, use the case you want the name to have. For
  17069.  example, to change MYTAXFILE.TXT to lowercase from the command line, you
  17070.  would type the following:
  17071.  ────────────────────────────────────────────────────────────────────────────
  17072.  
  17073.  
  17074.  move MYTAXFILE.TXT mytaxfile.txt
  17075.  
  17076.  
  17077.  
  17078.  
  17079.  Preserving HPFS Names
  17080.  
  17081.  When File Manager copies or moves a file or directory that uses HPFS naming
  17082.  features from HPFS to the FAT file system, it modifies the name for use in
  17083.  the FAT file system and stores the HPFS name in the .LONGNAME extended
  17084.  attribute.
  17085.  
  17086.  In general, File Manager generates proposed file and directory names as
  17087.  follows: .ET
  17088.  
  17089.    ■   The base of the name is the first eight characters or the characters
  17090.        up to the last period, whichever limit is encountered first.
  17091.  
  17092.    ■   Any periods or special characters in the base of the name are
  17093.        converted to underscores (_).
  17094.  
  17095.    ■   The first three characters after the last period become the filename
  17096.        extension. (If there is no period in the filename, the proposed
  17097.        filename has no extension.)
  17098.  
  17099.  
  17100.  
  17101.  
  17102.  ────────────────────────────────────────────────────────────────────────────
  17103.  Note
  17104.  
  17105.  If you copy files from HPFS to MS-DOS or a version of MS OS/2 that does not
  17106.  support extended attributes (versions earlier than 1.2), HPFS names are
  17107.  lost.
  17108.  ────────────────────────────────────────────────────────────────────────────
  17109.  
  17110.  
  17111.  
  17112.  Copying or Moving a File or Directory from FAT to HPFS
  17113.  
  17114.  When you copy or move a file or directory from the FAT file system to HPFS,
  17115.  File Manager determines whether it has the .LONGNAME extended attribute.
  17116.  File Manager also checks to make sure that the destination file system can
  17117.  use extended attributes. If the extended .RT attribute exists and the
  17118.  destination file system can use it, the name is restored and the .LONGNAME
  17119.  extended attribute is deleted from the source file or directory. If you have
  17120.  chosen to confirm all name restorations, a dialog box appears, asking you to
  17121.  confirm the restored name. When you choose the Yes button, the name is
  17122.  restored and the extended attribute is deleted.
  17123.  
  17124.  
  17125.  Using HPFS Files with DOS and Earlier OS/2 Programs
  17126.  
  17127.  HPFS files and directories that use characters that FAT does not allow
  17128.  generally are not compatible with DOS programs or with programs written for
  17129.  earlier versions of MS OS/2.
  17130.  
  17131.  
  17132.  DOS Programs
  17133.  
  17134.  Because DOS uses the FAT file system, DOS programs are unable to process
  17135.  HPFS files whose names contain characters that are not allowed by FAT,
  17136.  multiple periods (...), or blank spaces immediately in front of the period
  17137.  preceding the filename extension (for example, "mytaxfile .txt"). When a DOS
  17138.  program attempts to access one of these files, the process is not completed
  17139.  correctly. For example, when you use the dir command in the DOS session,
  17140.  files and directories with long names or with spaces or characters not
  17141.  allowed by FAT do not appear in the directory list.
  17142.  
  17143.  Since DOS ignores case in file or directory names, names that use uppercase
  17144.  or mixed case but are otherwise acceptable are processed correctly.
  17145.  
  17146.  
  17147.  Earlier OS/2 Programs
  17148.  
  17149.  You can run a program written for MS OS/2 version 1.1 or earlier from a
  17150.  directory that uses HPFS naming features. However, like DOS programs,
  17151.  earlier OS/2 programs cannot process filenames or directory names that use
  17152.  the HPFS naming features.
  17153.  
  17154.  
  17155.  Using Wildcard Characters in HPFS
  17156.  
  17157.  You can use the asterisk (*) and question mark (?) wildcard characters in
  17158.  HPFS. Wildcard characters take the place of other characters when you
  17159.  specify filenames and directories in commands and utilities, and are
  17160.  especially useful when you work with groups of files.
  17161.  
  17162.  Generally, the asterisk matches zero or more characters in a filename. For
  17163.  example, suppose you have the following files:
  17164.  
  17165.  M
  17166.  MAY
  17167.  MAY.TXT
  17168.  MAY.TXT.BAK
  17169.  
  17170.  
  17171.  If you type may* when you are using the chdir, del, dir, or rmdir commands
  17172.  in HPFS, the files MAY, MAY.TXT, and MAY.TXT.BAK are matched. If you type *.
  17173.  instead, the files M and MAY are matched.
  17174.  
  17175.  When you use the copy, move, or rename commands in HPFS, the asterisk works
  17176.  a little differently. With each of these commands, you specify source and
  17177.  destination filenames. When you use the asterisk in the source filename, it
  17178.  works as previously described. However, when you use the asterisk in the
  17179.  destination filename, the system copies the characters that follow the
  17180.  asterisk to the destination filename. For example, if you type copy *.c
  17181.  *.bak, the copy command first finds all files that end with .C. Then it
  17182.  makes a copy of each file, using as the name of the new file the characters
  17183.  that precede the .C and adding the new .BAK extension.
  17184.  
  17185.  The question mark matches any single character in a filename except a period
  17186.  (.). For example, JUNE? matches JUNE, JUNE1, and JUNE2, but does not match
  17187.  JUNE3.TXT or JUNE.TXT.
  17188.  
  17189.  Wildcard characters are valid only in the filename that follows the last
  17190.  backslash (\) of a path.
  17191.  
  17192.  
  17193.  Running a Utility in HPFS
  17194.  
  17195.  Most MS OS/2 utilities
  17196.  work the same in different file systems. In the few cases in which this is
  17197.  not true, MS OS/2 determines which file system you are using and runs the
  17198.  utility for that file system. This section describes the following HPFS
  17199.  utilities, which work differently in HPFS than they do in the FAT file
  17200.  system:
  17201.  
  17202.    ■   format
  17203.  
  17204.    ■   chkdsk
  17205.  
  17206.    ■   recover
  17207.  
  17208.  
  17209.  
  17210.  
  17211.  Formatting a Disk
  17212.  
  17213.  Before you can use a hard or floppy disk, you must prepare it by using the
  17214.  format utility. You can use the format utility on new disks and on disks
  17215.  that have been formatted before. When you format a disk, any information it
  17216.  contained is lost. MS OS/2 formats a hard disk to use HPFS when you use the
  17217.  /fs option with the format utility. You cannot format a floppy disk to use
  17218.  HPFS. If you are running HPFS and you use the format utility to format a
  17219.  floppy disk, the disk is formatted as a FAT floppy disk. Suppose you want to
  17220.  format logical drive D on your hard disk to use HPFS. To do this, type the
  17221.  following:
  17222.  
  17223.  format d: /fs:hpfs
  17224.  
  17225.  
  17226.  There is no need to use the /t:tracks or /n:sectors options: HPFS always
  17227.  formats the disk to use the maximum number of tracks and sectors.
  17228.  
  17229.  
  17230.  Displaying Disk Information
  17231.  
  17232.  The chkdsk utility displays status information about
  17233.  a disk and checks a disk for errors. In HPFS, you use chkdsk as described in
  17234.  Chapter 12, "Maintaining Your System," except for the following:
  17235.  
  17236.    ■   Information about recovered files and extended attributes is stored in
  17237.        files named FILEnnnn
  17238.  
  17239.  
  17240.  
  17241.  
  17242.  
  17243.  Appendix A
  17244.  ────────────────────────────────────────────────────────────────────────────
  17245.  
  17246.  specify a sequential number assigned by MS OS/2.) .LI Recovered directories
  17247.  and their contents are stored as directories named DIRnnnn.CHK. (The
  17248.  characters nnnn specify a sequential number assigned by MS OS/2.) These
  17249.  files are stored in a new directory named FOUND, located in the root
  17250.  directory.
  17251.  
  17252.  
  17253.  Recovering a File from a Damaged Disk
  17254.  
  17255.  You can use the recover utility to recover a file that has been stored in a
  17256.  bad sector on your hard disk. This utility can recover individual files
  17257.  only; it cannot recover an entire disk. To recover a file, you type recover
  17258.  followed by the name of the file to be recovered.
  17259.  
  17260.  The recover utility gives a recovered file its original filename, if
  17261.  possible. If the original filename cannot be restored, recover creates the
  17262.  file FILEnnnn.REC in the directory where the original file existed. (The
  17263.  characters nnnn specify a sequential number assigned by MS OS/2.)
  17264.  
  17265.  If the sector(s) containing a damaged file cannot be recovered, the recover
  17266.  utility retains the original file size by filling the unrecovered portion of
  17267.  the file with zeros.
  17268.  
  17269.  If no errors are found in a file's extended attributes, the recover utility
  17270.  preserves the extended attributes. If errors are found in the extended
  17271.  attributes, the recover utility recovers as many of the attributes as
  17272.  possible and stores them in a file named EAnnnn.REC. (The characters nnnn
  17273.  specify a sequential number assigned by MS OS/2.)
  17274.  
  17275.  
  17276.  Quitting HPFS
  17277.  
  17278.  It is important to use the Shutdown command to quit MS OS/2 when you are
  17279.  using the high-performance file system (HPFS). The Shutdown command (on the
  17280.  Desktop menu in Desktop Manager) saves any files that had been unsaved and
  17281.  closes the file system in an orderly fashion.
  17282.  
  17283.  If you do not use the Shutdown command to quit MS OS/2, the next time you
  17284.  restart your computer using HPFS or access an HPFS drive you may receive a
  17285.  message telling you that the drive may be in an inconsistent state. If you
  17286.  receive this message, prevent the loss of data by using the chkdsk utility
  17287.  to check your disk for errors. To use the chkdsk utility to fix errors on
  17288.  your HPFS drive, follow this step:
  17289.  
  17290.    ■   Type chkdsk followed by the HPFS drive letter and the /f option and
  17291.        press ENTER. For example, to fix the errors on logical drive D, which
  17292.        has been formatted to use HPFS, you would type the following:
  17293.  
  17294.  chkdsk d: /f
  17295.  
  17296.  
  17297.  
  17298.  
  17299.  
  17300.  If you have more than one HPFS-formatted drive, you must use the chkdsk
  17301.  utility to fix the errors on each of them.
  17302.  
  17303.  
  17304.  
  17305.  
  17306.  
  17307.  
  17308.  Chapter 17  Using MS OS/2 Device Drivers
  17309.  ────────────────────────────────────────────────────────────────────────────
  17310.  
  17311.  
  17312.  
  17313.  
  17314.  Introduction
  17315.  
  17316.  A device driver is a program that gives information to MS OS/2 about how to
  17317.  use a device in your system. MS OS/2 contains various device drivers,
  17318.  including a device driver for the keyboard, screen, printer, floppy-disk
  17319.  drive, hard-disk drive, and clock. MS OS/2 automatically loads this driver
  17320.  during installation.
  17321.  
  17322.  MS OS/2 also contains device drivers that you use with optional devices.
  17323.  Optional devices include a serial communications port, an external
  17324.  floppy-disk drive, and a pointing device such as a mouse. You need to set up
  17325.  the drivers for these optional devices, since MS OS/2 does not load them
  17326.  automatically.
  17327.  
  17328.  There are additional MS OS/2 device drivers that work with a device in your
  17329.  system to support or enhance its capabilities. These include drivers for
  17330.  using ANSI escape sequences and virtual disk drives. These drivers also need
  17331.  to be set up.
  17332.  
  17333.  In addition to the many device drivers MS OS/2 offers, device drivers are
  17334.  generally provided with any devices you might purchase.
  17335.  
  17336.  For more information about using a specific device driver, see the entry for
  17337.  that driver in the Microsoft Operating System/2 Command Reference.
  17338.  
  17339.  
  17340.  Setting Up an MS OS/2 Device Driver
  17341.  
  17342.  You set up a device driver in MS OS/2 by using the device configuration
  17343.  command to specify the name of the driver to load and its location in your
  17344.  system. (The device command is described in Chapter 15, "Using MS OS/2
  17345.  Configuration Commands.") This chapter describes the device drivers that you
  17346.  need to set up.
  17347.  
  17348.  In general, if a device driver is not located in the root directory of the
  17349.  disk from which you start your system, you need to specify the full path of
  17350.  the device driver in the device command. You can set up a device driver in
  17351.  your system when you install MS OS/2, or you can use the ddinstal utility to
  17352.  set one up later, without running the installation program again. Ddinstal
  17353.  copies device-driver files to your system and adds the appropriate device
  17354.  command to your CONFIG.SYS file. To use the ddinstal program, follow these
  17355.  steps:
  17356.  
  17357.    1.  At the MS OS/2 command prompt, type ddinstal and press the ENTER key.
  17358.  
  17359.    2.  Insert the disk that contains the device driver to be installed and
  17360.        press ENTER.
  17361.  
  17362.    3.  Ddinstal lists any .DDP (device-driver profile) files it finds. Select
  17363.        the device driver you want set up from the list and press ENTER. (You
  17364.        can select more than one driver.)
  17365.  
  17366.    4.  When prompted, insert the MS OS/2 Install disk and restart your system
  17367.        by pressing CTRL+ALT+DEL. (Although you use the Install disk, you will
  17368.        not go through the complete installation process again.) When the
  17369.        system restarts, the ddinstal utility continues to install the device
  17370.        driver.
  17371.  
  17372.    5.  When the program is finished, remove the Install disk and restart your
  17373.        system.
  17374.  
  17375.  
  17376.  
  17377.  
  17378.  Changing a Display Device Driver
  17379.  
  17380.  During installation, MS
  17381.  OS/2 determines what kind of display you have and loads the appropriate
  17382.  display device driver. If you replace your display, you may need to change
  17383.  the display driver. The following section describes how to change a display
  17384.  driver without running the installation program again. To change the display
  17385.  driver, follow these steps:
  17386.  
  17387.    1.  Define the VIDEO_DEVICES environment variable by using the set
  17388.        configuration command in your CONFIG.SYS file and listing one or more
  17389.        environment variables that describe video device handlers. For
  17390.        example, to use an IBM Enhanced Graphics Adapter, define the
  17391.        VIDEO_DEVICES environment variable by placing the following line in
  17392.        your CONFIG.SYS file:
  17393.  
  17394.  set video_devices=vio_ibmega
  17395.  
  17396.  
  17397.  
  17398.  
  17399.    2.  Define the environment variable that you specified with the set
  17400.        video_devices command, by specifying a video device handler.
  17401.  
  17402.  
  17403.  Each video device handler is made up of one or more components that provide
  17404.  a set of functions to be used by a specific display adapter.
  17405.  
  17406.  Using the example from step one of the preceding list, you would define the
  17407.  VIO_IBMEGA variable by specifying the BVHEGA.DLL dynamic-link library,
  17408.  placing the following line in your CONFIG.SYS file:
  17409.  
  17410.  set vio_ibmega=device(bvhega)
  17411.  
  17412.  
  17413.  As another example, suppose you were using an IBM 8514 display attached to
  17414.  an IBM 8514A display adapter. You would need to place the following lines in
  17415.  your CONFIG.SYS file:
  17416.  
  17417.  set video_devices=vio_ibm8514a
  17418.  set vio_ibm8514a=device(bvhvga,bvh8514a)
  17419.  
  17420.  
  17421.  In the preceding example, the BVHVGA.DLL and BVH8514A.DLL dynamic-link
  17422.  libraries both support the IBM 8514A display adapter.
  17423.  
  17424.  You can also specify the use of two displays. The following example shows
  17425.  the configuration commands you would specify if you were using both an IBM
  17426.  8514 display attached to an IBM 8514A display adapter and an IBM PS/2
  17427.  display attached to a VGA adapter:
  17428.  
  17429.  set video_devices=vio_ibmvga,vio_ibm8514a
  17430.  set vio_ibmvga=device(bvhvga)
  17431.  set vio_ibm8514a=device(bvh8514a)
  17432.  
  17433.  
  17434.  You may need to specify an additional display driver so that MS OS/2 can
  17435.  make use of the graphics functions of your display adapter while you are in
  17436.  the DOS session. You would do this by specifying the EGA.SYS device driver
  17437.  in the device configuration command in your CONFIG.SYS file, as follows:
  17438.  
  17439.  device=c:\os2\ega.sys
  17440.  
  17441.  
  17442.  This example directs MS OS/2 to look for the EGA.SYS device driver in the
  17443.  OS2 directory on drive C.
  17444.  
  17445.  
  17446.  Using ANSI Escape Sequences
  17447.  
  17448.  You can use ANSI escape sequences in the DOS session by setting up the
  17449.  ANSI.SYS device driver. ANSI escape sequences let you move the cursor, set
  17450.  the color for characters, and set the number of character rows and columns
  17451.  for the screen. Many programs use ANSI escape sequences to format screen
  17452.  output. In most cases, your program generates any ANSI escape sequences that
  17453.  are used. For example, terminal-emulation programs often pass ANSI escape
  17454.  sequences from a program on a mainframe computer to the screen. The ANSI
  17455.  escape sequences are correctly displayed only if the ANSI.SYS device driver
  17456.  is set up. You can direct MS OS/2 to load the ANSI.SYS device driver by
  17457.  adding the following line to your CONFIG.SYS file:
  17458.  
  17459.  device=ansi.sys
  17460.  
  17461.  
  17462.  This example directs MS OS/2 to load the ANSI.SYS driver from the root
  17463.  directory of the drive from which you start your system. When MS OS/2 loads
  17464.  the device driver, it enables the ANSI escape sequences for the DOS session.
  17465.  (Support for ANSI escape sequences is automatically available in OS/2
  17466.  sessions. You can turn off ANSI support by using the ansi utility.)
  17467.  
  17468.  If the ANSI.SYS driver is not located in the root directory, you need to
  17469.  specify the complete path, as follows:
  17470.  
  17471.  device=c:\os2\ansi.sys
  17472.  
  17473.  
  17474.  This example directs MS OS/2 to load the ANSI.SYS driver from the OS2
  17475.  directory.
  17476.  
  17477.  If you need to design a screen display in a program you are writing, you may
  17478.  want to use ANSI escape sequences. Each escape sequence is a series of
  17479.  characters that begins with the escape character (ASCII code 27). For a list
  17480.  of the escape sequences and a description of what they do, see Appendix A,
  17481.  "ANSI Escape Sequences."
  17482.  
  17483.  
  17484.  Using a Serial Communications Port
  17485.  
  17486.  You can use the serial communications port by setting up the appropriate
  17487.  device driver for it. A communications port is an adapter to which the cable
  17488.  of a communications device is attached. Devices such as modems and serial
  17489.  printers are connected to this port.
  17490.  
  17491.  Before you set up a device driver for a communications port, you must choose
  17492.  the driver that works with your hardware. Refer to the following list to
  17493.  find the driver that matches your hardware:
  17494.  
  17495.  Driver                            Hardware
  17496.  ────────────────────────────────────────────────────────────────────────────
  17497.  
  17498.  COM01.SYS                         IBM PC/AT or compatible computer
  17499.  
  17500.  COM02.SYS                         IBM PS/2
  17501.  
  17502.  To direct MS OS/2 to load the COM01.SYS device driver from the OS2 directory
  17503.  on drive C, add the following line to your CONFIG.SYS file:
  17504.  
  17505.  device=c:\os2\com01.sys
  17506.  
  17507.  
  17508.  When this communications-port driver is loaded, MS OS/2 and DOS programs can
  17509.  use the serial communications ports on your IBM PC/AT (or compatible)
  17510.  computer.
  17511.  
  17512.  To use a communications port, you need to set up the port in addition to
  17513.  specifying the device driver. You set up a communications port by using
  17514.  Control Panel or by using the mode utility. (For information on the mode
  17515.  utility, see Chapter 12, "Maintaining Your System.")
  17516.  
  17517.  ────────────────────────────────────────────────────────────────────────────
  17518.  Note
  17519.  
  17520.  If you want to use the serial version of the Microsoft Mouse, the command
  17521.  lines in the CONFIG.SYS file must appear in the following order:
  17522.  ────────────────────────────────────────────────────────────────────────────
  17523.  
  17524.  
  17525.  device=c:\os2\pointdd.sys
  17526.  device=c:\os2\msser01.sys model=
  17527.  device=c:\os2\mouse.sys type=msser$
  17528.  device=c:\os2\com01.sys
  17529.  
  17530.  
  17531.  
  17532.  
  17533.  
  17534.  Using a Logical Drive Letter
  17535.  
  17536.  You can use a logical drive letter to name a floppy-disk drive by setting up
  17537.  the EXTDSKDD.SYS device driver. A logical drive letter, in this case, is a
  17538.  name for a physical disk drive. (The logical disk drives that you can set up
  17539.  in an extended partition on your hard disk are also parts of a physical disk
  17540.  drive, but they are different from the logical drives that you use with
  17541.  EXTDSKDD.SYS.) Using a logical drive letter, you can name an external disk
  17542.  drive, or you can assign a second name (an alias) to a disk drive and copy
  17543.  files to different places on the same disk drive. For example, to direct MS
  17544.  OS/2 to load the EXTDSKDD.SYS device driver from the OS2 directory on drive
  17545.  C, add the following line to your CONFIG.SYS file:
  17546.  
  17547.  device=c:\os2\extdskdd.sys /d:2
  17548.  
  17549.  
  17550.  When MS OS/2 loads the driver, your MS OS/2 and DOS programs can use an IBM
  17551.  external 720K 3-inch floppy-disk drive. By default, this logical drive has
  17552.  80 tracks, nine sectors per track, and two read/write heads. The next
  17553.  available drive letter is assigned to the logical drive.
  17554.  
  17555.  If you want to copy from a logical drive on the external disk drive to a
  17556.  different logical drive on the same disk, add the following lines to your
  17557.  CONFIG.SYS file:
  17558.  
  17559.  device=c:\os2\extdskdd.sys /d:2
  17560.  device=c:\os2\extdskdd.sys /d:2
  17561.  
  17562.  
  17563.  This example directs MS OS/2 to load the EXTDSKDD.SYS device driver. The
  17564.  first line associates the next available drive letter with the external disk
  17565.  drive. The second line associates an additional drive letter (an alias) with
  17566.  the same external drive. This allows you to copy data from the external disk
  17567.  drive to a logical drive on the same disk.
  17568.  
  17569.  
  17570.  Using a Mouse
  17571.  
  17572.  You can use a mouse with your DOS and MS OS/2 programs by setting up a mouse
  17573.  driver. Many programs, especially Presentation Manager applications, use the
  17574.  mouse if one is available. Although a mouse is not required, it makes
  17575.  working with these programs easier and quicker.
  17576.  
  17577.  
  17578.  Setting Up a Mouse Driver
  17579.  
  17580.  To set up a mouse driver, you must choose the driver that matches your mouse
  17581.  hardware and your computer. You specify the driver in your CONFIG.SYS file
  17582.  by using the device configuration command. The following list shows some of
  17583.  the mouse drivers that are available with MS OS/2. Each is for use with IBM
  17584.  PC/AT (and compatible) computers. These drivers contain information MS OS/2
  17585.  needs about a specific type of mouse.
  17586.  
  17587.  Driver                            Mouse
  17588.  ────────────────────────────────────────────────────────────────────────────
  17589.  
  17590.  MSBUS01.SYS                       Bus (parallel) Microsoft Mouse
  17591.  
  17592.  MSINP01.SYS                       InPort(R) (parallel) Microsoft Mouse
  17593.  
  17594.  MSSER01.SYS                       Serial Microsoft Mouse
  17595.  
  17596.  PCMOU01.SYS                       Mouse Systems PC Mouse
  17597.  
  17598.  VISION01.SYS                      Visi-On Mouse with IBM PC/AT
  17599.  
  17600.  When you use the serial version of the Microsoft Mouse, you must specify the
  17601.  model argument on the command line. Valid values are 099 (the mouse with
  17602.  green buttons) and 199 (the mouse with white buttons). For example, to use
  17603.  the Microsoft Mouse (serial version) that has white buttons, you would
  17604.  specify the mouse-dependent device driver as follows:
  17605.  
  17606.  device=c:\os2\msser01.sys model=
  17607.  
  17608.  
  17609.  No matter what type of mouse you use, you must always specify the following
  17610.  three files in your CONFIG.SYS file: the mouse-dependent device driver,
  17611.  shown in the preceding list; the mouse-independent device driver, MOUSE.SYS;
  17612.  and the device driver for the mouse pointer, POINTDD.SYS. You specify these
  17613.  files by using the device configuration command. The mouse-dependent driver
  17614.  must always be specified before the mouse-independent driver. For example,
  17615.  to direct MS OS/2 to load the drivers for the pointer and InPort version of
  17616.  the Microsoft Mouse, add the following lines to your CONFIG.SYS file:
  17617.  
  17618.  device=c:\os2\msinp01.sys
  17619.  device=c:\os2\mouse.sys type=msinp$
  17620.  device=c:\os2\epointdd.sys
  17621.  
  17622.  
  17623.  This example specifies that the pointer and mouse drivers are in the OS2
  17624.  directory of the start-up drive. When MS OS/2 loads these drivers, both MS
  17625.  OS/2 and DOS programs can use the InPort version of the Microsoft Mouse on
  17626.  an IBM PC/AT (or compatible) computer. The type argument on the MOUSE.SYS
  17627.  command line specifies the type of mouse you are using; this argument is
  17628.  required. The following list shows the possible values of type for some of
  17629.  the mouse drivers that are available with MS OS/2:
  17630.  
  17631.  Driver                            Type
  17632.  ────────────────────────────────────────────────────────────────────────────
  17633.  
  17634.  MSBUS01.SYS                       MSBUS$
  17635.  
  17636.  MSINP01.SYS                       MSINP$
  17637.  
  17638.  MSSER01.SYS                       MSSER$
  17639.  
  17640.  PCMOU01.SYS                       PCMOU$
  17641.  
  17642.  VISION01.SYS                      VISION$
  17643.  
  17644.  
  17645.  
  17646.  Changing How the Mouse Device Driver Operates
  17647.  
  17648.  When you specify the
  17649.  mouse-dependent device driver, you can also specify the serial port to which
  17650.  the mouse is connected. You do this by using the serial option. For example,
  17651.  to specify that your mouse is connected to the COM2 serial port, add the
  17652.  following line to your CONFIG.SYS file:
  17653.  
  17654.  device=c:\os2\msser01.sys model= serial=com2
  17655.  
  17656.  
  17657.  This example specifies that the serial version of the Microsoft Mouse is
  17658.  attached to the COM2 serial port.
  17659.  
  17660.  When you specify the mouse-independent device driver, MOUSE.SYS, you can
  17661.  also specify the sessions in which you will use the mouse. You do this by
  17662.  using the mode option. (Do not confuse the mode option of this command with
  17663.  the mode utility.) For example, to direct MS OS/2 to enable the serial
  17664.  version of the Microsoft Mouse in all sessions, add the following line to
  17665.  your CONFIG.SYS file:
  17666.  
  17667.  device=c:\os2\mouse.sys type=msser$ mode=b
  17668.  
  17669.  
  17670.  This example directs MS OS/2 to use the mouse driver in Presentation
  17671.  Manager, full-screen, and DOS sessions. To use the mouse only in
  17672.  Presentation Manager and full-screen sessions, change the value that is
  17673.  specified for the mode option to p (protected mode). To use the mouse only
  17674.  in the DOS session, change the value that is specified for the mode option
  17675.  to r (real mode).
  17676.  
  17677.  On the same device command line, you can also specify the qsize option. The
  17678.  qsize option lets you control how much information your program receives
  17679.  from the mouse. If you want to use the mouse with DOS applications, you also
  17680.  need to set up the EGA.SYS device driver. To direct MS OS/2 to load this
  17681.  driver, add the following line to your CONFIG.SYS file:
  17682.  
  17683.  device=c:\os2\ega.sys
  17684.  
  17685.  
  17686.  This example specifies that the EGA.SYS device driver is in the OS2
  17687.  directory on drive C.
  17688.  
  17689.  
  17690.  Using a Virtual Disk Drive
  17691.  
  17692.  You can use a virtual disk drive in
  17693.  full-screen and DOS sessions by setting up the VDISK.SYS device driver. When
  17694.  you use a virtual disk drive, your system simulates a disk drive in memory
  17695.  and provides quick access to files stored there. You may want to use a
  17696.  virtual disk as a place in which temporary files are stored. Since temporary
  17697.  files are deleted when they are no longer needed, there is no reason to save
  17698.  them on a disk. To direct MS OS/2 to load the VDISK.SYS device driver from
  17699.  the OS2 directory on drive C, add the following line to your CONFIG.SYS
  17700.  file:
  17701.  
  17702.  device=c:\os2\vdisk.sys
  17703.  
  17704.  
  17705.  This line must come after any device commands that load the EXTDSKDD.SYS
  17706.  device driver in your CONFIG.SYS file.
  17707.  
  17708.  If the driver is found, MS OS/2 loads it and creates a 64K virtual disk with
  17709.  128-byte sectors, 64 directory entries, and the name of the next available
  17710.  drive letter. (These are the default values.)
  17711.  
  17712.  Any information stored on a virtual disk is lost when your computer is
  17713.  restarted or turned off. If you use a virtual disk for temporary files, be
  17714.  sure to specify the appropriate drive letter with the set temp configuration
  17715.  command in your CONFIG.SYS file. This command tells MS OS/2 where to place
  17716.  all temporary files.
  17717.  
  17718.  You can have more than one virtual disk drive. Drive letters for virtual
  17719.  disks are assigned in the order in which the device commands appear in the
  17720.  CONFIG.SYS file. When you specify memory for a virtual disk, that memory is
  17721.  no longer available for other programs to use.
  17722.  
  17723.  You may want to increase the size of the virtual disk drive, since 64K is
  17724.  not very much space. You could do this by adding the following line to your
  17725.  CONFIG.SYS file:
  17726.  
  17727.  device=c:\os2\vdisk.sys 128
  17728.  
  17729.  
  17730.  This example creates a 128K virtual disk with 128-byte sectors and 64
  17731.  directory entries.
  17732.  
  17733.  You may also want to change the number of directory entries for the virtual
  17734.  disk drive. You could do this by adding the following line to your
  17735.  CONFIG.SYS file:
  17736.  
  17737.  device=c:\os2\vdisk.sys 256,128
  17738.  
  17739.  
  17740.  This example creates a 256K virtual disk with 128-byte sectors and 128
  17741.  directory entries. Note that a sector size is not specified; the place where
  17742.  it would be specified is designated by a comma. (If you wanted to specify
  17743.  all three values, you would separate them with spaces.)
  17744.  
  17745.  When you specify a value for the number of directory entries, the value is
  17746.  rounded up to the nearest sector-size boundary. For example, if you give a
  17747.  value of 25 and your sector size is 512 bytes, 25 will be rounded up to 32,
  17748.  which is the next multiple of 16. (There are sixteen 32-byte directory
  17749.  entries in 512 bytes.)
  17750.  
  17751.  The maximum size of a virtual disk depends on the amount of available memory
  17752.  in your system, but it cannot be larger than 4 megabytes. If the virtual
  17753.  disk size specified is too large to fit in memory, VDISK.SYS will attempt to
  17754.  make a virtual disk that is 16K. This may result in a virtual disk with a
  17755.  different number of directory entries than you specified.
  17756.  
  17757.  When you start or restart your system, MS OS/2 displays information about
  17758.  any virtual disk it creates. The information includes the assigned drive
  17759.  letter, the size of the virtual disk, its sector size, and the number of
  17760.  directory entries. You can also use the chkdsk utility to determine the size
  17761.  of a virtual disk.
  17762.  
  17763.  
  17764.  
  17765.  
  17766.  
  17767.  
  17768.  Part 4: Appendixes
  17769.  ────────────────────────────────────────────────────────────────────────────
  17770.  
  17771.  
  17772.  
  17773.  
  17774.  
  17775.  
  17776.  
  17777.  
  17778.  Appendix A  ANSI Escape Sequences
  17779.  ────────────────────────────────────────────────────────────────────────────
  17780.  
  17781.  
  17782.  
  17783.  
  17784.  Introduction
  17785.  
  17786.  This appendix lists all of the escape sequences that you can use with the
  17787.  ANSI.SYS device driver in the DOS session or with the ansi command in either
  17788.  a full-screen session or in a window running the MS OS/2 command
  17789.  interpreter, cmd.
  17790.  
  17791.  ANSI escape sequences affect cursor positioning, erase functions, and screen
  17792.  graphics.
  17793.  
  17794.  You must type the escape sequences exactly as shown, without spaces. Each
  17795.  escape sequence begins with the escape character (ASCII code 27) and the
  17796.  left-bracket character. (You cannot press the ESC key to produce the escape
  17797.  character.)
  17798.  
  17799.  
  17800.  Cursor Functions
  17801.  
  17802.  The following functions affect the movement of the cursor.
  17803.  
  17804.  
  17805.  Cursor Position
  17806.  
  17807.  
  17808.  esc[row;colH
  17809.  
  17810.  or
  17811.  
  17812.  esc[row;colf
  17813.  
  17814.  
  17815.  
  17816.  These escape sequences move the cursor to the position specified by the row
  17817.  and column arguments. When no arguments are provided, the cursor moves to
  17818.  the home position (the upper-left corner of the screen).
  17819.  
  17820.  
  17821.  Cursor Up
  17822.  
  17823.  
  17824.  esc[nA
  17825.  
  17826.  
  17827.  This escape sequence moves the cursor up n rows without changing columns. If
  17828.  the cursor is already on the top line, no action is taken.
  17829.  
  17830.  
  17831.  Cursor Down
  17832.  
  17833.  
  17834.  esc[nB
  17835.  
  17836.  
  17837.  This escape sequence moves the cursor down n rows without changing columns.
  17838.  If the cursor is already on the bottom row, no action is taken.
  17839.  
  17840.  
  17841.  Cursor Forward
  17842.  
  17843.  
  17844.  esc[nC
  17845.  
  17846.  
  17847.  This escape sequence moves the cursor forward n columns without changing
  17848.  lines. If the cursor is already in the far-right column, no action is taken.
  17849.  
  17850.  
  17851.  
  17852.  Cursor Backward
  17853.  
  17854.  
  17855.  esc[nD
  17856.  
  17857.  
  17858.  This escape sequence moves the cursor back n columns without changing lines.
  17859.  If the cursor is already in the far-left column, no action is taken.
  17860.  
  17861.  
  17862.  Save Cursor Position
  17863.  
  17864.  
  17865.  esc[s
  17866.  
  17867.  
  17868.  This escape sequence saves the current cursor position; the cursor can be
  17869.  returned to the saved position by using the Restore Cursor Position escape
  17870.  sequence.
  17871.  
  17872.  
  17873.  Restore Cursor Position
  17874.  
  17875.  
  17876.  esc[u
  17877.  
  17878.  
  17879.  This escape sequence restores the cursor to the position specified with the
  17880.  Save Cursor Position escape sequence.
  17881.  
  17882.  
  17883.  Erase Functions
  17884.  
  17885.  The following functions erase the screen.
  17886.  
  17887.  
  17888.  Erase Display
  17889.  
  17890.  
  17891.  esc[2J
  17892.  
  17893.  
  17894.  This escape sequence erases the contents of the screen and moves the cursor
  17895.  to the home position (the upper-left corner of the screen).
  17896.  
  17897.  
  17898.  Erase Line
  17899.  
  17900.  
  17901.  esc[K
  17902.  
  17903.  
  17904.  This escape sequence erases from the cursor to the end of the line
  17905.  (including the cursor position).
  17906.  
  17907.  
  17908.  Screen Graphics Functions
  17909.  
  17910.  The following functions affect screen graphics.
  17911.  
  17912.  
  17913.  Set Graphics Rendition
  17914.  
  17915.  
  17916.  esc[g; ... ;gm
  17917.  
  17918.  
  17919.  This escape sequence calls the graphics functions specified by the numeric
  17920.  values described in the following list. The specified functions remain in
  17921.  effect until the next occurrence of this escape sequence. This escape
  17922.  sequence works only if the screen device supports graphics.
  17923.  
  17924.  The g variable may have any of the following values:
  17925.  
  17926.  Value                             Function
  17927.  ────────────────────────────────────────────────────────────────────────────
  17928.  
  17929.  0                                 All attributes off
  17930.  
  17931.  1                                 Bold on
  17932.  
  17933.  2                                 Faint on
  17934.  
  17935.  3                                 Italic on
  17936.  
  17937.  5                                 Blink on
  17938.  
  17939.  6                                 Rapid-blink on
  17940.  
  17941.  7                                 Reverse video on
  17942.  
  17943.  8                                 Concealed on
  17944.  
  17945.  30                                Black foreground
  17946.  
  17947.  31                                Red foreground
  17948.  
  17949.  
  17950.  
  17951.  Value                             Function
  17952.  ────────────────────────────────────────────────────────────────────────────
  17953.  
  17954.  32                                Green foreground
  17955.  
  17956.  33                                Yellow foreground
  17957.  
  17958.  34                                Blue foreground
  17959.  
  17960.  35                                Magenta foreground
  17961.  
  17962.  36                                Cyan foreground
  17963.  
  17964.  37                                White foreground
  17965.  
  17966.  40                                Black background
  17967.  
  17968.  41                                Red background
  17969.  
  17970.  42                                Green background
  17971.  
  17972.  43                                Yellow background
  17973.  
  17974.  44                                Blue background
  17975.  
  17976.  45                                Magenta background
  17977.  
  17978.  46                                Cyan background
  17979.  
  17980.  47                                White background
  17981.  
  17982.  48                                Subscript
  17983.  
  17984.  49                                Superscript
  17985.  
  17986.  The values 30 through 47 meet the ISO 6429 standard.
  17987.  
  17988.  
  17989.  Set Mode
  17990.  
  17991.  
  17992.  esc[=sh
  17993.  
  17994.  
  17995.  This escape sequence changes some of the capabilities and features of the
  17996.  screen. The s variable can have any of the following values:
  17997.  
  17998.  Value                             Function
  17999.  ────────────────────────────────────────────────────────────────────────────
  18000.  
  18001.  0                                 40 * 25 black and white
  18002.  
  18003.  1                                 40 * 25 color
  18004.  
  18005.  2                                 80 * 25 black and white
  18006.  
  18007.  3                                 80 * 25 color
  18008.  
  18009.  
  18010.  
  18011.  Value                             Function
  18012.  ────────────────────────────────────────────────────────────────────────────
  18013.  
  18014.  4                                 320 * 200 color
  18015.  
  18016.  5                                 320 * 200 black and white
  18017.  
  18018.  6                                 640 * 200 black and white
  18019.  
  18020.  7                                 Wraps at the end of each line
  18021.  
  18022.  
  18023.  
  18024.  Reset Mode
  18025.  
  18026.  
  18027.  esc[=sl
  18028.  
  18029.  
  18030.  The values for this escape sequence are the same as for Set Mode, except
  18031.  that the value 7 turns off line wrapping.
  18032.  
  18033.  
  18034.  
  18035.  
  18036.  
  18037.  
  18038.  Appendix B  Using MS OS/2 Dual Boot
  18039.  ────────────────────────────────────────────────────────────────────────────
  18040.  
  18041.  
  18042.  
  18043.  
  18044.  Introduction
  18045.  
  18046.  This appendix describes how to install and use MS OS/2 dual boot on your
  18047.  computer. With dual boot, you can start MS OS/2 and DOS from the same hard
  18048.  disk.
  18049.  
  18050.  
  18051.  Installing Dual Boot
  18052.  
  18053.  In order to install MS OS/2 dual boot on your hard disk, you must already
  18054.  have either DOS (version 3.2 or higher) or an earlier version of MS OS/2
  18055.  dual boot installed on your computer. The MS OS/2 installation program does
  18056.  not install DOS on your computer.
  18057.  
  18058.  If you have chosen to use the high-performance file system (HPFS) on your
  18059.  start-up drive, you cannot install dual boot.
  18060.  
  18061.  
  18062.  Creating a DOS Directory
  18063.  
  18064.  If you have been running only DOS, you must create a DOS directory and copy
  18065.  your DOS files and directories to this new directory before you install MS
  18066.  OS/2 dual boot. To create the directory and copy your files to it, follow
  18067.  these steps:
  18068.  
  18069.    1.  Use the mkdir command to create a new directory for your DOS files.
  18070.        For example, to create a directory named DOS on drive C, type the
  18071.        following:
  18072.  
  18073.  mkdir c:\dos
  18074.  
  18075.  
  18076.  
  18077.  
  18078.    2.  Copy all of your DOS files to the new DOS directory. For example, to
  18079.        copy all of your DOS files from the root directory on drive C to the
  18080.        new DOS directory, type the following:
  18081.  
  18082.  copy c:\*.* c:\dos
  18083.  
  18084.  
  18085.  
  18086.  
  18087.  
  18088.  
  18089.  
  18090.  Editing the DOS Configuration Files
  18091.  
  18092.  You also need to specify the location of your DOS files for MS OS/2 by
  18093.  modifying the CONFIG.SYS and AUTOEXEC.BAT files, using System Editor or
  18094.  another text editor.
  18095.  
  18096.  If you have only DOS on your computer, be sure to modify the original
  18097.  CONFIG.SYS and AUTOEXEC.BAT files in your root (C:\) directory. (Do not
  18098.  modify the copies in the C:\DOS directory. You may delete these copies if
  18099.  you wish, since they are not used by MS OS/2 dual boot.)
  18100.  
  18101.  If you have an earlier version of MS OS/2, be sure to make your changes to
  18102.  the DOS versions of these files. When you are running DOS, the files you
  18103.  should change are named CONFIG.SYS and AUTOEXEC.BAT; when you are running MS
  18104.  OS/2, the files are named CONFIG.DOS and AUTOEXEC.DOS. To modify the
  18105.  CONFIG.SYS file, follow these steps:
  18106.  
  18107.    1.  Specify the location of COMMANDthe shell configuration command. For
  18108.        example, if COMMANDDOS directory on drive C, place the following line
  18109.        in your CONFIG.SYS file:
  18110.  
  18111.  shell=c:\dos\command.com c:\dos /p
  18112.  
  18113.  
  18114.  
  18115.  
  18116.    2.  Edit any device and country configuration commands so that they
  18117.        specify the new DOS directory.
  18118.  
  18119.  
  18120.  To modify the AUTOEXEC.BAT file, follow these steps:
  18121.  
  18122.    1.  Edit the set comspec command so that it specifies the location of the
  18123.        DOS command interpreter, COMMANDDOS directory on drive C, place the
  18124.        following line in your AUTOEXEC.BAT file:
  18125.  
  18126.  set comspec=c:\dos\command.com
  18127.  
  18128.  
  18129.  
  18130.  
  18131.    2.  Add the DOS directory to the set path command. For example, the edited
  18132.        set path command could look like the following:
  18133.  
  18134.  set path=c:\batch;c:\bin;c:\os2;c:\dos
  18135.  
  18136.  
  18137.  
  18138.  
  18139.    3.  Add the following line to copy COMMANDC:
  18140.  
  18141.  copy c:\dos\command.com c:\
  18142.  
  18143.  
  18144.  
  18145.  
  18146.  
  18147.  
  18148.  
  18149.  Running the Installation Program
  18150.  
  18151.  You install dual boot when you use the MS OS/2 installation program, which
  18152.  determines if you can use dual boot on your computer by checking whether you
  18153.  have already installed DOS (version 3.2 or higher) or a previous version of
  18154.  MS OS/2 dual boot. Make sure that you have moved your DOS files to a
  18155.  separate directory and modified your DOS configuration files before you run
  18156.  the MS OS/2 installation program. To install dual boot, follow these steps:
  18157.  
  18158.    1.  Insert the MS OS/2 Install disk into drive A and turn on your
  18159.        computer. If your computer is already on, restart it by pressing
  18160.        CTRL+ALT+DEL.
  18161.  
  18162.    2.  Follow the instructions on your screen to install dual boot.
  18163.  
  18164.  
  18165.  After you install dual boot on your computer, you will find copies of the
  18166.  DOS configuration files in the C:\OS2\SYSTEM directory of your hard disk.
  18167.  
  18168.  When you start MS OS/2, the MS OS/2 configuration files are copied to
  18169.  CONFIG.SYS and AUTOEXEC.BAT in your root (C:\) directory, and the DOS
  18170.  configuration files that had been named CONFIG.SYS and AUTOEXEC.BAT are
  18171.  copied to the files CONFIG.DOS and AUTOEXEC.DOS in your C:\OS2\SYSTEM
  18172.  directory.
  18173.  
  18174.  When you start DOS, this process is reversed: the DOS configuration files
  18175.  are copied to CONFIG.SYS and AUTOEXEC.BAT in your root directory, and the MS
  18176.  OS/2 files are copied to CONFIG.OS2 and AUTOEXEC.OS2 in your C:\OS2\SYSTEM
  18177.  directory.
  18178.  
  18179.  
  18180.  Using Dual Boot
  18181.  
  18182.  Once you have installed MS OS/2 dual boot, you use the boot utility to
  18183.  specify which operating system you want to use the next time you start your
  18184.  computer. For example, if you are using DOS and you decide you want to use
  18185.  MS OS/2 instead, you start the boot utility in DOS and specify MS OS/2. The
  18186.  boot utility renames the DOS and MS OS/2 configuration files and then
  18187.  prompts you to restart your computer. The following sections describe how to
  18188.  use the boot utility.
  18189.  
  18190.  
  18191.  Starting MS OS/2
  18192.  
  18193.  To use the boot utility to start MS OS/2, follow these steps:
  18194.  
  18195.    1.  At the DOS prompt, type the following:
  18196.  
  18197.  c:\os2\boot /os2
  18198.  
  18199.  
  18200.  
  18201.  
  18202.    2.  The boot utility runs and renames the DOS and MS OS/2 configuration
  18203.        files. When it has finished, the boot utility restarts your computer
  18204.        using MS OS/2.
  18205.  
  18206.  
  18207.  
  18208.  
  18209.  Starting DOS
  18210.  
  18211.  Using dual boot, you can start DOS from the command line of an OS/2 session,
  18212.  or you can add the boot utility to the Utilities group and start DOS from
  18213.  there. By adding the boot utility to the Utilities group, you can start the
  18214.  utility easier and faster. To add the boot utility to the Utilities group,
  18215.  follow these steps:
  18216.  
  18217.    1.  Select the Program menu from the Utilities group and choose the New
  18218.        command.
  18219.  
  18220.    2.  Type the following in the Program Title box:
  18221.  
  18222.  Dual Boot
  18223.  
  18224.  
  18225.  
  18226.  
  18227.    3.  Type the following in the Path and File Name box:
  18228.  
  18229.  c:\os2\boot.com
  18230.  
  18231.  
  18232.  
  18233.  
  18234.    4.  Type the following in the Parameters box:
  18235.  
  18236.  /dos
  18237.  
  18238.  
  18239.  
  18240.  
  18241.    5.  Choose the Add button.
  18242.  
  18243.  
  18244.  For more information about adding an application or utility to a program
  18245.  group, see Chapter 2, "Running Applications with MS OS/2."
  18246.  
  18247.  To start DOS by using the Dual Boot utility, switch to the Utilities group
  18248.  and double-click "Dual Boot." The utility copies the MS OS/2 and DOS
  18249.  configuration files, saves any changes you have made to data files, closes
  18250.  the file system and any running applications, and restarts your computer.
  18251.  
  18252.  If you upgrade your version of DOS while using MS OS/2 dual boot, make sure
  18253.  you run the DOS installation program from DOS, not from MS OS/2; otherwise,
  18254.  the MS OS/2 boot record and configuration files could be overwritten.
  18255.  
  18256.  The DOS installation program can sometimes make the OS2LDR file
  18257.  noncontiguous. This file must be contiguous in order to start MS OS/2. If,
  18258.  when you start MS OS/2, you receive a message telling you that the OS2LDR
  18259.  file is noncontiguous, you must reinstall MS OS/2.
  18260.  
  18261.  
  18262.  Displaying the Current Boot Setting
  18263.  
  18264.  You can also use the boot utility to query which operating system will be
  18265.  used the next time you start your computer. To do this, type the following:
  18266.  
  18267.  c:\os2\boot /q
  18268.  
  18269.  
  18270.  
  18271.  
  18272.  
  18273.  
  18274.  
  18275.  
  18276.  
  18277.  Appendix C  Using Picture Utilities
  18278.  ────────────────────────────────────────────────────────────────────────────
  18279.  
  18280.  
  18281.  
  18282.  
  18283.  Introduction
  18284.  
  18285.  
  18286.  The picture utilities─Print Picture, Display Picture, and Convert Picture
  18287.  File─are Presentation Manager applications that you use to work with special
  18288.  graphics files. The graphics files can be in either of two formats: picture
  18289.  interchange or metafile. Picture interchange files have a .PIF filename
  18290.  extension and metafiles have a .MET filename extension. You use the picture
  18291.  utilities to print, display, and convert these graphics files in
  18292.  Presentation Manager. This appendix briefly describes the purpose of the
  18293.  picture utilities and how to start them. For more detailed information on
  18294.  working with the picture utilities, use Help.
  18295.  
  18296.  Starting Picture Utilities
  18297.  
  18298.  You start the picture utilities from the Utilities group window. To start a
  18299.  picture utility, follow these steps:
  18300.  
  18301.    1.  Switch to Desktop Manager and select the Utilities group.
  18302.  
  18303.    2.  In the Utilities group, choose the picture utility you want to
  18304.        start─Print Picture, Display Picture, or Convert Picture File.
  18305.  
  18306.  
  18307.  
  18308.  
  18309.  Print Picture
  18310.  
  18311.  You use the Print Picture utility to print graphics files on your printer.
  18312.  The filenames end with either a .MET or .PIF extension. You use the commands
  18313.  on the File menu to select and print these graphics files. The following
  18314.  list summarizes the commands on the File menu:
  18315.  
  18316.  Command                           Action
  18317.  ────────────────────────────────────────────────────────────────────────────
  18318.  
  18319.  Select                            Specifies the graphics files to be
  18320.                                    printed. The files must have a .PIF or
  18321.                                    .MET filename extension. Files with a
  18322.                                    .PIF extension are converted to metafile
  18323.                                    format (.MET extension) for printing
  18324.                                    with Presentation Manager.
  18325.  
  18326.  Print                             Prints graphics files on your printer.
  18327.                                    You can specify the number of copies you
  18328.                                    want.
  18329.  
  18330.  Exit                              Quits the Print Picture utility.
  18331.  
  18332.  You set printing options by using the commands on the Control menu. The
  18333.  following list summarizes the commands on the Control menu:
  18334.  
  18335.  Command                           Action
  18336.  ────────────────────────────────────────────────────────────────────────────
  18337.  
  18338.  Change Printer                    Selects the printer to use (if you have
  18339.                                    more than one printer set up on your
  18340.                                    system).
  18341.  
  18342.  Printer Options                   Controls such options as color and
  18343.                                    background.
  18344.  
  18345.  Paper                             Selects the paper size.
  18346.  
  18347.  Printing Area                     Controls the area of the graphics file
  18348.                                    that prints.
  18349.  
  18350.  Picture                           Adjusts the scale and position of the
  18351.                                    graphics file that prints.
  18352.  
  18353.  
  18354.  
  18355.  Display Picture
  18356.  
  18357.  You use the Display Picture utility to view graphics files in Presentation
  18358.  Manager. The files have a .MET or .PIF filename extension.
  18359.  
  18360.  You select the graphics files to view by using the File menu. The following
  18361.  list summarizes the commands on the File menu:
  18362.  
  18363.  Command                           Action
  18364.  ────────────────────────────────────────────────────────────────────────────
  18365.  
  18366.  Display                           Selects the graphics files to view. You
  18367.                                    can control how long each file is
  18368.                                    displayed by selecting Interactive
  18369.                                    Display or Automatic Display.
  18370.  
  18371.  Exit                              Quits the Display Picture utility.
  18372.  
  18373.  After you select graphics files to view by using the Display command, the
  18374.  first graphics file you selected appears in the Display Picture work area.
  18375.  You use the commands on the Control menu to view the next file or to stop
  18376.  viewing files. The following list summarizes the commands on the Control
  18377.  menu:
  18378.  
  18379.  Command                           Action
  18380.  ────────────────────────────────────────────────────────────────────────────
  18381.  
  18382.  Show Next Picture                 Displays the next graphics file you
  18383.                                    selected.
  18384.  
  18385.  Quit Sequence                     Stops displaying graphics files before
  18386.                                    all the files you selected are displayed.
  18387.  
  18388.  
  18389.  
  18390.  Convert Picture File
  18391.  
  18392.  
  18393.  The Convert Picture File utility converts graphics files from picture
  18394.  interchange format to metafile format─the format used in Presentation
  18395.  Manager. You may need to use this utility when you transfer graphics files
  18396.  that were created on a different system to Presentation Manager. You can
  18397.  also use Convert Picture File to convert files with font and typeface
  18398.  information to a Presentation Manager format. You can use Convert Picture
  18399.  File to do the following:
  18400.    ■   Convert graphics files with a .PIF extension to files with a .MET
  18401.        extension
  18402.  
  18403.    ■   Convert font files with a .SMB extension to files with a
  18404.  
  18405.  
  18406.  The following list summarizes the commands on the File menu:
  18407.  
  18408.  Command                           Action
  18409.  ────────────────────────────────────────────────────────────────────────────
  18410.  
  18411.  Convert                           Selects and converts the files. You can
  18412.                                    convert files with a .PIF extension to
  18413.                                    .MET files or files with a .SMB
  18414.                                    extension to
  18415.  
  18416.  Exit                              Quits the Convert Picture File utility.
  18417.  
  18418.  
  18419.  
  18420.  
  18421.  
  18422.  
  18423.  
  18424.  
  18425.  Terms
  18426.  ────────────────────────────────────────────────────────────────────────────
  18427.  
  18428.  
  18429.  
  18430.    A
  18431.  ─────
  18432.  
  18433.  Active
  18434.  Describes a window or icon that is selected in Presentation Manager─the
  18435.  window or icon to which the next keystroke or command will apply. When a
  18436.  window becomes active, the title bar changes color.
  18437.  
  18438.  ANSI character set
  18439.  The American National Standards Institute 8-bit character set. It contains
  18440.  256 characters.
  18441.  
  18442.  ANSI escape sequence
  18443.  A sequence of ASCII characters used to control the keyboard and screen. The
  18444.  first two characters in the sequence must be the escape character and the
  18445.  left-bracket character. The ANSI character set can be used in full-screen
  18446.  session by using the ansi command, and in the DOS session by installing the
  18447.  ANSI.SYS device driver by using the device command in your CONFIG.SYS file.
  18448.  
  18449.  Application
  18450.  A program used for a particular kind of work, such as word processing or
  18451.  database management. See also DOS application, Full-screen application, and
  18452.  Presentation Manager application.
  18453.  
  18454.  Application file
  18455.  See Program file.
  18456.  
  18457.  Archive flag
  18458.  A file characteristic that determines whether the file will be copied when
  18459.  you use the xcopy, backup, or restore utilities. See also Flag.
  18460.  
  18461.  Argument
  18462.  An option and/or variable accepted by an MS OS/2 command to clarify or
  18463.  enhance its meaning and use.
  18464.  
  18465.  Arrow pointer
  18466.  See Pointer.
  18467.  
  18468.  ASCII character set
  18469.  The American Standard Code for Information Interchange 8-bit character set.
  18470.  The set consists of the first 128 (zero through 127) characters of the ANSI
  18471.  character set.
  18472.  
  18473.  Asynchronous
  18474.  Describes a device or system that is capable of sending and receiving
  18475.  communication at the same time.
  18476.  
  18477.  Attribute
  18478.  See Extended attribute.
  18479.  
  18480.  AUTOEXEC.BAT
  18481.  A batch file that contains a series of DOS commands and which automatically
  18482.  runs when you start or restart your system. This batch file affects the DOS
  18483.  session only.
  18484.  
  18485.    B
  18486.  ─────
  18487.  
  18488.  Background program
  18489.  A program that is running but cannot receive user input and does not send
  18490.  output to the screen. See also Foreground program.
  18491.  
  18492.  Background session
  18493.  A session that is not currently active.
  18494.  
  18495.  Batch file
  18496.  A program file with the .BAT extension or the .CMD extension. See also Batch
  18497.  program.
  18498.  
  18499.  Batch command
  18500.  A command used specifically in batch programs.
  18501.  
  18502.  Batch processor
  18503.  The part of the command interpreter that processes batch commands.
  18504.  
  18505.  Batch program
  18506.  An ASCII file that contains one or more DOS or MS OS/2 commands. Batch files
  18507.  that run in the DOS session have the extension .BAT. Those that run in a
  18508.  full-screen session or in a window have the extension .CMD. When a batch
  18509.  program is run, the commands are processed sequentially by command (in the
  18510.  DOS session) or cmd (in an OS/2 session).
  18511.  
  18512.  Boot
  18513.  See Start.
  18514.  
  18515.  Buffer
  18516.  A temporary storage area in the computer's memory that MS OS/2 uses to store
  18517.  information.
  18518.  
  18519.  Byte
  18520.  A unit of information used by a computer (eight bits).
  18521.  
  18522.    C
  18523.  ─────
  18524.  
  18525.  Cache
  18526.  See Disk cache.
  18527.  
  18528.  Cascade
  18529.  To arrange windows so that they overlap one another.
  18530.  
  18531.  Check box
  18532.  A small square box that appears in a Presentation Manager dialog box and
  18533.  that can be turned on or off. When a check box is turned on, an "X" appears
  18534.  in the box, indicating that the option it represents is selected. In a group
  18535.  of check boxes, several check boxes can be selected at the same time.
  18536.  
  18537.  Choose
  18538.  To perform an action that carries out a command in a menu or dialog box. See
  18539.  also Select.
  18540.  
  18541.  Click
  18542.  To press and release a mouse button quickly.
  18543.  
  18544.  Clipboard
  18545.  A storage area in memory that can hold data being passed from one window to
  18546.  another. You can use the clipboard to store various data formats.
  18547.  
  18548.  Cluster
  18549.  A unit of disk space that is assigned to files or directories. A lost
  18550.  cluster is a section of a file that is no longer associated with the
  18551.  original file; MS OS/2 cannot read, write to, or modify data in a lost
  18552.  cluster.
  18553.  
  18554.  Cmd
  18555.  The MS OS/2 command interpreter. Cmd translates what you type at the command
  18556.  prompt into instructions the computer can use. See also Command and Command
  18557.  interpreter.
  18558.  
  18559.  Code page
  18560.  A table that is used to set up language-specific versions of MS OS/2. You
  18561.  can change the code page your system uses by using the chcp command.
  18562.  
  18563.  Collapse
  18564.  To hide a directory level in File Manager by using the Collapse Branch
  18565.  command.
  18566.  
  18567.  Command
  18568.  A word or phrase, usually found in a menu or typed at the command prompt,
  18569.  that you use to perform a task.
  18570.  
  18571.  Command
  18572.  The DOS command interpreter. Command translates what you type at the command
  18573.  prompt into instructions the computer can use. See also Cmd and Command
  18574.  interpreter.
  18575.  
  18576.  Command button
  18577.  A rectangular button in a dialog box that carries out or cancels an action.
  18578.  
  18579.  Command interpreter
  18580.  A command-line interface that enables you to run commonly used, "built-in"
  18581.  commands, batch programs, and MS OS/2 programs.
  18582.  
  18583.  Command line
  18584.  The place where you type a command.
  18585.  
  18586.  Command-line interface
  18587.  A user interface that allows the user to type commands on the command line.
  18588.  
  18589.  Command prompt
  18590.  The character or characters that appear on the screen at the beginning of
  18591.  the command line. For example, [C:\e] is a standard MS OS/2 prompt. The
  18592.  command prompt indicates that the computer is ready to receive input. You
  18593.  can customize the command prompt by using the prompt command.
  18594.  
  18595.  Communications port
  18596.  A port that you can use to connect your computer to a modem, another
  18597.  computer, or some kinds of printers. Transmits one bit at a time; also
  18598.  called a serial port. See also Port.
  18599.  
  18600.  CONFIG.SYS
  18601.  A start-up file that contains configuration commands. See also
  18602.  Configuration.
  18603.  
  18604.  Configuration
  18605.  The way your computer is set up to operate. Configuration commands in the
  18606.  CONFIG.SYS file help you customize the way MS OS/2 runs on your computer.
  18607.  
  18608.  Control Panel
  18609.  A Presentation Manager application that you use to change settings affecting
  18610.  the cursor-blink rate, screen colors, beep, time and date, border sizes,
  18611.  logo, and mouse.
  18612.  
  18613.  CPU (central processing unit)
  18614.  The part of the computer that receives and carries out instructions.
  18615.  
  18616.  Current directory
  18617.  The directory you are working in.
  18618.  
  18619.  Current drive
  18620.  The drive that you are currently using.
  18621.  
  18622.  Cursor
  18623.  Usually a blinking line or small box on the screen that shows where the next
  18624.  character you type will appear. See also Insertion point and Selection
  18625.  cursor.
  18626.  
  18627.    D
  18628.  ─────
  18629.  
  18630.  Data file
  18631.  A file that contains information.
  18632.  
  18633.  Data path
  18634.  The search path for data files.
  18635.  
  18636.  Default
  18637.  Describes an option, command, or device that is automatically selected or
  18638.  chosen by the system. For example, in most Presentation Manager dialog boxes
  18639.  that contain command buttons, one of the buttons has a bold border when the
  18640.  dialog box appears, indicating that it is the default setting and will be
  18641.  chosen automatically if you press the ENTER key. You can override a default
  18642.  setting by selecting the appropriate option, command, or device.
  18643.  
  18644.  Desktop Manager
  18645.  A Presentation Manager application that you use to start other applications.
  18646.  
  18647.  
  18648.  Destination disk
  18649.  The disk to which you copy or move files. See also Source disk.
  18650.  
  18651.  Destination drive
  18652.  The drive at which files arrive when you use commands such as copy or move.
  18653.  See also Source drive.
  18654.  
  18655.  Destination file
  18656.  A file to which information is copied. See also Source file.
  18657.  
  18658.  Device
  18659.  A component of the system's hardware configuration, such as a modem,
  18660.  printer, mouse, or disk drive.
  18661.  
  18662.  Device driver
  18663.  A program that controls how a computer interacts with another device, such
  18664.  as a printer. A device driver allows other devices to communicate with the
  18665.  computer.
  18666.  
  18667.  Dialog box
  18668.  A box that appears when a Presentation Manager application requires further
  18669.  information from the user before it can carry out a command. It also appears
  18670.  when the application provides information. For example, if you choose the
  18671.  New command from the Group menu in Desktop Manager, a dialog box appears,
  18672.  asking for the name of the group you want to add.
  18673.  
  18674.  Direct-access method
  18675.  A way to choose a command or select a menu in a Presentation Manager
  18676.  application by pressing the key that corresponds to the underlined character
  18677.  in the command or menu name.
  18678.  
  18679.  DIRECTION keys
  18680.  The four arrow keys on the keypad. The names of the individual DIRECTION
  18681.  keys refer to the direction the arrow points: the UP key, the DOWN key, the
  18682.  RIGHT key, and the LEFT key.
  18683.  
  18684.  Directory
  18685.  Part of a structure for organizing your files into convenient groups. A
  18686.  directory is like a file drawer that holds a particular group of files. A
  18687.  directory can contain both files and other directories (sometimes called
  18688.  subdirectories). You can see the directories on your system by using File
  18689.  Manager or by typing the dir command at the command prompt. See also
  18690.  Subdirectory.
  18691.  
  18692.  Directory path
  18693.  See Path.
  18694.  
  18695.  Disk
  18696.  A storage medium: hard disk (fixed disk) and floppy disk (5-inch and 3-inch
  18697.  disk).
  18698.  
  18699.  Disk cache
  18700.  A buffer in which MS OS/2 stores information that it has recently read from
  18701.  your hard disk. When an application is instructed to read information from
  18702.  the hard disk, it first checks for the information in the disk cache.
  18703.  
  18704.  Disk drive
  18705.  Hardware that is used to read from and write to a floppy disk or hard disk.
  18706.  
  18707.  Disk-drive icon
  18708.  The small symbol that appears in some Presentation Manager applications
  18709.  representing a disk drive in your system.
  18710.  
  18711.  Display adapter
  18712.  Hardware that converts (adapts) memory into video output. See also Graphics
  18713.  adapter.
  18714.  
  18715.  DOS application
  18716.  An application that must be run in the DOS session. See also DOS session.
  18717.  
  18718.  DOS session
  18719.  A separate environment created in MS OS/2 in which you can run a DOS
  18720.  application. The DOS session is almost like a separate DOS-only computer
  18721.  with 640K of memory. You can run only one application at a time in the DOS
  18722.  session. You can switch to other MS OS/2 sessions by pressing ALT+ESC or to
  18723.  the Task List by pressing CTRL+ESC.
  18724.  
  18725.  Double-click
  18726.  To rapidly press and release a mouse button twice.
  18727.  
  18728.  Drag
  18729.  To press and hold down the mouse button while moving the mouse. For example,
  18730.  you can move a Presentation Manager window to another location on the screen
  18731.  by dragging its title bar.
  18732.  
  18733.  Drive letter
  18734.  The letter used to label a drive─for example, C. See also Disk drive.
  18735.  
  18736.  Dynamic-link library
  18737.  A replaceable component of a program file. Many MS OS/2 applications use
  18738.  dynamic-link libraries to reduce the size of program files and to allow
  18739.  program files to share resources.
  18740.  
  18741.    E
  18742.  ─────
  18743.  
  18744.  Environment
  18745.  The characteristics of your computer's configuration that can be used by a
  18746.  program or the operating system. Each of the sessions created by MS OS/2 is
  18747.  a separate environment. This term is also used to describe the complete set
  18748.  of environment variables. See also Environment variable.
  18749.  
  18750.  Environment variable
  18751.  A string consisting of environment information, such as a drive, path, or
  18752.  filename, associated with a symbolic name that can be used by MS OS/2. You
  18753.  use the set command to define environment variables. See also Environment.
  18754.  
  18755.  Error message
  18756.  See Message.
  18757.  
  18758.  Escape sequence
  18759.  Codes that affect the appearance of the screen, the movement of the cursor,
  18760.  and the use of the keyboard keys─for example, ANSI escape sequences.
  18761.  
  18762.  Exception condition
  18763.  An error condition caused by an instruction the CPU cannot carry out, such
  18764.  as dividing by zero.
  18765.  
  18766.  Executable file
  18767.  See Program file.
  18768.  
  18769.  Expanded memory
  18770.  Extra memory installed to use with DOS. MS OS/2 does not use expanded
  18771.  memory. If you have expanded memory in your computer, you should convert it
  18772.  to extended mem- ory. See the manual for your extended-memory board for
  18773.  details.
  18774.  
  18775.  Extend a selection
  18776.  To select additional items in a window after the first item is selected.
  18777.  
  18778.  Extended attribute
  18779.  Additional information, such as author, application type, and file history,
  18780.  that some MS OS/2 applications attach to files and directories. Extended
  18781.  attributes are used by other applications, the file system, or the operating
  18782.  system itself.
  18783.  
  18784.  Extended memory
  18785.  Memory beyond the usual 1-megabyte limit of computers such as the IBM PC/AT
  18786.  and compatible models. To use extended memory, you must install an
  18787.  extended-memory board. MS OS/2 can use extended memory.
  18788.  
  18789.  Extended partition
  18790.  An optional partition on a hard disk that can contain additional data files.
  18791.  See also Partition.
  18792.  
  18793.  Extension
  18794.  See Filename extension.
  18795.  
  18796.    F
  18797.  ─────
  18798.  
  18799.  FAT (file allocation table)
  18800.  A map of a disk that indicates which clusters are allocated to each file and
  18801.  in what order. A file system that uses this type of mapping is referred to
  18802.  as a FAT file system.
  18803.  
  18804.  FCB (file-control block)
  18805.  A data structure used by some DOS applications to control an open file. New
  18806.  programs usually use file handles instead of FCBs.
  18807.  
  18808.  File
  18809.  A collection of related information treated as a unit. There are different
  18810.  kinds of files, including program files and data files. For example, a file
  18811.  might contain the text of a letter.
  18812.  
  18813.  File allocation table
  18814.  See FAT.
  18815.  
  18816.  File-control block
  18817.  See FCB.
  18818.  
  18819.  File extension
  18820.  See Filename extension.
  18821.  
  18822.  File flag
  18823.  See Flag.
  18824.  
  18825.  File handle
  18826.  An identification code that is assigned to a file when the file is created
  18827.  or opened. An MS OS/2 program uses the file handle whenever it reads from or
  18828.  writes to the file.
  18829.  
  18830.  File Manager
  18831.  A Presentation Manager application that you use to view and organize your
  18832.  files and directories.
  18833.  
  18834.  Filename
  18835.  A sequence of ASCII characters used to identify a file. In the FAT file
  18836.  system, a filename can be up to 8 characters long, with an optional
  18837.  extension of up to 3 characters. In the high-performance file system (HPFS),
  18838.  the filename can be up to 254 characters long and can include characters
  18839.  that are not allowed in the FAT file system.
  18840.  
  18841.  Filename extension
  18842.  The period and up to three letters at the end of a filename in the FAT file
  18843.  system. The extension identifies the kind of information a file contains.
  18844.  For example, the extensions .CMD and .BAT indicate that the file contains a
  18845.  batch program. Some applications append an extension to the files that you
  18846.  create with them.
  18847.  
  18848.  File system
  18849.  The part of the operating system that takes care of such tasks as disk-space
  18850.  management, file storage, and directory structure.
  18851.  
  18852.  Filter
  18853.  A utility that processes input from a device or file and sends it to an
  18854.  output device or file. Refers to the find, more, and sort commands.
  18855.  
  18856.  Flag
  18857.  A characteristic of a file that can be turned on or off by a user. There are
  18858.  four file flags: archive, hidden, read-only, and system.
  18859.  
  18860.  Floppy disk
  18861.  A 3-inch or 5-inch disk than can easily be inserted into and taken out of
  18862.  your computer and that is used for storing programs and files.
  18863.  
  18864.  Font
  18865.  A complete set of characters of a particular design and size.
  18866.  
  18867.  Foreground program
  18868.  A program that can receive user input and send output. See also Background
  18869.  program.
  18870.  
  18871.  Foreground session
  18872.  The session that is currently active.
  18873.  
  18874.  Format
  18875.  To prepare a disk so that it can hold information. Formatting a disk divides
  18876.  the storage area on the disk into sections and erases whatever information
  18877.  was on it.
  18878.  
  18879.  Full-screen application
  18880.  An MS OS/2 application that uses the full screen. A full-screen application
  18881.  is not part of the Presentation Manager session.
  18882.  
  18883.  Full-screen session
  18884.  A separate environment where MS OS/2 applications run in a full screen. You
  18885.  can start multiple full-screen sessions. From a full-screen session, you can
  18886.  switch to other applications by pressing ALT+ESC or to the Task List by
  18887.  pressing CTRL+ESC. See also Session.
  18888.  
  18889.  Function keys
  18890.  The keys labeled F1, F2, and so on. The purpose of the function keys is
  18891.  defined by the application that uses them. For example, in some
  18892.  applications, pressing the F1 key displays Help information.
  18893.  
  18894.    G
  18895.  ─────
  18896.  
  18897.  Gigabyte
  18898.  Approximately one billion bytes; 1000 megabytes.
  18899.  
  18900.  Graphical user interface
  18901.  A user interface, such as Presentation Manager, that offers you an
  18902.  environment of windows, menus, and dialog boxes in which you can work.
  18903.  
  18904.  Graphics adapter
  18905.  A display adapter that converts memory into video output and provides the
  18906.  capability to display video graphics on your screen. See also Display
  18907.  adapter.
  18908.  
  18909.  Grayed
  18910.  Describes a command or option that is listed in a menu or dialog box but
  18911.  cannot be chosen or selected. The command or option appears in gray type.
  18912.  For example, after you have enlarged a window to its full size, the Maximize
  18913.  command in the System menu is grayed.
  18914.  
  18915.    H
  18916.  ─────
  18917.  
  18918.  Hard disk
  18919.  A disk that can store much more information than a floppy disk and is
  18920.  generally installed in the computer.
  18921.  
  18922.  Hard error
  18923.  An error condition caused by something external to the software, such as an
  18924.  open disk-drive door or an incorrectly formatted disk.
  18925.  
  18926.  Hardware
  18927.  The equipment that makes up your computer system, including such items as
  18928.  the keyboard, mouse, disk drives, and monitor.
  18929.  
  18930.  Hidden file
  18931.  A file that cannot be viewed.
  18932.  
  18933.  High-density floppy disk
  18934.  A 5-inch floppy disk formatted to store approximately 1.2 megabytes of
  18935.  information.
  18936.  
  18937.  HPFS (high-performance file system)
  18938.  A file system that can be installed in addition to the FAT file system in MS
  18939.  OS/2 1.2 and later versions. HPFS uses disk caching and lazy writing, and
  18940.  allows filenames that are longer than FAT filenames and that can contain
  18941.  characters not allowed by the FAT file system.
  18942.  
  18943.    I
  18944.  ─────
  18945.  
  18946.  Icon
  18947.  A small symbol that represents an application or a session that is running
  18948.  in memory. Icons can also represent items (such as a document file) that the
  18949.  user wants to work on, directories, and actions that the user wants to
  18950.  perform.
  18951.  
  18952.  Icon area
  18953.  The area at the bottom of the screen that is normally used to display the
  18954.  application-session icons. You can move icons from the icon area.
  18955.  
  18956.  IFS
  18957.  See Installable file system.
  18958.  
  18959.  Inactive
  18960.  Describes a window or icon that is not selected in Presentation Manager. See
  18961.  also Active and Select.
  18962.  
  18963.  Initialization
  18964.  The system start-up process. This process includes reading MS OS/2 start-up
  18965.  files.
  18966.  
  18967.  Insertion point
  18968.  The place where text is inserted when you type. The insertion point appears
  18969.  as a blinking vertical line in dialog boxes.
  18970.  
  18971.  Installable file system (IFS)
  18972.  A file system installed in addition to the FAT file system in MS OS/2
  18973.  version 1.2─for example, HPFS.
  18974.  
  18975.    J
  18976.  ─────
  18977.  
  18978.  Job identifier
  18979.  A number that identifies a file waiting to be printed. The job identifier is
  18980.  listed in the work area of the Print Manager application.
  18981.  
  18982.    K
  18983.  ─────
  18984.  
  18985.  Keyname
  18986.  The word, abbreviation, or ASCII character denoting a key on the keyboard.
  18987.  
  18988.  Kilobyte
  18989.  Approximately one thousand bytes. (The exact number is 1024 bytes.)
  18990.  
  18991.    L
  18992.  ─────
  18993.  
  18994.  Label
  18995.  An argument of the goto batch command that controls which part of the batch
  18996.  file is switched to by the batch program. See also Volume label.
  18997.  
  18998.  Lazy writing
  18999.  Sending (writing) information from a disk cache to the disk when the disk is
  19000.  idle or a specified amount of time has passed.
  19001.  
  19002.  List box
  19003.  A box within a dialog box that lists all the items that a command could
  19004.  affect.
  19005.  
  19006.  Logical drive
  19007.  An extended partition on a hard disk that is treated as a separate disk
  19008.  drive─for example, a 60-megabyte hard disk could be divided into logical
  19009.  drives C and D, each of which could have 30 megabytes of storage space. See
  19010.  also Virtual drive.
  19011.  
  19012.  Lost cluster
  19013.  See Cluster.
  19014.  
  19015.  Low-density floppy disk
  19016.  A 5-inch floppy disk formatted to store approximately 360K of information.
  19017.  
  19018.    M
  19019.  ─────
  19020.  
  19021.  Maximize box
  19022.  A small box that is located at the right of the title bar in a window. Mouse
  19023.  users can click the Maximize box to enlarge a window to its maximum size.
  19024.  See also Restore box.
  19025.  
  19026.  Megabyte
  19027.  Approximately one million bytes; 1024 kilobytes.
  19028.  
  19029.  Memory
  19030.  The place where data and programs are stored while your computer is turned
  19031.  on; often referred to as random-access memory or RAM. Any information that
  19032.  is stored in memory is lost when you turn off your computer. To permanently
  19033.  save information located in memory, you need to copy the information to a
  19034.  disk. Memory is often measured in kilobytes and megabytes.
  19035.  
  19036.  Memory-resident program
  19037.  A program that is loaded into system memory and stays there until you remove
  19038.  it or turn off your computer.
  19039.  
  19040.  Memory swapping
  19041.  See Swap.
  19042.  
  19043.  Menu
  19044.  A list of commands in a window. Menu names appear in the menu bar near the
  19045.  top of the window.
  19046.  
  19047.  Menu bar
  19048.  The horizontal bar below the title bar that lists the names of an
  19049.  application's menus in a window.
  19050.  
  19051.  Message
  19052.  A sentence or short paragraph that may appear on your screen. An error
  19053.  message contains a message-identification number that consists of three
  19054.  letters followed by a four-digit number. You can get more information about
  19055.  an error message by typing help and the message number at the command
  19056.  prompt.
  19057.  
  19058.  Minimize box
  19059.  A small box that is located at the right of the title bar in a window. Mouse
  19060.  users can click the Minimize box to reduce a window to an icon. See also
  19061.  Restore box.
  19062.  
  19063.  Move
  19064.  A technique by which MS OS/2 can combine unused areas of storage into larger
  19065.  areas that can be used by a program or application.
  19066.  
  19067.  Multitasking
  19068.  A feature of MS OS/2 that lets you run more than one program at the same
  19069.  time.
  19070.  
  19071.    N
  19072.  ─────
  19073.  
  19074.  NUL
  19075.  A destination to which you can redirect output. Anything sent to NUL is
  19076.  discarded.
  19077.  
  19078.  Numeric keypad
  19079.  The part of your keyboard that resembles a 10-key adding machine or
  19080.  calculator keyboard. In addition to numbers, the numeric keypad also
  19081.  contains the HOME, END, PAGE UP, PAGE DOWN, and DIRECTION keys.
  19082.  
  19083.    O
  19084.  ─────
  19085.  
  19086.  Operating system
  19087.  A collection of instructions that tell your computer how to run programs and
  19088.  applications. MS OS/2 is a multitasking operating system.
  19089.  
  19090.  Operator
  19091.  A symbol representing an operation that can be performed on data.
  19092.  Mathematical operators include +, -, /, and *. Batch-file operators include
  19093.  AND (&&) and OR (||).
  19094.  
  19095.  Option
  19096.  A predefined argument you can use on the command line to modify the way a
  19097.  command operates.
  19098.  
  19099.  Option button
  19100.  A circular button in a dialog box that you can use to select an option for a
  19101.  particular menu command. Within a group of related option buttons, you can
  19102.  make only one selection. See also Check box.
  19103.  
  19104.  OS/2 session
  19105.  One of two types of sessions in MS OS/2 (the other is the DOS session). The
  19106.  Presentation Manager session, a full-screen session, and cmd running in a
  19107.  window are each an OS/2 session. See also Session.
  19108.  
  19109.    P
  19110.  ─────
  19111.  
  19112.  Parent directory
  19113.  Any directory that contains other directories. See also Subdirectory and
  19114.  Root directory.
  19115.  
  19116.  Partition
  19117.  A section created on the hard disk by the operating system to organize the
  19118.  contents of the disk. Different partitions can contain different file
  19119.  systems. See also Extended partition.
  19120.  
  19121.  Path
  19122.  A collection of directory names separated by backslashes (\e\). A path
  19123.  describes the location of a directory within the directory structure of the
  19124.  system.
  19125.  
  19126.  Pipe
  19127.  A symbol (|) used to redirect the output from one command and use it as
  19128.  input for the next command.
  19129.  
  19130.  Placeholder
  19131.  A word in a syntax line that represents specific information you will need
  19132.  to supply.
  19133.  
  19134.  Point
  19135.  To move the pointer on the screen until it rests on the item you want to
  19136.  select or choose.
  19137.  
  19138.  Pointer
  19139.  A small symbol that appears in MS OS/2 and DOS applications if you have
  19140.  installed a mouse. The pointer indicates which area of the screen will be
  19141.  affected when you click the mouse button. Although it is usually shaped like
  19142.  an arrow, the pointer may change shape during certain tasks.
  19143.  
  19144.  Pointing device
  19145.  A device used to move a pointer on the screen─for example, a mouse, a
  19146.  trackball, or a joystick.
  19147.  
  19148.  Port
  19149.  A slot on your computer to which you can connect a printer, modem, or other
  19150.  input or output device. MS OS/2 recognizes three printer ports (LPT1, LPT2,
  19151.  and LPT3) and three communications ports (COM1, COM2, and COM3).
  19152.  
  19153.  Presentation Manager
  19154.  The graphical user interface that is part of MS OS/2. See also Graphical
  19155.  user interface, Presentation Manager application, and Presentation Manager
  19156.  session.
  19157.  
  19158.  Presentation Manager application
  19159.  Any application designed for the Presentation Manager graphical user
  19160.  interface. These applications run in windows, and their commands are
  19161.  organized into menus. They also take advantage of other features of the
  19162.  Presentation Manager interface, such as dialog boxes and icons.
  19163.  
  19164.  Presentation Manager session
  19165.  An OS/2 session that uses the Presentation Manager graphical user interface.
  19166.  See also Session.
  19167.  
  19168.  Primary code page
  19169.  The primary (default) character set used by your computer. See also Code
  19170.  page.
  19171.  
  19172.  Primary partition
  19173.  The partition on your hard disk that must contain system start-up files.
  19174.  
  19175.  Printer Installer
  19176.  A Presentation Manager application that you can use to install printers.
  19177.  
  19178.  Print job
  19179.  A file waiting to be printed. You can check the status of print jobs by
  19180.  using the Print Manager application.
  19181.  
  19182.  Print Manager
  19183.  A Presentation Manager application that organizes and controls printing. You
  19184.  can use this application to print files and to view and control the jobs in
  19185.  the print queue. Print Manager is started each time you start MS OS/2.
  19186.  
  19187.  Print queue
  19188.  A list of files waiting to be printed. You can look at this list by using
  19189.  the Print Manager application.
  19190.  
  19191.  Processor
  19192.  The integrated circuit where your computer interprets and processes
  19193.  information; also called the central processing unit or CPU.
  19194.  
  19195.  Program
  19196.  A set of instructions that tells the computer how to perform a task. See
  19197.  also Application and Batch program.
  19198.  
  19199.  Program file
  19200.  A file that contains a program. In the FAT file system, the file must have
  19201.  one of the following filename extensions: .CMD, .EXE,
  19202.  
  19203.  Programming language
  19204.  A notational system used to create a computer program.
  19205.  
  19206.  Prompt
  19207.  See Command prompt.
  19208.  
  19209.    Q
  19210.  ─────
  19211.  
  19212.  Queue
  19213.  See Print queue.
  19214.  
  19215.  Queue processor
  19216.  A program that prepares a file to be sent to the printer. A queue-processing
  19217.  program is copied to your hard disk when you install MS OS/2 on your system.
  19218.  
  19219.  
  19220.  Quit
  19221.  To close an application or program.
  19222.  
  19223.    R
  19224.  ─────
  19225.  
  19226.  Read-only flag
  19227.  A file characteristic that determines whether or not the contents of a file
  19228.  can be modified. See also Flag.
  19229.  
  19230.  Redirect
  19231.  To send the output from a command to a file instead of the screen.
  19232.  
  19233.  Replaceable parameter
  19234.  A command option that you can define each time you run a batch program. A
  19235.  replaceable parameter is represented by a percent sign (%) followed by a
  19236.  digit from zero through 9.
  19237.  
  19238.  Restart
  19239.  To press CTRL+ALT+DEL when your computer is turned on. See also Start.
  19240.  
  19241.  Restore
  19242.  To return a window to its last size and position. Also, a utility that
  19243.  restores files that were backed up by using the backup utility.
  19244.  
  19245.  Restore box
  19246.  The small box in a Presentation Manager window that contains a down and an
  19247.  up arrow. The box appears at the right of the title bar after you have
  19248.  enlarged a window to its full size. Mouse users can click the Restore box to
  19249.  return the window to its previous size and position.
  19250.  
  19251.  Root directory
  19252.  The primary directory on a disk. All other directories on the disk are
  19253.  secondary. The root directory is represented by a backslash (\).
  19254.  
  19255.  Run
  19256.  To start an application.
  19257.  
  19258.    S
  19259.  ─────
  19260.  
  19261.  Save
  19262.  To store a file or changes to a file on a disk.
  19263.  
  19264.  Screen
  19265.  The surface upon which information is displayed on a video device.
  19266.  
  19267.  Screenful
  19268.  The quantity of information that fills an entire screen or the entire
  19269.  display area of a window.
  19270.  
  19271.  Scroll
  19272.  To move text or graphics up or down, or left or right, in order to see
  19273.  information that cannot fit on the screen. You typically use the DIRECTION
  19274.  keys or the mouse to scroll.
  19275.  
  19276.  Scroll bar
  19277.  A bar that appears at the right side and/or bottom of some Presentation
  19278.  Manager windows and in some dialog boxes. The scroll bar contains a scroll
  19279.  arrow at either end and a scroll box that moves within the scroll bar,
  19280.  reflecting your position in a file or a list. Mouse users can click parts of
  19281.  the scroll bar to scroll a file. Keyboard users use the DIRECTION keys to
  19282.  accomplish the same thing.
  19283.  
  19284.  Scroll box
  19285.  The box within a scroll bar that you move by using either the mouse or the
  19286.  DIRECTION keys. Its position in the scroll bar corresponds to your general
  19287.  location in a file or dialog box; for example, if it is near the end of the
  19288.  scroll bar, you are near the end of the file or list.
  19289.  
  19290.  Search path
  19291.  The list of directories in which MS OS/2 searches for a file or directory.
  19292.  
  19293.  Secondary code page
  19294.  The alternative character set you can use instead of the primary code page.
  19295.  See also Code page.
  19296.  
  19297.  Sector
  19298.  Part of a track on a disk; the smallest unit of disk space that the computer
  19299.  can access. Sectors are created when the disk is formatted. See also Track.
  19300.  
  19301.  Select
  19302.  To indicate the item that the next command you choose will affect. See also
  19303.  Choose.
  19304.  
  19305.  Selection cursor
  19306.  The mark that shows you where you are working in a window or dialog box and
  19307.  what you have selected. The selection cursor varies, depending on where you
  19308.  are working; it is often a dark bar or dotted box.
  19309.  
  19310.  Session
  19311.  An environment in MS OS/2 that determines which applications or programs you
  19312.  can run and how you interact with them. See also DOS session, Full-screen
  19313.  session, OS/2 session, and Presentation Manager session.
  19314.  
  19315.  Shortcut key
  19316.  A special key or key sequence, available for some commands, that you can
  19317.  press to carry out the command without first selecting a menu. The shortcut
  19318.  keys for a command are often listed on the menu to the right of the command
  19319.  name.
  19320.  
  19321.  Software
  19322.  The set of instructions that make computer hardware perform tasks. Both the
  19323.  operating system that allows you to run applications and the applications
  19324.  themselves are software.
  19325.  
  19326.  Source disk
  19327.  The disk from which you copy or move files. See also Destination disk.
  19328.  
  19329.  Source drive
  19330.  The drive you start from when you use commands such as copy or move. See
  19331.  also Destination drive.
  19332.  
  19333.  Source file
  19334.  A file from which information is copied. See also Destination file.
  19335.  
  19336.  Spooler
  19337.  A program that organizes and prioritizes print jobs.
  19338.  
  19339.  Standard error
  19340.  The destination of error messages sent by your computer. The computer
  19341.  usually sends error messages to the screen, but you can redirect them to
  19342.  other destinations.
  19343.  
  19344.  Standard input
  19345.  The source of input to your computer. The computer usually receives input
  19346.  from the keyboard, but you can redirect input from other sources.
  19347.  
  19348.  Standard output
  19349.  The destination of output from your computer. The computer usually sends
  19350.  output to the screen, but you can redirect output to other destinations.
  19351.  
  19352.  Start
  19353.  To turn on your computer, or to press CTRL+ALT+DEL when your computer is
  19354.  already on.
  19355.  
  19356.  Start-up disk
  19357.  The disk that contains your MS OS/2 start-up files.
  19358.  
  19359.  Start-up drive
  19360.  The drive that contains your MS OS/2 start-up files.
  19361.  
  19362.  Start-up files
  19363.  The files that set up the working environment of your computer when you
  19364.  start MS OS/2.
  19365.  
  19366.  String
  19367.  Characters, terms, or other symbols, in a connected sequence.
  19368.  
  19369.  Subdirectory
  19370.  A directory contained within another directory. All directories are
  19371.  subdirectories of the root directory.
  19372.  
  19373.  Swap
  19374.  To temporarily transfer an application or information between system memory
  19375.  and the hard disk.
  19376.  
  19377.  Switch
  19378.  To move from one application to another or from one session to another. You
  19379.  can switch between applications by using the mouse, the keyboard, or the
  19380.  Task List.
  19381.  
  19382.  System disk
  19383.  A disk that contains programs and information that are used by MS OS/2 to
  19384.  start your computer. See also Start-up disk.
  19385.  
  19386.  System menu
  19387.  The menu in the top left-hand corner of windows that contains commands that
  19388.  control the size and position of the window. The menu is represented by a
  19389.  small box with a bar in it. Icons, some dialog boxes, and windows within
  19390.  application work areas also have System menus.
  19391.  
  19392.  System-menu box
  19393.  The small box containing a bar, at the left of the title bar in a window.
  19394.  
  19395.    T
  19396.  ─────
  19397.  
  19398.  Task List
  19399.  A list of the user's current activities. The Task List can be used to switch
  19400.  among the applications you have running on your computer.
  19401.  
  19402.  Text box
  19403.  A box in a dialog box in which you type information needed to carry out a
  19404.  command.
  19405.  
  19406.  Text file
  19407.  See Data file.
  19408.  
  19409.  Thread
  19410.  Part of a program that can be scheduled by MS OS/2 to run on its own.
  19411.  
  19412.  Tile
  19413.  To arrange windows side by side.
  19414.  
  19415.  Time slice
  19416.  The amount of execution time the system will give a thread before
  19417.  reassigning the CPU to another thread.
  19418.  
  19419.  Title bar
  19420.  The horizontal bar across the top of each Presentation Manager window. The
  19421.  title bar contains the name of the application in that window, the
  19422.  System-menu box, and either the Maximize and Minimize boxes or the Minimize
  19423.  and Restore boxes.
  19424.  
  19425.  Track
  19426.  A path where information is stored on a disk. A track is made up of sectors.
  19427.  See also Sector.
  19428.  
  19429.    U
  19430.  ─────
  19431.  
  19432.  User interface
  19433.  The part of the operating system the user interacts with. See also
  19434.  Command-line interface and Graphical user interface.
  19435.  
  19436.  Utility
  19437.  A program provided with MS OS/2 that performs such system-maintenance tasks
  19438.  as copying files or formatting disks. For example, backup is an MS OS/2
  19439.  utility for creating backup copies of your files.
  19440.  
  19441.    V
  19442.  ─────
  19443.  
  19444.  Virtual disk
  19445.  A section of RAM that is set up as a disk drive. Read and write operations
  19446.  are faster to a virtual disk than they are to a hard or floppy disk. See
  19447.  also Memory.
  19448.  
  19449.  Volume label
  19450.  The name you assign to a disk as part of the disk-formatting process.
  19451.  
  19452.  Volume serial number
  19453.  An individual disk-identification number assigned by MS OS/2 as part of the
  19454.  disk-formatting process.
  19455.  
  19456.    W
  19457.  ─────
  19458.  
  19459.  Wildcard character
  19460.  A character (either * or ?) that can be included in a filename to indicate
  19461.  any character or group of characters that might match that position in other
  19462.  filenames. For example, *.EXE represents every file in a directory that ends
  19463.  with the .EXE filename extension.
  19464.  
  19465.  Window
  19466.  A rectangular region of the screen within which the user can interact with
  19467.  an application. The screen can be divided into several windows, each of
  19468.  which is dedicated to a different application or task. See also Work-area
  19469.  window.
  19470.  
  19471.  Work area
  19472.  The area of a window in which you work with an application.
  19473.  
  19474.  Work-area window
  19475.  A window you can open within a work area.
  19476.  
  19477.  Write-protected disk
  19478.  A floppy disk you can read from but not write to.
  19479.  
  19480.  
  19481.  
  19482.  
  19483.  
  19484.  INDEX
  19485.  ──────────────────────────────────────────────────────────────────────────
  19486.  
  19487.  
  19488.  && (double ampersand)
  19489.  
  19490.    ; (double greater-than sign)
  19491.  %% (double percent sign)
  19492.    for command
  19493.    shift command
  19494.  .. (double period)
  19495.  || (double pipe)
  19496.  
  19497.    ; (greater-than sign);prompt
  19498.  ( ) (parentheses)
  19499.  () (parentheses)
  19500.    prompt
  19501.  \&. (period)
  19502.  & (ampersand) prompt
  19503.  & (ampersand)
  19504.    combining redirection
  19505.    in batch program
  19506.  * (asterisk) wildcard
  19507.  @ (at symbol)
  19508.  ^ (caret)
  19509.  : (colon)
  19510.  $ (dollar sign)
  19511.  = (equal sign)
  19512.    environment variable
  19513.  
  19514.     (greater-than sign);redirecting output
  19515.  < (less-than sign)
  19516.    prompt
  19517.  - (minus sign)
  19518.  % (percent sign)
  19519.    batch programs
  19520.    for command
  19521.    replaceable parameter
  19522.  . (period)
  19523.  | (pipe symbol)
  19524.    prompt
  19525.  | (pipe)
  19526.  + (plus sign)
  19527.  ? (question mark)
  19528.  \&.. (double period)
  19529.  4201.DCP file
  19530.  5202.DCP file
  19531.  
  19532.      A
  19533.  Absolute priority
  19534.  Active process
  19535.    maxwait command
  19536.  Active window
  19537.  Add Association dialog box
  19538.  Add command
  19539.  Add Font command
  19540.  Add Font dialog box
  19541.  Add Printer dialog box
  19542.  Add Printer Driver command
  19543.  Add Printer Driver dialog box
  19544.  Add queue dialog box
  19545.  Add Queue Driver command
  19546.  Add Queue Driver dialog box
  19547.  Adding
  19548.    file to another file
  19549.    printer driver
  19550.    printer
  19551.    program group
  19552.    program
  19553.  Alias, logical drive letter
  19554.  Ampersand (&)
  19555.    combining redirection
  19556.    in batch program
  19557.    prompt
  19558.  And symbol (&&)
  19559.  ANSI escape sequences
  19560.    ansi utility
  19561.    ANSI.SYS device driver
  19562.    description
  19563.    list
  19564.  ANSI support
  19565.    full-screen session
  19566.  Ansi utility
  19567.  ANSI.SYS device driver
  19568.  Append utility
  19569.  Append
  19570.    directory to path
  19571.    file to file
  19572.    output to file
  19573.  Application Defaults command
  19574.  Application
  19575.    active window
  19576.    adding a font file
  19577.    arguments
  19578.    arranging windows
  19579.    background
  19580.    Cascade command
  19581.    changing information
  19582.    copying
  19583.    copying
  19584.    filename
  19585.    fixed-size window
  19586.    full-screen OS/2
  19587.    full-screen OS/2;ansi utility
  19588.    full-screen OS/2;default
  19589.    full-screen OS/2;defined
  19590.    full-screen OS/2;Format Diskette
  19591.    full-screen OS/2;Help information
  19592.    full-screen OS/2;moving between
  19593.    full-screen OS/2;scrolling window contents
  19594.    full-screen OS/2;sizing a window
  19595.    full-screen OS/2;start-up files
  19596.    full-screen OS/2;System menu
  19597.    full-screen OS/2;window
  19598.    full-screen OS/2;working with
  19599.    getting Help
  19600.    graphics problems
  19601.    groups
  19602.    Help information
  19603.    icon
  19604.    listed in Desktop Manager
  19605.    logo display time
  19606.    Main Group
  19607.    Maximize command
  19608.    messages
  19609.    Presentation Manager
  19610.    printing a file
  19611.    quitting
  19612.    quitting
  19613.    running in memory
  19614.    saving information about
  19615.    screen
  19616.    scrolling
  19617.    selecting
  19618.    starting
  19619.    starting;from cmd
  19620.    starting;from DOS
  19621.    starting;more than one
  19622.    starting;PATH variable
  19623.    switching
  19624.    System-menu box
  19625.    Task List
  19626.    Tile command
  19627.    title bar
  19628.    title, in Program group
  19629.    visible on screen
  19630.    window
  19631.  Archive attribute
  19632.  Archive flag
  19633.  Argument
  19634.    device setting
  19635.    in batch program
  19636.    New Program dialog box
  19637.    parallel port
  19638.    serial port
  19639.    shifting
  19640.    substituting
  19641.  Arrange menu
  19642.  ASCII file, recovering
  19643.  Assign utility
  19644.    recover utility
  19645.  Associate command
  19646.  Asterisk (*)
  19647.  Asynchronous-communication
  19648.  At symbol (@)
  19649.  Attrib utility
  19650.  AUTOEXEC.BAT
  19651.    dual boot
  19652.  AUTOEXEC.DOS
  19653.  Automatic transit-flow control
  19654.  Autosave dialog box
  19655.  
  19656.      B
  19657.  Background program
  19658.    detach command
  19659.    redirecting messages from
  19660.    starting
  19661.  Backslash (\e)
  19662.  Backup utility
  19663.     see restoring files Restore utility
  19664.    /a option
  19665.    /d option
  19666.    /L option
  19667.    /m option
  19668.    /s option
  19669.    /t option
  19670.    adding files to backup disk
  19671.    archive flag
  19672.    file erased
  19673.    file last modified
  19674.  Backup
  19675.    batch program
  19676.    diskcopy utility
  19677.    file;archive flag
  19678.  .BAT extension
  19679.  Batch processor
  19680.  Batch program
  19681.    /q option
  19682.    backup
  19683.    call command
  19684.    cmd
  19685.    creating
  19686.    echo
  19687.    filename extension
  19688.    goto command
  19689.    help
  19690.    label
  19691.    pause command
  19692.    repeating a task
  19693.    replaceable parameter
  19694.    run command
  19695.    shift command
  19696.    special characters
  19697.    start command
  19698.    start-up files
  19699.    starting
  19700.    stopping
  19701.    using
  19702.  Baud rate
  19703.  Binary file, copying
  19704.  Block file
  19705.  Bold type
  19706.  Bookmark command
  19707.    Command Reference
  19708.  Boot utility
  19709.    /os2 option
  19710.    /q option
  19711.    adding to Utilities group
  19712.    using
  19713.  Border Width command
  19714.  Border Width dialog box
  19715.  Brackets ([ ])
  19716.  Break command
  19717.  Buffer, tracebuf command
  19718.  Buffers command
  19719.  Button
  19720.    Cancel
  19721.    Index
  19722.    Keys
  19723.    message
  19724.  By name
  19725.    command
  19726.  By type
  19727.    command
  19728.  Bytes
  19729.    available on disk
  19730.    in bad sectors
  19731.  
  19732.      C
  19733.  Call command
  19734.  Canadian French code page
  19735.  Canadian, French, code page
  19736.  Cancel All Jobs command
  19737.  Cancel button
  19738.  Cancel Job command
  19739.  Canceling
  19740.    print job
  19741.    print job
  19742.    selection
  19743.  Capital letters
  19744.  Caret (^)
  19745.  Cascade command
  19746.  Cd command
  19747.  Change Association dialog box
  19748.  Change Flags command
  19749.  Change Flags dialog box
  19750.  Change Printer dialog box
  19751.  Change Queue dialog box
  19752.  Changing
  19753.    application information
  19754.    character size
  19755.    code page
  19756.    code pages
  19757.    CONFIG.SYS
  19758.    date
  19759.    default application information
  19760.    default printer
  19761.    directory
  19762.    display device driver
  19763.    drive
  19764.    environment variable
  19765.    file, read-only flag
  19766.    filename;rename command
  19767.    path
  19768.    print queues
  19769.    printer drivers
  19770.    printer names
  19771.    program groups
  19772.    prompt
  19773.    time
  19774.    user interface
  19775.  Character set
  19776.    codepage command
  19777.    graftabl utility
  19778.  Character
  19779.    deleting, System Editor
  19780.    displaying in batch program
  19781.    redirection symbol
  19782.    sorting by
  19783.    special, in batch program
  19784.  Characters per line
  19785.    display mode
  19786.    parallel printer
  19787.  Chcp command
  19788.  Check box
  19789.    defined
  19790.    selecting
  19791.  Check mark
  19792.    defined
  19793.    group name
  19794.    Text command
  19795.  .CHK extension
  19796.  Chkdsk utility
  19797.    /f option
  19798.    /v option
  19799.    DOS session
  19800.    EAnnnn.CHK
  19801.    FILEnnnn.CHK
  19802.    HPFS
  19803.    join utility
  19804.    subst utility
  19805.    virtual disk drive
  19806.  CHKDSK.COM
  19807.  Clearing screen
  19808.  Click
  19809.    selecting
  19810.  Clipboard
  19811.  Close All dialog box
  19812.  Close All Directories command
  19813.  Close command
  19814.    closing a directory window
  19815.    defined
  19816.    dialog box
  19817.    File Manager
  19818.    Help window
  19819.    quitting
  19820.    quitting;MS OS/2 command interpreter
  19821.    quitting;Presentation Manager application
  19822.    shortcut keys
  19823.  Closing
  19824.    dialog box
  19825.    directory window
  19826.    window
  19827.  Cls command
  19828.  .CMD extension
  19829.  Cmd
  19830.    batch program
  19831.    defined
  19832.    directory naming conventions
  19833.    end automatically
  19834.    environment
  19835.    filename conventions
  19836.    icon
  19837.    initializing
  19838.    location, set comspec command
  19839.    output
  19840.    print command
  19841.    printing a file
  19842.    prompt
  19843.    quitting
  19844.    running in a window
  19845.    search path, setting
  19846.    start-up files
  19847.    starting a utility
  19848.    starting an application
  19849.    starting
  19850.  Code page
  19851.    changing
  19852.    codepage command
  19853.    countries supported
  19854.    default
  19855.    device
  19856.    graftabl utility
  19857.    installation
  19858.    keyb utility
  19859.    prepared for system
  19860.    printer
  19861.    ROM, devinfo command
  19862.    setting up
  19863.    sort utility
  19864.  Code
  19865.     see code pages Code page
  19866.    country
  19867.    keyboard
  19868.  Codepage command
  19869.  Collapsing a directory level
  19870.  Colon (:)
  19871.  Color display
  19872.  Column, sorting by
  19873.  COM01.SYS device driver
  19874.  COM02.SYS device driver
  19875.  COM1
  19876.  COM2
  19877.  COM3
  19878.  Combining files
  19879.  Command button
  19880.    default
  19881.    defined
  19882.    selecting
  19883.    selection cursor
  19884.  Command interpreter
  19885.    command
  19886.    DOS session, shell command
  19887.    Help command
  19888.    MS OS/2, protshell command
  19889.  Command line
  19890.    argument
  19891.    notational conventions
  19892.    starting program
  19893.  Command Reference
  19894.    Append To File command
  19895.    Bookmark command
  19896.    bookmark;adding
  19897.    bookmark;deleting
  19898.    clipboard
  19899.    Collapse All command
  19900.    Collapse Branch command
  19901.    Contents command
  19902.    Contents window
  19903.    Copy command
  19904.    Copy To File command
  19905.    copying topic information
  19906.    defined
  19907.    Exit command
  19908.    Expand All command
  19909.    Expand Branch command
  19910.    Expand One Level command
  19911.    Index command
  19912.    main topic;expanding
  19913.    marking topics
  19914.    Options menu
  19915.    Previous command
  19916.    Print command
  19917.    Print dialog box options
  19918.    printing topic information
  19919.    quitting
  19920.    reviewing a topic
  19921.    Search command
  19922.    Search dialog box options
  19923.    searching topic information
  19924.    selecting a topic
  19925.    Services menu
  19926.    set bookshelf command
  19927.    subtopic;collapsed
  19928.    subtopic;hidden
  19929.    subtopic;minus sign (-)
  19930.    subtopic;plus sign (+)
  19931.    TAB key
  19932.    table of contents
  19933.    Viewed Pages command
  19934.    viewing a marked topic
  19935.    viewing a subtopic
  19936.    viewing a topic
  19937.    viewing an index topic
  19938.    viewing topic information
  19939.  COMMAND.COM
  19940.  Command
  19941.     see button Command button
  19942.     see filter More utility, Sort utility
  19943.     see md Mkdir command
  19944.     see System Editor System Editor
  19945.    Add Font
  19946.    Add Printer Driver
  19947.    Add Queue Driver
  19948.    Add
  19949.    and symbol (&&)
  19950.    ansi
  19951.    Application Defaults
  19952.    Associate
  19953.    AUTOEXEC.BAT
  19954.    Autosave
  19955.    basic method
  19956.    batch program
  19957.    Border Width
  19958.    break
  19959.    buffers
  19960.    By name
  19961.    By type
  19962.    call
  19963.    Cancel All Jobs
  19964.    Cancel button
  19965.    Cancel Job
  19966.    Cascade
  19967.    cd
  19968.    Change Flags
  19969.    chcp
  19970.    choosing
  19971.    Close All Directories
  19972.    Close;defined
  19973.    Close;dialog box
  19974.    Close;directory window
  19975.    Close;File Manager
  19976.    Close;Help window
  19977.    Close;quitting cmd
  19978.    Close;quitting Presentation Manager \
  19979.    Close;shortcut keys
  19980.    cls
  19981.    codepage
  19982.    combining in batch program
  19983.    Communications Port
  19984.    configuration commands
  19985.    copy
  19986.    Copy;copying a directory
  19987.    Copy;copying a file
  19988.    Country
  19989.    country
  19990.    Create Directory
  19991.    Create directory
  19992.    custom, creating
  19993.    date
  19994.    defined
  19995.    del
  19996.    Delete Font
  19997.    Delete;application
  19998.    Delete;directory
  19999.    Delete;directory
  20000.    Delete;program group
  20001.    Deselect All
  20002.    detach
  20003.    device
  20004.    device;call command
  20005.    device;run command
  20006.    device;virtual disk
  20007.    devinfo
  20008.    dir
  20009.    direct-access method
  20010.    diskcache
  20011.    do
  20012.    DOS command interpreter
  20013.    DOS commands
  20014.    dpath
  20015.    echo
  20016.    ellipsis (...)
  20017.    endlocal
  20018.    Exit Control Panel
  20019.    Exit File Manager
  20020.    Exit
  20021.    Expand All
  20022.    Expand Branch
  20023.    Expand One Level
  20024.    extproc
  20025.    fcbs
  20026.    File details;directory window information
  20027.    File Details;setting file flags
  20028.    File Details;sorting files
  20029.    File Manager
  20030.    File Options
  20031.    for
  20032.    goto
  20033.    grayed
  20034.    grouping together
  20035.    Help
  20036.    Hold Job
  20037.    Hold Queue
  20038.    Icon;directory window information
  20039.    if
  20040.    inactive
  20041.    Include;directory window information
  20042.    iopl
  20043.    Job Details
  20044.    Job Details
  20045.    Large Font
  20046.    libpath
  20047.    Maximize;Control Panel
  20048.    Maximize;defined
  20049.    Maximize;enlarging an icon
  20050.    Maximize;shortcut keys
  20051.    Maximize;sizing a window
  20052.    maxwait
  20053.    memman
  20054.    menu
  20055.    Minimize On Run
  20056.    Minimize;defined
  20057.    Minimize;reducing a window
  20058.    Minimize;shortcut keys
  20059.    Minimize;sizing a window
  20060.    mkdir
  20061.    Mouse
  20062.    Move;copying files into new directories
  20063.    Move;defined
  20064.    Move;directory
  20065.    Move;File Manager
  20066.    Move;icons
  20067.    Move;shortcut keys
  20068.    Move;window
  20069.    Name;directory window information
  20070.    Next
  20071.    notational conventions
  20072.    Open;directory window
  20073.    Open;starting an application
  20074.    or symbol (||)
  20075.    path
  20076.    pause
  20077.    pauseonerror
  20078.    piping input and output
  20079.    Print Job Next
  20080.    Print
  20081.    Printers
  20082.    Printers;changing printer-driver connections
  20083.    Printers;deleting a printer
  20084.    Printers;setting printer options
  20085.    priority
  20086.    Properties
  20087.    protectonly
  20088.    protshell
  20089.    Queues
  20090.    Refresh Now
  20091.    Refresh
  20092.    Release Job
  20093.    rem
  20094.    rename
  20095.    Rename, program group
  20096.    Repeat Job
  20097.    Restore;defined
  20098.    Restore;shortcut keys
  20099.    Restore;sizing a window
  20100.    Restore;window
  20101.    Resume Task List
  20102.    rmdir
  20103.    rmsize
  20104.    run
  20105.    Screen Colors
  20106.    Scroll
  20107.    Select All
  20108.    selecting
  20109.    separating in batch program
  20110.    set bookshelf
  20111.    set comspec
  20112.    set dpath
  20113.    set help
  20114.    set path
  20115.    set prompt
  20116.    set temp
  20117.    set
  20118.    setlocal
  20119.    shell
  20120.    shift
  20121.    shortcut keys
  20122.    Shutdown Now
  20123.    Size;defined
  20124.    Size;File Manager
  20125.    Size;shortcut keys
  20126.    Size;sizing a window
  20127.    Small Font
  20128.    Sort by
  20129.    Sort by;directory window information
  20130.    Start Job Again
  20131.    Start
  20132.    start
  20133.    swappath
  20134.    Switch Window
  20135.    Switch Window;File Manager
  20136.    System menu
  20137.    Task List;defined
  20138.    Task List;shortcut keys
  20139.    threads
  20140.    Tile
  20141.    time
  20142.    timeslice
  20143.    trace
  20144.    tracebuf
  20145.    type
  20146.    underlined letters
  20147.    Undo Selection
  20148.    ver
  20149.    vol
  20150.  Commands
  20151.    HPFS, using with
  20152.  Communication, asynchronous
  20153.  Communications Port command
  20154.  Communications Port dialog box
  20155.  Communications port
  20156.    connecting;serial port
  20157.    device driver
  20158.    DOS session
  20159.    mouse device driver
  20160.  Comp utility
  20161.  Compare Diskette utility
  20162.  Comparing
  20163.    directory
  20164.    file
  20165.  Comspec, set
  20166.  Con
  20167.  CONFIG.DOS
  20168.  CONFIG.SYS
  20169.    backup copy
  20170.    break command
  20171.    buffers command
  20172.    codepage command
  20173.    country command
  20174.    ddinstal program
  20175.    description
  20176.    device command
  20177.    devinfo command
  20178.    diskcache command
  20179.    dual boot
  20180.    editing
  20181.    error message
  20182.    fcbs command
  20183.    font files
  20184.    HPFS information
  20185.    installation
  20186.    iopl command
  20187.    libpath command
  20188.    maxwait command
  20189.    memman command
  20190.    modifying
  20191.    priority command
  20192.    protectonly command
  20193.    protshell command
  20194.    queue-driver file
  20195.    required commands
  20196.    rmsize command
  20197.    run command
  20198.    set bookshelf command
  20199.    set command
  20200.    set comspec command
  20201.    set dpath command
  20202.    set help command
  20203.    set path command
  20204.    set prompt command
  20205.    set temp command
  20206.    shell command
  20207.    swappath command
  20208.    threads command
  20209.    timeslice
  20210.    trace command
  20211.    tracebuf command
  20212.  Configuring
  20213.    DOS session
  20214.    parallel port
  20215.    Presentation Manager session
  20216.    serial port
  20217.  Confirm dialog box
  20218.  Confirmation messages
  20219.  Confirmations dialog box
  20220.  Contents window
  20221.    Command Reference
  20222.  Contiguous files
  20223.  Continuous retry
  20224.  Control Panel
  20225.    adding a font file
  20226.    adding a printer
  20227.    adjusting screen contrast
  20228.    changing;default printer
  20229.    changing;print-queue connections
  20230.    changing;printer options
  20231.    changing;printer-driver connections
  20232.    color values
  20233.    communications port
  20234.    country settings
  20235.    cursor-blink rate
  20236.    default printer
  20237.    defined
  20238.    deleting;font file
  20239.    deleting;printer
  20240.    fixed size
  20241.    font files
  20242.    general uses
  20243.    introduction
  20244.    logo display time
  20245.    mouse double-click
  20246.    mouse options
  20247.    port
  20248.    position on screen
  20249.    printer drivers
  20250.    printer name
  20251.    printing a file
  20252.    queue driver
  20253.    queues
  20254.    quitting
  20255.    removing;printer
  20256.    removing;queue driver
  20257.    screen colors
  20258.    screen contrast
  20259.    setting up a printer
  20260.    Size command
  20261.    starting
  20262.    system date
  20263.    System menu
  20264.    system time
  20265.    warning beep
  20266.    window
  20267.  CONTROL.00\fIn\fP file
  20268.  Convert Picture utility
  20269.    defined
  20270.    File menu
  20271.    using
  20272.  Copy command
  20273.    /a option
  20274.    /b option
  20275.    /v option
  20276.    con
  20277.    copying a directory
  20278.    copying a file
  20279.  Copy dialog box
  20280.  Copy Diskette utility
  20281.  Copy Program dialog box
  20282.  Copying
  20283.     see backup Backup utility
  20284.    directory
  20285.    disk
  20286.    file
  20287.    System Editor
  20288.  Country code
  20289.  Country command
  20290.  Country dialog box
  20291.  Country settings
  20292.  COUNTRY.SYS
  20293.  Create Directory command
  20294.  Create Directory dialog box
  20295.  Creating
  20296.    batch program
  20297.    command
  20298.    directory
  20299.    directory, cd command
  20300.    file
  20301.  CTRL key
  20302.    selecting;Command Reference
  20303.  CTS (clear to send)
  20304.  Ctty command
  20305.  Currency, country settings
  20306.  Current directory
  20307.    prompt, default drive
  20308.  Cursor-blink rate
  20309.  Cursor
  20310.    position
  20311.    System Editor
  20312.  
  20313.      D
  20314.  Data
  20315.    bit
  20316.    file
  20317.    path
  20318.    search path
  20319.    segment
  20320.  Date command
  20321.  Date
  20322.    country settings
  20323.    file modified
  20324.    of file or directory
  20325.    prompt
  20326.    restore utility
  20327.    setting
  20328.  Ddinstal utility
  20329.  .DDP extension
  20330.  Default button
  20331.  Default printer
  20332.  Default-drive prompt
  20333.  Del command
  20334.  Delete command
  20335.    directory
  20336.    directory
  20337.    program group
  20338.  Delete dialog box
  20339.  Delete dialog box
  20340.  Delete Font command
  20341.  Delete Font dialog box
  20342.  Delete Group dialog box
  20343.  Delete Printer Driver dialog box
  20344.  Delete Queue Driver dialog box
  20345.  Deleting
  20346.    character, System Editor
  20347.    directory
  20348.    directory
  20349.    environment variable
  20350.    file
  20351.    printer
  20352.    program group
  20353.    text, System Editor
  20354.  Density
  20355.  Deselect All command
  20356.  Desktop Manager
  20357.    active window
  20358.    adding;application
  20359.    adding;printer
  20360.    adding;program group
  20361.    arranging windows
  20362.    changing application information
  20363.    command buttons
  20364.    defined
  20365.    Desktop menu;Shutdown command
  20366.    Fixed Disk Utility
  20367.    Main Group
  20368.    reducing
  20369.    removing a printer
  20370.    renaming a program group
  20371.    saving program information
  20372.    starting a utility
  20373.    starting an application
  20374.    System menu
  20375.    Utilities group;Fixed Disk Utility
  20376.    Utility Programs group
  20377.  Desktop menu
  20378.    Shutdown command
  20379.  Detach command
  20380.  Detached program
  20381.  Device command
  20382.    call command
  20383.    run command
  20384.    virtual disk
  20385.  Device driver
  20386.    changing display
  20387.    COM01.SYS
  20388.    COM02.SYS
  20389.    COM0\fIx\fP.SYS
  20390.    description
  20391.    device command
  20392.    EGA.SYS
  20393.    EXTDSKDD.SYS
  20394.    installation
  20395.    mouse
  20396.    path
  20397.    pmdd.sys
  20398.    POINTDD.SYS
  20399.    setting up
  20400.    VDISK.SYS
  20401.  Device
  20402.     see NUL NUL
  20403.    assign utility
  20404.    code page
  20405.    description
  20406.    reading input from
  20407.    sending output to
  20408.    setting arguments
  20409.  Devinfo command
  20410.  Dialog box
  20411.    Add Association
  20412.    Add Font
  20413.    Add Printer Driver
  20414.    Add Printer
  20415.    Add Queue Driver
  20416.    Add Queue
  20417.    Autosave
  20418.    Border Width
  20419.    Change Association
  20420.    Change Flags
  20421.    Change Printer
  20422.    Change Queue
  20423.    check box
  20424.    Close All
  20425.    closing
  20426.    command button
  20427.    Communications Port
  20428.    Confirm
  20429.    Confirmations
  20430.    Copy Program
  20431.    Copy
  20432.    Country
  20433.    Create Directory
  20434.    defined
  20435.    Delete Font
  20436.    Delete Group
  20437.    Delete Printer Driver
  20438.    Delete Queue Driver
  20439.    Delete
  20440.    Delete
  20441.    Find
  20442.    How to Run the Program
  20443.    Job Details
  20444.    Job Details
  20445.    Logo Display
  20446.    messages
  20447.    Move
  20448.    moving in
  20449.    New Group
  20450.    New Program
  20451.    New Program
  20452.    Printer Installer
  20453.    Printer Names
  20454.    Printers
  20455.    Properties
  20456.    Queues
  20457.    Rename Group
  20458.    Rename
  20459.    Save As
  20460.    Save
  20461.    Screen Colors
  20462.    scrolling
  20463.    selecting
  20464.    selection cursor
  20465.    System menu
  20466.    text box
  20467.    Type
  20468.  Dir command
  20469.    /p option
  20470.    /w option
  20471.    DOS session
  20472.    file flags
  20473.    wide format
  20474.  Directory list
  20475.    wide format
  20476.  Directory path
  20477.  Directory path
  20478.  Directory path
  20479.    defined
  20480.    directory window
  20481.    Help information
  20482.    joining to drive
  20483.    reassigning
  20484.    substituting for drive
  20485.  Directory Tree window
  20486.    changing displayed information
  20487.    copying a directory
  20488.    defined
  20489.    deleting a directory
  20490.    deleting a directory
  20491.    Move command
  20492.    renaming a directory
  20493.  Directory window
  20494.    active
  20495.    archive flag
  20496.    archived files
  20497.    changing display options
  20498.    collapsing a level
  20499.    default file information
  20500.    file flags
  20501.    file information
  20502.    hidden files
  20503.    printing a file
  20504.    read-only files
  20505.    sorting
  20506.    splitting
  20507.    starting an application
  20508.    system flag
  20509.    title bar
  20510.  Directory
  20511.     see path Directory path
  20512.    adding to path
  20513.    adding to the Window menu
  20514.    application
  20515.    backing up
  20516.    backslash (\e)
  20517.    BACKUP
  20518.    brackets ([ ])
  20519.    branches
  20520.    changing displayed information
  20521.    changing
  20522.    comparing
  20523.    copying
  20524.    copying;HPFS to FAT
  20525.    creating
  20526.    current
  20527.    deleting
  20528.    deleting
  20529.    destination
  20530.    Directory Tree window
  20531.    displaying
  20532.    File Manager
  20533.    file;default information
  20534.    file;hidden
  20535.    file;setting flags
  20536.    file;specifying location
  20537.    file;test
  20538.    FOUND
  20539.    levels
  20540.    list
  20541.    minus sign (\(en)
  20542.    moving
  20543.    moving;HPFS to FAT
  20544.    name
  20545.    opening a window on
  20546.    organizing
  20547.    OS2
  20548.    parent
  20549.    plus sign (+)
  20550.    read-only files
  20551.    removing
  20552.    reserved characters
  20553.    restore utility
  20554.    root
  20555.    searching
  20556.    selecting
  20557.    selection cursor
  20558.    starting an application
  20559.    transferring;HPFS to FAT
  20560.    tree, displaying
  20561.    viewing
  20562.    window;opening
  20563.    window;size
  20564.    window;starting an application
  20565.    \eOS2\eDLL
  20566.  Disk cache
  20567.  Disk drive
  20568.    changing
  20569.    designation to a path
  20570.    Directory Tree window
  20571.    directory window
  20572.    door
  20573.    File Manager
  20574.    icon
  20575.    volume label
  20576.  Disk Information utility
  20577.  Disk
  20578.     see drive Disk drive
  20579.     see floppy Floppy disk
  20580.     see hard Hard disk
  20581.     see installation Installation disk
  20582.    backup copies
  20583.    caching
  20584.    checking available space
  20585.    chkdsk utility
  20586.    comparing
  20587.    copying
  20588.    density
  20589.    Disk Information\(emCHKDSK
  20590.    error
  20591.    formatting
  20592.    labeling
  20593.    recovering
  20594.    root directory
  20595.    sectors
  20596.    space
  20597.    storage of files
  20598.    swap file
  20599.    tracks
  20600.    utilities
  20601.    virtual;diskcopy utility
  20602.    virtual;DOS session
  20603.    volume label
  20604.  Diskcache command
  20605.    HPFS
  20606.  Diskcomp utility
  20607.    assign utility
  20608.    join utility
  20609.    subst utility
  20610.  Diskcopy utility
  20611.    assign utility
  20612.    join utility
  20613.    subst utility
  20614.  Display Picture utility
  20615.    Control menu
  20616.    defined
  20617.    Display Picture area
  20618.    File menu
  20619.    using
  20620.  Display, device driver
  20621.  DISPLAY.DLL file
  20622.    device driver
  20623.  Displaying
  20624.    batch program, echo
  20625.    directory listing
  20626.    error message
  20627.    file contents
  20628.    output
  20629.    path
  20630.    text in batch program
  20631.    volume label
  20632.  .DLL extension
  20633.  Do command
  20634.  Dollar sign ($)
  20635.  DOS session
  20636.    active window
  20637.    ANSI escape sequences
  20638.    AUTOEXEC.BAT
  20639.    batch program
  20640.    chkdsk utility
  20641.    command interpreter
  20642.    configuring
  20643.    customizing
  20644.    defined
  20645.    device drivers
  20646.    file-control blocks
  20647.    icon
  20648.    memory
  20649.    mouse
  20650.    printing a file
  20651.    protectonly command
  20652.    setting up
  20653.    start-up
  20654.    starting an application
  20655.    switching
  20656.    terminate-and-stay-resident programs
  20657.    utilities
  20658.  DOS
  20659.     see session DOS session
  20660.    command prompt
  20661.    commands
  20662.    compatibility with HPFS
  20663.    dual boot
  20664.    graphics applications
  20665.    icon
  20666.    prompt
  20667.    starting an application
  20668.    upgrading
  20669.  Dotted box, selection cursor
  20670.  Double ampersand (&&)
  20671.  Double pipe (||)
  20672.  (double quotation mark)
  20673.  Double quotation marks
  20674.    HPFS
  20675.  Double-click
  20676.  Dpath command
  20677.  DPATH environment variable
  20678.  Drag
  20679.  Drive
  20680.    alias
  20681.    changing
  20682.    checking
  20683.    density
  20684.    directory structure
  20685.    joining to directory path
  20686.    logical;EXTDSKDD.SYS device driver
  20687.    reassigning
  20688.    redirecting to or from
  20689.    selecting
  20690.    set temp command
  20691.    substituting for directory path
  20692.    type, formatting disk
  20693.  DSR (data set ready)
  20694.  DTR (data terminal ready)
  20695.  Dual boot
  20696.    AUTOEXEC.BAT
  20697.    AUTOEXEC.DOS
  20698.    boot utility;querying operating system
  20699.    boot utility;using
  20700.    boot utility;Utilities group
  20701.    CONFIG.DOS
  20702.    CONFIG.SYS
  20703.    copy command
  20704.    country command
  20705.    defined
  20706.    device command
  20707.    DOS;directory
  20708.    DOS;starting
  20709.    DOS;upgrading
  20710.    DOS;version
  20711.    HPFS
  20712.    installing
  20713.    mkdir command
  20714.    OS2LDR file
  20715.    set comspec command
  20716.    set path command
  20717.    shell command
  20718.    using
  20719.  Dual-boot
  20720.    HPFS
  20721.  Dynamic priority
  20722.  Dynamic-link library
  20723.  
  20724.      E
  20725.  \e (backslash)
  20726.  EAnnnn.CHK
  20727.  EAnnnn.REC
  20728.  Echo command
  20729.  Editing, System Editor
  20730.  EGA graphics adapter
  20731.  EGA.SYS device driver
  20732.  Ellipsis (...)
  20733.  End, label in batch program
  20734.  Endlocal command
  20735.  Enhanced keyboard
  20736.  Enlarging a window
  20737.  Environment variable
  20738.    adding value to
  20739.    deleting
  20740.    description
  20741.    DOS session
  20742.    DPATH
  20743.    PATH
  20744.    setting
  20745.    TEMP
  20746.  Environment
  20747.     see variable Environment variable
  20748.    inheriting
  20749.    setting up
  20750.    storing data path
  20751.  Equal sign (=)
  20752.  Equal sign
  20753.  Erase function
  20754.  Error Level
  20755.  Error message
  20756.    chkdsk utility
  20757.    CONFIG.SYS
  20758.    help
  20759.    not displaying
  20760.    redirecting
  20761.    sending to file
  20762.  Escape character, in batch program
  20763.  Escape sequences, ANSI
  20764.  Event tracing
  20765.  Exit code
  20766.  Exit command
  20767.    quitting
  20768.  Exit Control Panel command
  20769.  Exit File Manager command
  20770.  Expand All command
  20771.  Expand Branch command
  20772.  Expand One Level command
  20773.  Expanding a directory level
  20774.  EXTDSKDD.SYS device driver
  20775.  Extended attributes
  20776.    .LONGNAME
  20777.    defined
  20778.    HPFS names, preserving
  20779.    searching
  20780.  Extended character set
  20781.  Extended partition
  20782.    creating
  20783.    defined
  20784.    deleting
  20785.    using
  20786.  Extending a selection
  20787.  External disk drive
  20788.  External terminal
  20789.  Extproc command
  20790.  
  20791.      F
  20792.  \.FNT filename extension
  20793.  4201.DCP file
  20794.  5202.DCP file
  20795.  FAT file system
  20796.  FAT
  20797.    transferring files
  20798.  Fcbs command
  20799.  Fdisk utility
  20800.    /d option
  20801.    defined
  20802.  File Details command
  20803.    directory window information
  20804.    setting file flags
  20805.    sorting files
  20806.  File details
  20807.    command
  20808.  File Manager
  20809.    active window
  20810.    arranging windows
  20811.    associating files
  20812.    canceling a selection
  20813.    changing;directory information
  20814.    changing;disk drives
  20815.    changing;displayed information
  20816.    changing;font
  20817.    changing;text size
  20818.    check box
  20819.    confirmation messages
  20820.    converting FAT to HPFS
  20821.    converting HPFS to FAT
  20822.    Copy command;HPFS files
  20823.    copying an HPFS file
  20824.    copying HPFS files
  20825.    defined
  20826.    directory path
  20827.    directory windows
  20828.    enlarging a window
  20829.    extended attributes
  20830.    file listing
  20831.    file properties
  20832.    grayed command
  20833.    grayed option
  20834.    HPFS filenames, confirming
  20835.    HPFS filenames, shortening
  20836.    icon, enlarging
  20837.    icon, restoring
  20838.    including files
  20839.    menu bar
  20840.    messages
  20841.    messages
  20842.    Move command;HPFS files
  20843.    moving HPFS files
  20844.    options
  20845.    position on screen
  20846.    Print command
  20847.    quitting Presentation Manager
  20848.    quitting
  20849.    reducing a window
  20850.    restoring a window
  20851.    saving your settings
  20852.    Search Results window
  20853.    specifying file locations
  20854.    starting an application
  20855.    starting
  20856.    System menu
  20857.    transferring files
  20858.    updating
  20859.    window
  20860.    window, enlarging
  20861.    window, reducing
  20862.    window, restoring
  20863.    window, selecting
  20864.  File menu
  20865.    associating files
  20866.    canceling a selection
  20867.    copying a directory
  20868.    creating a directory
  20869.    creating a file
  20870.    deleting a directory
  20871.    deleting a directory
  20872.    moving a directory
  20873.    moving a file
  20874.    New command
  20875.    Open command
  20876.    printing a file
  20877.    renaming a directory
  20878.    turning off file flags
  20879.    turning on file flags
  20880.  File Options command
  20881.  File-control blocks
  20882.    fcbs command
  20883.  File
  20884.     see batch Batch program
  20885.     see extension Filename extension
  20886.     see File Manager File Manager
  20887.    4201.DCP
  20888.    5202.DCP
  20889.    appending
  20890.    archive flag
  20891.    archive
  20892.    associating
  20893.    asterisk (*)
  20894.    attribute
  20895.    backup;archive flag
  20896.    backup;batch program
  20897.    backup;diskcopy utility
  20898.    backup;Fixed Disk Utility
  20899.    backup;utility
  20900.    block
  20901.    changing printing priority
  20902.    changing;application information
  20903.    changing;rename command
  20904.    checking, chkdsk utility
  20905.    combining
  20906.    comparing
  20907.    CONFIG.SYS
  20908.    contiguous
  20909.    copying
  20910.    copying;archive flag
  20911.    copying;batch program
  20912.    copying;HPFS to FAT
  20913.    copying;in Desktop Manager
  20914.    COUNTRY.SYS
  20915.    creating
  20916.    data file
  20917.    deleting
  20918.    deleting;directory
  20919.    deleting;directory
  20920.    deleting;read-only flag
  20921.    DISPLAY.DLL
  20922.    displaying;contents
  20923.    displaying;in a window
  20924.    displaying;more utility
  20925.    editing text files
  20926.    exists
  20927.    extending a selection
  20928.    filename
  20929.    flag
  20930.    handle
  20931.    hidden
  20932.    icons
  20933.    KEYBOARD.DCP
  20934.    listing
  20935.    log
  20936.    lost clusters
  20937.    moving
  20938.    moving;HPFS to FAT
  20939.    multilevel system
  20940.    naming
  20941.    notational conventions
  20942.    opening, System Editor
  20943.    organizing
  20944.    printing
  20945.    program
  20946.    question mark (?)
  20947.    read-only flag
  20948.    reading input from
  20949.    recovering
  20950.    renaming
  20951.    reserved characters
  20952.    restoring
  20953.    saving changes
  20954.    searching
  20955.    selecting
  20956.    sending error message to
  20957.    sending output to
  20958.    sorting
  20959.    start-up
  20960.    starting an application
  20961.    swapping
  20962.    system
  20963.    system;FAT
  20964.    system;HPFS
  20965.    system;installable
  20966.    temporary
  20967.    transferring between file systems
  20968.    transferring;HPFS to FAT
  20969.    VIOTBL.DCP
  20970.    wildcard character
  20971.  Filename extension
  20972.    associating files
  20973.    batch program
  20974.    defined
  20975.    icons
  20976.    notational conventions
  20977.    period (.)
  20978.    starting an application
  20979.    \&.CHK
  20980.    \&.CMD
  20981.    \&.COM
  20982.    \&.DDP
  20983.    \&.DLL
  20984.    \&.EXE
  20985.    \.FNT
  20986.    \.MET
  20987.    \.PIF
  20988.    \.SMB
  20989.  FILEnnnn.CHK
  20990.  FILEnnnn.REC
  20991.  Find dialog box
  20992.  Find utility
  20993.    /c option
  20994.    /n option
  20995.    /v option
  20996.  Fixed Disk Utility utility
  20997.  Fixed Disk Utility
  20998.    Create Extended Partition command
  20999.    Create Logical Drive command
  21000.    Create Primary Partition command
  21001.    Exit command
  21002.    format utility
  21003.    hard disk configuration
  21004.    hard disk icon
  21005.    logical drive information
  21006.    Make Startable command
  21007.    partition data
  21008.    Partition Information section
  21009.    quitting
  21010.    starting
  21011.  Fixed-size window
  21012.  Floppy disk
  21013.    comparing
  21014.    copying
  21015.    messages
  21016.    utilities
  21017.    volume label
  21018.  Font files
  21019.  Font
  21020.    changing
  21021.    files
  21022.    printer
  21023.    screen
  21024.  For command
  21025.  Format Diskette utility
  21026.  Format utility
  21027.    /4 option
  21028.    /fs option
  21029.    /n option
  21030.    /t option
  21031.    /v option
  21032.    assign utility
  21033.    Fixed Disk Utility
  21034.    HPFS
  21035.    join utility
  21036.    subst utility
  21037.  Formatting
  21038.    text, System Editor
  21039.  FOUND directory
  21040.  French-Canadian code page
  21041.  
  21042.      G
  21043.    (greater-than sign);tree utility
  21044.  Goto command
  21045.  Graftabl utility
  21046.  Graphical interface
  21047.  Graphics adapter
  21048.    devinfo command
  21049.    display mode
  21050.    extended character set
  21051.  Graphics applications problems
  21052.  Graphics files
  21053.  Graphics, ANSI escape sequences
  21054.  Grayed command
  21055.  Grayed option
  21056.  Greater-than sign (
  21057.    )
  21058.    ;);prompt
  21059.  Group menu
  21060.    adding a program group
  21061.    deleting a group
  21062.    File Manager
  21063.    starting Control Panel
  21064.  Groups of applications
  21065.  Groups of options
  21066.  
  21067.      H
  21068.  Handshake
  21069.  Hard disk
  21070.    dual boot
  21071.    icon, Fixed Disk Utility
  21072.    setting up
  21073.    utilities
  21074.    volume label
  21075.  Hardware
  21076.  Help
  21077.    closing the Help window
  21078.    command button
  21079.    command
  21080.    error message
  21081.    index
  21082.    information
  21083.    running an application
  21084.    set help command
  21085.    window
  21086.  Hidden file
  21087.  Hidden flag
  21088.  Hold Job command
  21089.  Hold Queue command
  21090.  Holding a print job
  21091.  How to Run the Program dialog box
  21092.  HPFS
  21093.    chkdsk utility
  21094.    commands, using
  21095.    compatibility;DOS programs
  21096.    compatibility;earlier OS/2 programs
  21097.    copying files to FAT
  21098.    disk caching
  21099.    diskcache command
  21100.    dual-boot
  21101.    earlier OS/2 programs
  21102.    filenames;shortening
  21103.    format utility
  21104.    installation
  21105.    installation;extended partition
  21106.    installation;primary partition
  21107.    lazy writing
  21108.    moving files to FAT
  21109.    multiple file systems
  21110.    naming features
  21111.    naming features;case
  21112.    naming features;characters
  21113.    naming features;commands, using
  21114.    naming features;double quotation marks
  21115.    naming features;preserving in extended attributes
  21116.    preserving;names
  21117.    quitting
  21118.    recover utility
  21119.    Shutdown command
  21120.    transferring files to FAT
  21121.    transferring files
  21122.    utilities, running
  21123.    wildcard characters
  21124.  Hyphen key (\(en)
  21125.  
  21126.      I
  21127.  Icon
  21128.    application, in Program group
  21129.    area
  21130.    cmd
  21131.    command
  21132.    copying a directory
  21133.    data file
  21134.    disk drive
  21135.    DOS
  21136.    enlarging File Manager window
  21137.    enlarging
  21138.    hard disk, Fixed Disk Utility
  21139.    keyboard
  21140.    mouse
  21141.    moving a file
  21142.    moving
  21143.    Print Manager
  21144.    program file
  21145.    reducing File Manager window
  21146.    reducing
  21147.    Restore command
  21148.    restoring File Manager window
  21149.    restoring
  21150.    subdirectory
  21151.    switching between
  21152.    System menu
  21153.    Task List
  21154.    text file
  21155.  Idsr= option
  21156.  If command
  21157.  Inactive command
  21158.  Inactive option
  21159.  Inch, lines per
  21160.  INCLUDE environment variable
  21161.  Include
  21162.    command
  21163.  Index button
  21164.  Infinite time-out
  21165.  Initial capital letters
  21166.  Initialization file
  21167.  Input and output privilege levels
  21168.  Input
  21169.    background program
  21170.    handshake
  21171.    piping
  21172.    reading from file
  21173.    reading from program
  21174.    redirecting
  21175.    sorting
  21176.  Insertion point
  21177.  Installable file system
  21178.  Installation disk
  21179.    chkdsk utility
  21180.    copying
  21181.    ddinstal program
  21182.    display device driver
  21183.  Installation menu
  21184.    deleting fonts
  21185.    deleting printer driver
  21186.  Installation
  21187.    code page
  21188.    CONFIG.SYS
  21189.    device drivers
  21190.    HPFS
  21191.  Interface
  21192.    CONFIG.SYS file
  21193.    graphical
  21194.    protshell command
  21195.  International
  21196.    code page
  21197.    codepage command
  21198.    country code
  21199.    country command
  21200.    keyboard codes
  21201.    keyboard layout
  21202.    subcode
  21203.  Interrupt, intermittent hardware
  21204.  Iopl command
  21205.  Italic type
  21206.  
  21207.      J
  21208.  Job Details command
  21209.  Job Details command
  21210.  Job Details dialog box
  21211.  Job Details dialog box
  21212.  Job identifier
  21213.  Job menu
  21214.    canceling a print job
  21215.    holding a print job
  21216.    moving a print job
  21217.    print job information
  21218.    releasing a print job
  21219.    repeating a print job
  21220.  Join utility
  21221.    /d option
  21222.    assign utility
  21223.    diskcopy utility
  21224.    recover utility
  21225.  
  21226.      K
  21227.  Key
  21228.     see arrow \s-2DIRECTION\s+2 key
  21229.    ENTER+LINEFEED
  21230.    initial letter
  21231.    moving in text box
  21232.    notational conventions
  21233.    pause command
  21234.    shortcut keys
  21235.  Keyb utility
  21236.  Keyboard reference
  21237.    System Editor
  21238.  KEYBOARD.DCP file
  21239.  Keyboard
  21240.    code page
  21241.    codes
  21242.    devinfo command
  21243.    direct-access method
  21244.    enhanced
  21245.    Help information
  21246.    icon
  21247.    input from
  21248.    international
  21249.    Keys Help information
  21250.    layout
  21251.    notational conventions
  21252.    shortcut keys
  21253.    subcode
  21254.    System Editor reference
  21255.  Keynames
  21256.  Keys button
  21257.  
  21258.      L
  21259.  \&.LONGNAME
  21260.    extended attribute
  21261.  Label Diskettes utility
  21262.  Label utility
  21263.    assign utility
  21264.    join utility
  21265.    subst utility
  21266.  Language, code page
  21267.  Large Font command
  21268.  Lazy writing
  21269.  Less-than sign (<)
  21270.    prompt
  21271.  LIB environment variable
  21272.  Libpath command
  21273.  Line, characters per
  21274.  Line, System Editor
  21275.    deleting
  21276.    joining
  21277.  Lines per inch
  21278.  List box
  21279.    defined
  21280.    selecting in
  21281.  Local variable
  21282.  Log, backup utility
  21283.  Logical drive
  21284.    creating
  21285.    deleting
  21286.    information, displaying
  21287.    letter
  21288.    using
  21289.    volume label
  21290.  Logo Display dialog box
  21291.  Logo display time
  21292.  
  21293.      M
  21294.  \.MET filename extension
  21295.  Machine instructions
  21296.  Main Group
  21297.    OS/2 Full-Screen Command Prompt
  21298.    programs
  21299.  Main-group window
  21300.    Command Reference
  21301.  Makeini utility
  21302.  Managing memory
  21303.  Maximize box
  21304.  Maximize command
  21305.    Control Panel
  21306.    defined
  21307.    enlarging an icon
  21308.    Presentation Manager applications
  21309.    shortcut keys
  21310.    sizing a window
  21311.  Maxwait command
  21312.  Memman command
  21313.  Memory
  21314.    buffers command
  21315.    clipboard
  21316.    disk caching
  21317.    DOS session
  21318.    lazy writing
  21319.    managing
  21320.    memman command
  21321.    moving
  21322.    resident in
  21323.    swapping;memman command
  21324.    swapping;swappath command
  21325.    terminate-and-stay-resident programs
  21326.    threads
  21327.    virtual disk drive
  21328.  Menu bar
  21329.    choosing commands
  21330.    defined
  21331.    File Manager
  21332.    full-screen OS/2 application
  21333.    Help
  21334.    menus
  21335.    underlined letters
  21336.  Menu
  21337.     see fdisk Fdisk utility
  21338.    Arrange
  21339.    canceling
  21340.    choosing commands
  21341.    defined
  21342.    File
  21343.    File;associating files
  21344.    File;canceling a selection
  21345.    File;copying a directory
  21346.    File;creating a directory
  21347.    file;creating a file
  21348.    File;moving a directory
  21349.    File;moving a file
  21350.    File;printing a file
  21351.    File;renaming a directory
  21352.    File;turning off file flags
  21353.    File;turning on file flags
  21354.    Group
  21355.    Group;adding a program group
  21356.    Group;deleting a group
  21357.    Group;File Manager
  21358.    Group;Help information
  21359.    Group;starting Control Panel
  21360.    Installation;deleting a printer driver
  21361.    Installation;deleting fonts
  21362.    Job;canceling a print job
  21363.    Job;holding a print job
  21364.    Job;moving a print job
  21365.    Job;print job information
  21366.    Job;releasing a print job
  21367.    Job;repeating a print job
  21368.    Options;changing country settings
  21369.    Options;changing messages
  21370.    Options;setting file flags
  21371.    Options;starting an application
  21372.    Options;warning beep
  21373.    Preferences;adjusting screen contrast
  21374.    Preferences;changing border width
  21375.    Preferences;changing screen colors
  21376.    Program
  21377.    Queue;canceling all print jobs
  21378.    Refresh
  21379.    Setup;adding a printer
  21380.    Setup;changing print queues
  21381.    Setup;changing print-queue connections
  21382.    Setup;changing printer names
  21383.    Setup;changing the default printer
  21384.    Setup;communications port
  21385.    Shutdown
  21386.    System;commands
  21387.    System;defined
  21388.    System;dialog box
  21389.    System;quitting cmd
  21390.    System;restoring a window
  21391.    System;selecting
  21392.    System;sizing a window
  21393.    System;switching to Task List
  21394.    \s-2ESC\s+2 key
  21395.  MenuSystem
  21396.     see box System Menu
  21397.  Message
  21398.    batch program
  21399.    deleting a directory
  21400.    DOS session
  21401.    end the program
  21402.    error
  21403.    help
  21404.    modifying
  21405.    modifying
  21406.    MS OS/2
  21407.    redirecting
  21408.    retry the operation
  21409.    return the error to the program
  21410.  Metafile graphics files
  21411.    converting
  21412.    picture utilities
  21413.  Minimize box
  21414.    defined
  21415.    reducing a window
  21416.  Minimize command
  21417.    defined
  21418.    reducing a window
  21419.    shortcut keys
  21420.    sizing a window
  21421.  Minimize On Run command
  21422.  Minus key (\(en)
  21423.  Mkdir command
  21424.  Mode utility
  21425.    description
  21426.    DOS session
  21427.    p option
  21428.    parallel printers
  21429.    serial port
  21430.    setcom40 utility
  21431.  Mode
  21432.     see utility Mode utility
  21433.    option
  21434.    protected-mode shell
  21435.  Modem
  21436.  Modifying
  21437.    CONFIG.SYS
  21438.    environment variable
  21439.    messages
  21440.    messages
  21441.  Module, dynamic-link library
  21442.  Monochrome display
  21443.  Monospace type
  21444.  More utility
  21445.  Mouse command
  21446.  Mouse
  21447.    arrow pointer
  21448.    button
  21449.    click
  21450.    device driver;changing operation
  21451.    device driver;options
  21452.    device driver;setting up
  21453.    DOS session
  21454.    double-click
  21455.    drag
  21456.    Help information
  21457.    icon
  21458.    notational conventions
  21459.    options
  21460.    point
  21461.    pointer
  21462.    procedures
  21463.    serial
  21464.  MOUSEA02.SYS device driver
  21465.  Move command
  21466.    copying files into a new directory
  21467.    defined
  21468.    File Manager
  21469.    icon
  21470.    moving a directory
  21471.    moving a file
  21472.    shortcut keys
  21473.    window
  21474.  Move dialog box
  21475.  Moving
  21476.     see between applications Switching
  21477.    cursor, System Editor
  21478.    directories;FAT to HPFS
  21479.    directory
  21480.    drive
  21481.    file
  21482.    files;FAT to HPFS
  21483.    HPFS to FAT
  21484.    icon
  21485.    in check box
  21486.    in dialog box
  21487.    print job
  21488.    text, System Editor
  21489.    window
  21490.  MS OS/2
  21491.    command interpreter
  21492.    command interpreter;directory naming conventions
  21493.    command interpreter;filename conventions
  21494.    command interpreter;printing a file
  21495.    command interpreter;quitting
  21496.    command interpreter;running in a window
  21497.    command interpreter;starting an application
  21498.    command prompt
  21499.    file flags
  21500.    file system
  21501.    font files
  21502.    graphical interface
  21503.    introduction
  21504.    messages
  21505.    naming conventions
  21506.    printer driver files
  21507.    prompt
  21508.    prompt
  21509.    version number
  21510.    warning beep
  21511.  MSBUS01.SYS device driver
  21512.  MSINP01.SYS device driver
  21513.  MSSER01.SYS device driver
  21514.  Multilingual code page
  21515.  Multitasking
  21516.    modifying
  21517.    priority
  21518.  
  21519.      N
  21520.  Name
  21521.    command
  21522.  Naming
  21523.     see disk Label command
  21524.    directories;FAT
  21525.    directories;HPFS
  21526.    directory
  21527.    files
  21528.    files;FAT
  21529.    files;HPFS
  21530.  New Group dialog box
  21531.  New Program dialog box
  21532.  New Program dialog box
  21533.  Next command
  21534.  Notational conventions
  21535.  
  21536.      O
  21537.  Octs= option
  21538.  Odsr= option
  21539.  Open command
  21540.    directory window
  21541.    starting an application
  21542.  Opening a file
  21543.    application
  21544.    System Editor
  21545.  Option button
  21546.    defined
  21547.    selecting
  21548.    underlined letters
  21549.  Option groups
  21550.  Option
  21551.    +a, attrib utility
  21552.    +r, attrib utility
  21553.    /4, format utility
  21554.    /a;backup utility
  21555.    /a;copy command
  21556.    /a;restore utility
  21557.    /a;xcopy utility
  21558.    /b;copy command
  21559.    /b;restore utility
  21560.    /c;find utility
  21561.    /c;start command
  21562.    /d;backup utility
  21563.    /d;join utility
  21564.    /d;print utility
  21565.    /d;subst utility
  21566.    /e;append utility
  21567.    /e;restore utility
  21568.    /e;xcopy utility
  21569.    /f;chkdsk utility
  21570.    /f;start command
  21571.    /f;tree utility
  21572.    /fs, start command
  21573.    /i, start command
  21574.    /k, start command
  21575.    /L;backup utility
  21576.    /L;restore utility
  21577.    /m;backup utility
  21578.    /m;restore utility
  21579.    /m;xcopy utility
  21580.    /n;find utility
  21581.    /n;format utility
  21582.    /n;restore utility
  21583.    /n;start command
  21584.    /p;dir command
  21585.    /p;restore utility
  21586.    /p;xcopy utility
  21587.    /pm, start command
  21588.    /q, batch program
  21589.    /s;attrib utility
  21590.    /s;backup utility
  21591.    /s;restore utility
  21592.    /s;xcopy utility
  21593.    /t;backup utility
  21594.    /t;format utility
  21595.    /v;chkdsk utility
  21596.    /v;copy command
  21597.    /v;find utility
  21598.    /v;format utility
  21599.    /v;xcopy utility
  21600.    /w, dir command
  21601.    /win, start command
  21602.    dtr=, mode utility
  21603.    idsr=, mode utility
  21604.    mode
  21605.    notational conventions
  21606.    octs=, mode utility
  21607.    odsr=, mode utility
  21608.    p, mode utility
  21609.    parallel printer, mode utility
  21610.    qsize
  21611.    rts=, mode utility
  21612.    serial
  21613.    to=, mode utility
  21614.    xon=, mode utility
  21615.    \(ena, attrib utility
  21616.    \(enr, attrib utility
  21617.  Options menu
  21618.    changing country settings
  21619.    changing messages
  21620.    setting file flags
  21621.    starting an application
  21622.    warning beep
  21623.  Or symbol (||)
  21624.  Organizing
  21625.    directories
  21626.    files
  21627.    screen
  21628.  OS/2 Full-Screen Command Prompt
  21629.  OS/2 Windowed Command Prompt
  21630.    defined
  21631.  OS2.INI file
  21632.  OS2LDR file
  21633.  OS2SYS.INI file
  21634.  Output
  21635.    ANSI escape sequences
  21636.    appearance on screen
  21637.    appending to file
  21638.    background program
  21639.    handshake
  21640.    piping
  21641.    printing
  21642.    redirecting
  21643.    screenful, by the
  21644.    sending to program
  21645.    sorting
  21646.    utility
  21647.  
  21648.      P
  21649.  \.PIF filename extension
  21650.  P option
  21651.  Page, displaying by
  21652.  Parallel
  21653.    port
  21654.    printer
  21655.  Parameter, replaceable
  21656.  Parent directory
  21657.  Parentheses [()]
  21658.    prompt
  21659.  Parentheses, in batch program
  21660.  Parity
  21661.  Partition
  21662.    data, displaying
  21663.    extended;creating
  21664.    extended;defined
  21665.    extended;deleting
  21666.    extended;HPFS
  21667.    extended;using
  21668.    primary;creating
  21669.    primary;deleting
  21670.    primary;hard disk
  21671.    primary;HPFS
  21672.    size
  21673.    start-up;changing
  21674.    start-up;defined
  21675.  Path command
  21676.  PATH environment variable
  21677.  Path
  21678.     see data Data path
  21679.    Add command
  21680.    Add command
  21681.    adding directory
  21682.    data path
  21683.    displaying
  21684.    set path command
  21685.  Pause command
  21686.  Pauseonerror command
  21687.  PCMOU01.SYS device driver
  21688.  Percent sign, double
  21689.    for command
  21690.    shift command
  21691.  Percent sign
  21692.    batch programs
  21693.    for command
  21694.    replaceable parameter
  21695.  Period
  21696.  Picture interchange files
  21697.    converting
  21698.    picture utilities
  21699.  Picture utilities
  21700.    converting graphics files
  21701.    displaying pictures
  21702.    printing pictures
  21703.    starting
  21704.    using
  21705.  Pipe symbol (|)
  21706.    prompt
  21707.  Pipe
  21708.    call command
  21709.    double
  21710.    more utility
  21711.    using
  21712.  Placeholder
  21713.  Plus key (+)
  21714.  Plus sign (+)
  21715.  PMDD.SYS
  21716.  Point
  21717.  POINTDD.SYS device driver
  21718.  Pointer
  21719.    device driver
  21720.    mouse
  21721.  Port
  21722.    asynchronous
  21723.    mouse device driver
  21724.    parallel
  21725.    print utility
  21726.    printer, sending output to
  21727.    sending output to
  21728.    serial;arguments
  21729.    serial;device driver
  21730.    serial;DOS session
  21731.    serial;mode utility
  21732.    serial;mouse device driver
  21733.    serial;printer
  21734.  Portuguese code page
  21735.  Preferences menu
  21736.    adjusting screen contrast
  21737.    changing border width
  21738.    changing screen colors
  21739.  Presentation Manager
  21740.    active window
  21741.    application
  21742.    application
  21743.    check box
  21744.    command buttons
  21745.    command names
  21746.    configuration
  21747.    Control Panel
  21748.    data files
  21749.    default options
  21750.    Desktop Manager
  21751.    device driver
  21752.    dialog boxes
  21753.    File Manager
  21754.    full-screen OS/2 applications
  21755.    graphical interface
  21756.    grayed options
  21757.    Help
  21758.    icons
  21759.    introduction
  21760.    list boxes
  21761.    messages
  21762.    mouse double-click rate
  21763.    notational conventions
  21764.    option buttons
  21765.    Print Manager
  21766.    Printer Installer
  21767.    printing a file
  21768.    screen
  21769.    scrolling window contents
  21770.    selecting
  21771.    session
  21772.    setting up
  21773.    sizing a window
  21774.    starting an application
  21775.    switching between applications
  21776.    Task List
  21777.    text box
  21778.    window
  21779.  Primary partition
  21780.    creating
  21781.    deleting
  21782.    hard disk
  21783.  Print command
  21784.  Print Job Next command
  21785.  Print job
  21786.  Print Manager
  21787.    active window
  21788.    canceling a print job
  21789.    changing;options with Control Panel
  21790.    changing;printing priority
  21791.    changing;settings
  21792.    commands
  21793.    DOS session
  21794.    holding a print job
  21795.    icon
  21796.    introduction
  21797.    job identifier
  21798.    OS2SYS.INI file
  21799.    print job
  21800.    print queue
  21801.    printing order
  21802.    releasing a print job
  21803.    spooler path
  21804.    starting a print job over
  21805.    updating work area
  21806.  Print Picture utility
  21807.    Control menu
  21808.    defined
  21809.    File menu
  21810.    using
  21811.  Print queue
  21812.  Print utility
  21813.    /d option
  21814.    assign utility
  21815.  Print-queue connections
  21816.  Printer drivers
  21817.  Printer Installer dialog box
  21818.  Printer Installer
  21819.    adding a printer
  21820.    changing default printer setting
  21821.    introduction
  21822.    starting
  21823.  Printer Names dialog box
  21824.  Printer
  21825.    adding;default printer
  21826.    adding;font file
  21827.    adding;printer driver
  21828.    adding;printer names
  21829.    adding;printer
  21830.    adding;queues
  21831.    code page
  21832.    default
  21833.    deleting a printer
  21834.    devinfo command
  21835.    drivers
  21836.    font table
  21837.    name
  21838.    network
  21839.    parallel
  21840.    port
  21841.    print utility
  21842.    print-queue connections
  21843.    Printers command
  21844.    Printers dialog box
  21845.    queue driver
  21846.    queues
  21847.    removing a queue driver
  21848.    serial
  21849.  Printers command
  21850.    changing;printer-driver connections
  21851.    deleting a printer
  21852.  Printers dialog box
  21853.  Printing
  21854.    canceling a print job
  21855.    canceling a print job
  21856.    changing the priority
  21857.    changing the spooler path
  21858.    Control Panel
  21859.    controlling print jobs
  21860.    file
  21861.    graphics files
  21862.    holding a print job
  21863.    job information
  21864.    job priority
  21865.    moving a print job
  21866.    output, redirection
  21867.    pictures
  21868.    preventing jobs from printing
  21869.    print job order
  21870.    print utility
  21871.    priority
  21872.    releasing a print job
  21873.    restarting job
  21874.    resuming
  21875.    setting up a printer
  21876.    status
  21877.  Priority command
  21878.  Privilege level, input and output
  21879.  Process
  21880.    active
  21881.    identification number
  21882.  Program group window
  21883.    changing display
  21884.    display
  21885.  Program group
  21886.    changing
  21887.    copying application files
  21888.    defined
  21889.    deleting application files
  21890.    naming
  21891.  Program menu
  21892.  Program
  21893.     see batch Batch program
  21894.     see group Program group
  21895.     see threads Threads command
  21896.    background;detach command
  21897.    background;redirecting messages from
  21898.    background;run command
  21899.    background;starting in
  21900.    changing information
  21901.    copying in Desktop Manager
  21902.    data path
  21903.    detached
  21904.    file
  21905.    foreground
  21906.    foreground;call command
  21907.    output
  21908.    reading input from
  21909.    running from cmd
  21910.    sending output to
  21911.    start-up
  21912.    starting;background
  21913.    starting;DOS session
  21914.    starting;from cmd
  21915.    starting;full-screen
  21916.    starting;PATH variable
  21917.    starting;start command
  21918.    starting;without starting cmd
  21919.    stopping
  21920.    title
  21921.    window
  21922.  Prompt
  21923.    ampersand (&)
  21924.    changing
  21925.    cmd
  21926.    date
  21927.    default drive
  21928.    disappears
  21929.    dollar sign ($)
  21930.    DOS
  21931.    equal sign (=)
  21932.    greater-than sign (;;)
  21933.    less-than sign (<)
  21934.    parentheses [()]
  21935.    pipe symbol (|)
  21936.    setting
  21937.    time
  21938.    version number
  21939.    working directory, default drive
  21940.    \s-2ENTER+LINEFEED\s0
  21941.  Prompting, restore utility
  21942.  Properties command
  21943.  Properties dialog box
  21944.  Protected-mode shell
  21945.  Protectonly command
  21946.  Protshell command
  21947.  
  21948.      Q
  21949.  Qsize option
  21950.  Question mark (?)
  21951.  Queue driver
  21952.  Queue menu
  21953.    canceling all print jobs
  21954.    preventing jobs from printing
  21955.  Queues command
  21956.  Queues dialog box
  21957.  Quitting
  21958.    application
  21959.    application
  21960.    cmd
  21961.    MS OS/2 command interpreter
  21962.    Presentation Manager
  21963.    System Editor
  21964.  
  21965.      R
  21966.  RAM disk program
  21967.  Read-only file
  21968.  Read-only flag
  21969.    displaying
  21970.    setting
  21971.  Recover utility
  21972.    EAnnnn.REC
  21973.    FILEnnnn.REC
  21974.    HPFS
  21975.    join utility
  21976.    subst utility
  21977.  Redirection
  21978.     see pipe Pipe
  21979.    appending output to file
  21980.    batch program
  21981.    call command
  21982.    combining redirection symbols
  21983.    defined
  21984.    drive, to or from
  21985.    input from file
  21986.    more utility
  21987.    remote terminal
  21988.    tree utility
  21989.  Reducing a window
  21990.  Refresh command
  21991.  Refresh menu
  21992.  Refresh Now command
  21993.  Release Job command
  21994.  Rem command
  21995.  Removing
  21996.    directory
  21997.    file
  21998.    queue driver
  21999.  Rename command
  22000.  Rename dialog box
  22001.    directory
  22002.  Rename Group dialog box
  22003.  Repeat Job command
  22004.  Replaceable parameter
  22005.  Resident in memory
  22006.  Restarting
  22007.    scrolling
  22008.    system
  22009.  Restore box
  22010.  Restore command
  22011.    defined
  22012.    shortcut keys
  22013.    sizing a window
  22014.    window
  22015.  Restore utility
  22016.    /a option
  22017.    /b option
  22018.    /e option
  22019.    /L option
  22020.    /m option
  22021.    /n option
  22022.    /p option
  22023.    /s option
  22024.    archive flag
  22025.    filenames identical
  22026.  Restoring
  22027.    file
  22028.    icon
  22029.    window
  22030.  Resume Task List command
  22031.  Rmdir command
  22032.  Rmsize command
  22033.  ROM
  22034.  Root directory
  22035.  Rows per screen
  22036.  RTS (request to send)
  22037.  Rts= option
  22038.  Run command
  22039.  Running
  22040.    application, from cmd
  22041.    batch program
  22042.    program, from cmd
  22043.  
  22044.      S
  22045.  \s-2ALT\s0 key
  22046.    choosing a command
  22047.    moving a directory
  22048.    moving a file between directories
  22049.    selecting;System menu
  22050.    selecting;Task List
  22051.    shortcut keys
  22052.    switching between applications
  22053.    switching from DOS session
  22054.  \s-2CTRL\s+2 key
  22055.    copying files
  22056.    DOS programs
  22057.    end-of-file marker
  22058.    scrolling
  22059.    selecting;last directory listed
  22060.    selecting;root directory
  22061.    selecting;scattered files
  22062.    selecting;System menu
  22063.    shortcut keys
  22064.    stopping a program
  22065.    switching to Task List
  22066.    viewing a directory
  22067.  \s-2DIRECTION\s+2 key
  22068.    choosing a command
  22069.    extending a selection
  22070.    Help index
  22071.    moving;cursor
  22072.    moving;icons
  22073.    moving;in a list box
  22074.    moving;in a text box
  22075.    moving;windows
  22076.    scrolling
  22077.    selecting
  22078.    selecting;command button
  22079.    selecting;list box
  22080.    selecting;option button
  22081.    sizing a window
  22082.    starting an application
  22083.    switching applications
  22084.  \s-2END\s+2 key
  22085.    list box
  22086.    scrolling
  22087.    selecting
  22088.    System Editor
  22089.    text box
  22090.  \s-2ENTER+LINEFEED\s0 prompt
  22091.  \s-2ESC\s+2 key
  22092.    canceling
  22093.    selecting, System menu
  22094.    shortcut keys
  22095.    switching applications
  22096.    switching to Task List
  22097.  \s-2F10\s+2 key
  22098.  \s-2F11\s+2 key
  22099.  \s-2F1\s+2 key
  22100.  \s-2F4\s+2 key
  22101.  \s-2F5\s+2 key
  22102.  \s-2F7\s+2 key
  22103.  \s-2F8\s+2 key
  22104.  \s-2F9\s+2 key
  22105.  \s-2HOME\s+2 key
  22106.    scrolling
  22107.    selecting;directory window
  22108.    selecting;list box
  22109.    selecting;root directory
  22110.    selecting;text box
  22111.    System Editor
  22112.  \s-2LEFT\s+2 key
  22113.    choosing commands
  22114.    cursor-blink rate
  22115.    system date
  22116.    system time
  22117.  \s-2PAGE DOWN\s+2 key
  22118.    list box
  22119.    scrolling
  22120.    selecting
  22121.    System Editor
  22122.  \s-2PAGE UP\s+2 key
  22123.    list box
  22124.    scrolling
  22125.    selecting
  22126.    System Editor
  22127.  \s-2RIGHT\s+2 key
  22128.    cursor-blink rate
  22129.    scrolling
  22130.    selecting
  22131.    system date
  22132.    system time
  22133.  \s-2SHIFT\s+2 key
  22134.    dialog box
  22135.    extended selection
  22136.    options
  22137.    System menu
  22138.  \s-2SPACEBAR\s+2
  22139.    canceling selection
  22140.    selecting;options
  22141.    selecting;scattered files
  22142.    selecting;System menu
  22143.  \s-2TAB\s+2 key
  22144.    check box
  22145.    cursor-blink rate
  22146.    selecting;check box
  22147.    selecting;options
  22148.    selecting;Task List
  22149.    switching applications
  22150.    system date
  22151.    System Editor
  22152.    system time
  22153.  \s-2UP\s+2 key
  22154.    choosing commands
  22155.    Scroll command
  22156.    selecting;a directory
  22157.    selecting;directory window
  22158.    system date
  22159.    system time
  22160.  \.SMB filename extension
  22161.  Save As command
  22162.  Save As dialog box
  22163.  Save command
  22164.  Save dialog box
  22165.  Saving a file
  22166.  Screen Colors command
  22167.  Screen Colors dialog box
  22168.  Screen
  22169.    appearance
  22170.    application
  22171.    arranging
  22172.    changing how applications run
  22173.    clearing
  22174.    code page
  22175.    colors
  22176.    contrast
  22177.    device driver
  22178.    devinfo command
  22179.    enlarging a window
  22180.    full-screen OS/2
  22181.    graphics
  22182.    icon area
  22183.    logo display time
  22184.    messages
  22185.    organizing
  22186.    output to
  22187.    Presentation Manager
  22188.    rows per
  22189.    scrolling window contents
  22190.    sessions
  22191.    System menu
  22192.    viewing by
  22193.    window border width
  22194.  Screenful, displaying by
  22195.  Scroll arrow
  22196.  Scroll bar
  22197.  Scroll box
  22198.  Scroll command
  22199.  Scrolling
  22200.    continuously
  22201.    one line
  22202.    one screen
  22203.    resuming
  22204.    stopping
  22205.    System Editor
  22206.    window contents
  22207.    \s-2CTRL\s+2 key
  22208.    \s-2END\s+2 key
  22209.    \s-2PAGE DOWN\s+2 key
  22210.    \s-2PAGE UP\s+2 key
  22211.  Search-and-replace
  22212.  Searching
  22213.    directory
  22214.    extended attributes
  22215.    file
  22216.    properties
  22217.    results
  22218.    wildcard characters
  22219.  Sector
  22220.    chkdsk utility
  22221.    format utility
  22222.    recover utility
  22223.  Select All command
  22224.  Selecting
  22225.    all files
  22226.    applications
  22227.    canceling
  22228.    check box
  22229.    command button
  22230.    defined
  22231.    dialog box
  22232.    directory window
  22233.    drive
  22234.    extending
  22235.    groups of items
  22236.    Help information
  22237.    keyboard
  22238.    list box
  22239.    mouse
  22240.    moving more than one file
  22241.    options
  22242.    Presentation Manager
  22243.    scattered items
  22244.    System menu
  22245.    text box
  22246.    undoing the last selection
  22247.    window
  22248.    work area
  22249.    \s-2DIRECTION\s+2 keys
  22250.    \s-2SPACEBAR\s+2
  22251.  Selection cursor
  22252.    canceling a selection
  22253.    command button
  22254.    current directory
  22255.    defined
  22256.    dialog box
  22257.    directory
  22258.    dotted box
  22259.    shape
  22260.  Serial mouse
  22261.  Session
  22262.    ANSI escape sequences
  22263.    basic kinds
  22264.    defined
  22265.    DOS
  22266.    end automatically
  22267.    environment
  22268.    start-up files
  22269.    switching between
  22270.  Set bookshelf command
  22271.  Set command
  22272.  Set comspec command
  22273.  Set dpath command
  22274.  Set path command
  22275.  Set prompt command
  22276.  Set temp command
  22277.  Setcom40 utility
  22278.  Setlocal command
  22279.  Setting up
  22280.     see hard disk Hard disk
  22281.    DOS session
  22282.    environment
  22283.    external disk drive
  22284.    mouse device driver
  22285.    Presentation Manager session
  22286.    printer
  22287.  Setting
  22288.    arguments for device
  22289.    date
  22290.    display mode
  22291.    file flags
  22292.    prompt
  22293.    time
  22294.    variable
  22295.  Setup menu
  22296.    adding a printer
  22297.    changing;default printer
  22298.    changing;print queues
  22299.    changing;print-queue connections
  22300.    changing;printer names
  22301.    changing;Printer Timeouts settings
  22302.    communications port
  22303.  Shell command
  22304.  Shell
  22305.    Presentation Manager
  22306.    protshell command
  22307.  Shift command
  22308.  Shortcut keys
  22309.  Shutdown menu
  22310.  Shutdown Now command
  22311.  SideKick
  22312.  Size command
  22313.    defined
  22314.    File Manager
  22315.    shortcut keys
  22316.    sizing a window
  22317.  Size
  22318.     see disk Disk
  22319.    DOS session
  22320.  Sizing a window
  22321.  Small capital letters
  22322.  Small Font command
  22323.  SMARTDrive
  22324.  Sort by
  22325.    command
  22326.  Sort utility
  22327.  Sorting
  22328.    by column
  22329.    files
  22330.    input
  22331.    output
  22332.  Special character
  22333.  Square bracket ([ ])
  22334.  Standard error
  22335.  Standard input
  22336.  Standard output
  22337.  Start command
  22338.    /c option
  22339.    /f option
  22340.    /i option
  22341.    /k option
  22342.    /n option
  22343.    /pm option
  22344.    /win option
  22345.    applications
  22346.    batch program
  22347.    environment, inheriting
  22348.    program title
  22349.    starting program without starting cmd
  22350.    window, starting program in
  22351.  Start Job Again command
  22352.  Start-up disk
  22353.  Start-up file
  22354.    description
  22355.    start command
  22356.  Start-up program
  22357.  Starting
  22358.    application;from cmd
  22359.    application;full-screen
  22360.    application;Presentation Manager
  22361.    application;window
  22362.    batch program
  22363.    cmd
  22364.    DOS application
  22365.    print job
  22366.    program;background
  22367.    program;DOS session
  22368.    program;foreground
  22369.    program;full-screen
  22370.    program;PATH variable
  22371.    program;start command
  22372.    scrolling again
  22373.    System Editor
  22374.  STARTUP.CMD file
  22375.  Status
  22376.     see partition Fdisk utility, Fixed Disk Utility
  22377.    disk
  22378.    report
  22379.  Stop bit
  22380.  Stopping
  22381.    batch program
  22382.    program
  22383.    scrolling
  22384.  String
  22385.    comparing
  22386.    finding
  22387.  Subcode, keyboard
  22388.  Subst utility
  22389.    /d option
  22390.    assign utility
  22391.    diskcopy utility
  22392.    recover utility
  22393.  Substituted disk drive
  22394.    subst utility
  22395.  Swappath command
  22396.  Swapping
  22397.  Switch To command
  22398.  Switch Window command
  22399.    File Manager
  22400.  Switching
  22401.    applications
  22402.    code pages
  22403.    directories
  22404.    drives
  22405.    from DOS session
  22406.    icons
  22407.    sessions
  22408.  Syntax, notational conventions
  22409.  System date
  22410.  System Editor
  22411.    Autosave command
  22412.    blank line, inserting
  22413.    colors
  22414.    copying text
  22415.    creating file
  22416.    cursor
  22417.    deleting text
  22418.    directory path
  22419.    displaying directory
  22420.    Edit menu
  22421.    Exit
  22422.    File menu
  22423.    file
  22424.    Find command
  22425.    font, changing
  22426.    inserting text
  22427.    joining line
  22428.    keyboard reference
  22429.    menu bar
  22430.    moving text
  22431.    opening file
  22432.    printing
  22433.    quitting
  22434.    replacing text
  22435.    saving file
  22436.    scrolling
  22437.    searching for text
  22438.    starting
  22439.    undo
  22440.    \s-2CTRL+END\s+2
  22441.    \s-2CTRL+HOME\s+2
  22442.    \s-2DIRECTION\s+2 keys
  22443.  System flag
  22444.  System menu
  22445.    box;closing a directory window
  22446.    box;defined
  22447.    box;MS OS/2 application
  22448.    box;using
  22449.    commands
  22450.    defined
  22451.    dialog box
  22452.    quitting cmd
  22453.    restoring a window
  22454.    selecting
  22455.    sizing a window
  22456.    switching to Task List
  22457.  System
  22458.    file
  22459.    messages
  22460.    restarting
  22461.    start-up, start command
  22462.    time
  22463.    tracing
  22464.  
  22465.      T
  22466.  TAB key
  22467.    Command Reference
  22468.  Task List command
  22469.    defined
  22470.    shortcut keys
  22471.  Task List
  22472.    applications currently running
  22473.    defined
  22474.    icon
  22475.    Main Group
  22476.    quitting an application
  22477.    reducing a window
  22478.    restoring a window
  22479.    scroll bars
  22480.    session listing
  22481.    sizing a window
  22482.    switching between applications
  22483.    System-menu command
  22484.    window
  22485.  Task menu
  22486.  TEMP environment variable
  22487.  Temporary files
  22488.  Terminal
  22489.    external
  22490.    remote
  22491.  Terminate-and-stay-resident programs
  22492.  Text box
  22493.    defined
  22494.    deleting
  22495.    moving in
  22496.    selecting in
  22497.  Text selection
  22498.  Thread priority
  22499.  Threads command
  22500.  Tile command
  22501.  Time command
  22502.  Time slice
  22503.  Time-dependent program
  22504.  Time-out loop
  22505.  Time-out processing
  22506.  Time
  22507.    country settings
  22508.    file modified
  22509.    of file or directory
  22510.    prompt
  22511.    restore utility
  22512.    setting
  22513.  Timeslice command
  22514.  Title bar
  22515.    active window
  22516.    arranging windows
  22517.    defined
  22518.    directory window
  22519.    moving a window
  22520.  TMP environment variable
  22521.  To= option
  22522.  Trace command
  22523.  Tracebuf command
  22524.  Tracks
  22525.  Translation table
  22526.  Tree menu
  22527.    changing displayed information
  22528.    expanding a directory level
  22529.  Tree utility
  22530.  Turning off your computer
  22531.  Two-headed arrow
  22532.  Type command
  22533.  Type dialog box
  22534.  Types of messages
  22535.  
  22536.      U
  22537.  Undo command
  22538.  Undo Selection command
  22539.  United States code page
  22540.  Up scroll arrow
  22541.  Utilities group
  22542.  Utility Programs group
  22543.  Utility
  22544.    ansi
  22545.    append
  22546.    assign
  22547.    attrib
  22548.    backup
  22549.    batch program
  22550.    boot
  22551.    chkdsk
  22552.    comp
  22553.    Compare Diskette
  22554.    Convert Picture
  22555.    Copy Diskette
  22556.    defined
  22557.    Desktop Manager
  22558.    Disk Information
  22559.    diskcomp
  22560.    diskcopy
  22561.    Display Picture
  22562.    DOS session
  22563.    fdisk
  22564.    find
  22565.    Fixed Disk Utility
  22566.    Fixed Disk
  22567.    Format Diskette
  22568.    format
  22569.    graftabl
  22570.    help
  22571.    HPFS, running with
  22572.    join
  22573.    keyb
  22574.    Label Diskettes
  22575.    label
  22576.    makeini
  22577.    mode
  22578.    more
  22579.    notational conventions
  22580.    output
  22581.    piping input and output
  22582.    Print Picture
  22583.    print
  22584.    recover
  22585.    restore
  22586.    setcom40
  22587.    sort
  22588.    starting
  22589.    subst
  22590.    tree
  22591.    Utilities group
  22592.    xcopy
  22593.  
  22594.      V
  22595.  Variable
  22596.    environment;DOS session
  22597.    environment;DPATH
  22598.    environment;setting
  22599.    environment;TEMP
  22600.    for command
  22601.    local
  22602.    setting
  22603.    using
  22604.  VDISK.SYS device driver
  22605.  Ver command
  22606.  Version number
  22607.  Version-number prompt
  22608.  Vertical scroll bar
  22609.  VGA graphics adapter
  22610.  Video-font table
  22611.  Viewing
  22612.    environment variable
  22613.    file contents
  22614.    path
  22615.    volume label
  22616.  VIOTBL.DCP file
  22617.  Virtual disk drive
  22618.    chkdsk utility
  22619.    diskcopy utility
  22620.    DOS session
  22621.    restarting system
  22622.    VDISK.SYS device driver
  22623.  VISION01.SYS device driver
  22624.  Vol command
  22625.  Volume label
  22626.    defined
  22627.    displaying
  22628.    setting
  22629.  
  22630.      W
  22631.  Warning Beep command
  22632.  Wildcard characters
  22633.    dir command
  22634.    find utility
  22635.    in HPFS
  22636.    searching
  22637.    type command
  22638.    using
  22639.  Window menu
  22640.  Window
  22641.    active
  22642.    Arrange menu
  22643.    arranging
  22644.    border
  22645.    Cascade command
  22646.    character size
  22647.    closing
  22648.    cmd
  22649.    Control Panel
  22650.    Directory Tree;copying a directory
  22651.    Directory Tree;deleting a directory
  22652.    Directory Tree;deleting a directory
  22653.    Directory Tree;described
  22654.    Directory Tree;displaying information
  22655.    Directory Tree;Move command
  22656.    Directory Tree;moving a directory
  22657.    Directory Tree;starting an application
  22658.    directory;changing displayed information
  22659.    directory;closing
  22660.    directory;collapsing a level
  22661.    directory;opening
  22662.    directory;printing a file
  22663.    directory;setting file flags
  22664.    directory;size
  22665.    directory;sorting contents
  22666.    directory;starting an application
  22667.    disappears
  22668.    end automatically
  22669.    enlarging
  22670.    extending selection
  22671.    File Manager
  22672.    fixed size
  22673.    full-screen applications
  22674.    full-screen applications
  22675.    Help
  22676.    icon area
  22677.    Keys Help
  22678.    Main-group;Command Reference
  22679.    maximize box
  22680.    Maximize command
  22681.    maximum size
  22682.    menu bar
  22683.    menu
  22684.    minimize box
  22685.    Minimize command
  22686.    moving a directory
  22687.    moving a file
  22688.    moving in dialog box
  22689.    moving
  22690.    Presentation Manager
  22691.    Print Manager
  22692.    program cannot run in
  22693.    Properties command
  22694.    reducing
  22695.    restore box
  22696.    Restore command
  22697.    restoring
  22698.    running an application in a window
  22699.    scroll bar
  22700.    scrolling text
  22701.    scrolling
  22702.    Search Results
  22703.    selecting
  22704.    selecting;active window
  22705.    selecting;dialog box
  22706.    selecting;directory
  22707.    selecting;items
  22708.    selecting;System menu
  22709.    selection cursor
  22710.    shape
  22711.    shortcut keys
  22712.    size
  22713.    sizing
  22714.    switching between
  22715.    System Editor
  22716.    System-menu box
  22717.    Tile command
  22718.    title bar
  22719.    work area
  22720.  Work area
  22721.    defined
  22722.    Directory Tree window
  22723.    selecting
  22724.  
  22725.      X
  22726.  Xcopy utility
  22727.    /a option
  22728.    /e option
  22729.    /m option
  22730.    /p option
  22731.    /s option
  22732.    /v option
  22733.    archive flag
  22734.  
  22735.