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

  1.  Microsoft Operating System/2 - Command Reference
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  ────────────────────────────────────────────────────────────────────────────
  11.              Microsoft(R) Operating System/2 - Command Reference
  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.  LN07754-1189, OEMO786-1Z
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  Welcome
  61.  ────────────────────────────────────────────────────────────────────────────
  62.  
  63.  This reference describes, in alphabetical order, the commands, utilities,
  64.  and other programs you can use from the command prompt with Microsoft(R)
  65.  Operating System/2. The entries include the following:
  66.  
  67.    ■   MS(R) OS/2 commands and utilities
  68.  
  69.    ■   DOS commands and utilities
  70.  
  71.    ■   Batch commands
  72.  
  73.    ■   Configuration commands
  74.  
  75.    ■   MS OS/2 device drivers
  76.  
  77.  In this manual, the term "DOS" refers to the MS-DOS(R) and IBM Personal
  78.  Computer DOS operating systems.
  79.  
  80.  This manual is intended to be a reference for experienced users. For
  81.  additional information about MS OS/2 and the Presentation Manager
  82.  environment, see the following manuals:
  83.  
  84.    ■   To learn how to install MS OS/2 and quickly get started with
  85.        Presentation Manager and MS OS/2, see Microsoft Operating System/2
  86.        Getting Started.
  87.  
  88.    ■   For a comprehensive description of the Presentation Manager
  89.        environment, the MS OS/2 and DOS command interpreters, batch programs,
  90.        configuration commands, and device drivers, see the Microsoft
  91.        Operating System/2 User's Guide.
  92.  
  93.  ────────────────────────────────────────────────────────────────────────────
  94.  Note
  95.  
  96.  All examples of filenames and directory names in this reference are for the
  97.  file allocation table (FAT) file system. To use high-performance file system
  98.  (HPFS) file and directory names with the MS OS/2 commands and utilities, you
  99.  must enclose the names in quotation marks, to ensure that MS OS/2 correctly
  100.  interprets any spaces or special characters in the names. For example,
  101.  without the quotation marks, MS OS/2 would interpret a plus sign (+) in an
  102.  HPFS filename in a copy command as an instruction to combine two files. For
  103.  more information about HPFS, see the Microsoft Operating System/2 User's
  104.  Guide.
  105.  ────────────────────────────────────────────────────────────────────────────
  106.  
  107.  
  108.  
  109.  Commands and Utilities
  110.  
  111.  The following section lists MS OS/2 command-line commands and utilities by
  112.  type. Included are MS OS/2 commands and utilities, DOS commands and
  113.  utilities, batch commands, and configuration commands.
  114.  
  115.  
  116.  Commands
  117.  
  118.  A command-line command is any word or phrase that you can type at a prompt
  119.  in order to carry out an action. MS OS/2 command-line commands are built
  120.  into one or both of two programs: cmd (the MS OS/2 command interpreter) and
  121.  command (the DOS command interpreter).
  122.  
  123.  The command-line commands include special sets of commands for configuring
  124.  your system and for running batch files.
  125.  
  126.  MS OS/2 Commands
  127.  
  128.  chcp                              move
  129.  
  130.  chdir                             path
  131.  
  132.  cls                               prompt
  133.  
  134.  copy                              rename
  135.  
  136.  date                              rmdir
  137.  
  138.  del                               set
  139.  
  140.  detach                            start
  141.  
  142.  dir                               time
  143.  
  144.  dpath                             type
  145.  
  146.  exit                              ver
  147.  
  148.  keys                              verify
  149.  
  150.  mkdir                             vol
  151.  
  152.  
  153.  DOS Commands
  154.  
  155.  break                             path
  156.  
  157.  chcp                              prompt
  158.  
  159.  chdir                             rename
  160.  
  161.  cls                               rmdir
  162.  
  163.  copy                              set
  164.  
  165.  date                              time
  166.  
  167.  del                               type
  168.  
  169.  dir                               ver
  170.  
  171.  exit                              verify
  172.  
  173.  mkdir                             vol
  174.  
  175.  
  176.  Configuration Commands
  177.  
  178.  autofail                          memman
  179.  
  180.  break (DOS only)                  pauseonerror
  181.  
  182.  buffers                           priority
  183.  
  184.  call                              protectonly
  185.  
  186.  codepage                          protshell
  187.  
  188.  country                           rem
  189.  
  190.  device                            rmsize (DOS only)
  191.  
  192.  devinfo                           run
  193.  
  194.  diskcache                         set
  195.  
  196.  fcbs (DOS only)                   shell (DOS only)
  197.  
  198.  ifs                               swappath
  199.  
  200.  iopl                              threads
  201.  
  202.  libpath                           timeslice
  203.  
  204.  log                               trace
  205.  
  206.  maxwait                           tracebuf
  207.  
  208.  
  209.  Batch Commands
  210.  
  211.  call                              if
  212.  
  213.  echo                              pause
  214.  
  215.  endlocal (OS/2 only)              rem
  216.  
  217.  extproc (OS/2 only)               setlocal (OS/2 only)
  218.  
  219.  for                               shift
  220.  
  221.  goto
  222.  
  223.  
  224.  
  225.  Utilities
  226.  
  227.  A utility is a program that is included as part of MS OS/2 but is separate
  228.  from the MS OS/2 and DOS command interpreters. You start a utility by typing
  229.  its name.
  230.  
  231.  MS OS/2 Utilities
  232.  
  233.  ansi                              label
  234.  
  235.  attrib                            mode
  236.  
  237.  backup                            more
  238.  
  239.  boot                              patch
  240.  
  241.  cache                             print
  242.  
  243.  chkdsk                            pstat
  244.  
  245.  cmd                               recover
  246.  
  247.  comp                              replace
  248.  
  249.  createdd                          restore
  250.  
  251.  ddinstal                          sort
  252.  
  253.  diskcomp                          spool
  254.  
  255.  diskcopy                          syslog
  256.  
  257.  eautil                            trace
  258.  
  259.  fdisk /d                          tracefmt
  260.  
  261.  find                              tree
  262.  
  263.  format                            unpack
  264.  
  265.  help                              xcopy
  266.  
  267.  keyb
  268.  
  269.  
  270.  DOS Utilities
  271.  
  272.  append                            label
  273.  
  274.  assign                            mode
  275.  
  276.  attrib                            more
  277.  
  278.  chkdsk                            patch
  279.  
  280.  command                           print
  281.  
  282.  comp                              recover
  283.  
  284.  diskcomp                          replace
  285.  
  286.  diskcopy                          setcom40
  287.  
  288.  edlin                             sort
  289.  
  290.  find                              subst
  291.  
  292.  format                            tree
  293.  
  294.  graftabl                          unpack
  295.  
  296.  help                              xcopy
  297.  
  298.  join
  299.  
  300.  
  301.  
  302.  Device Drivers
  303.  
  304.  A device driver tells MS OS/2 how to handle a device that is installed on
  305.  your system. This manual contains descriptions of the following drivers,
  306.  which are included on your MS OS/2 installation disks:
  307.  ANSI.SYS
  308.  COM0x.SYS
  309.  EXTDSKDD.SYS
  310.  MOUSE.SYS
  311.  MSxxxx0x.SYS
  312.  POINTDD.SYS
  313.  VDISK.SYS
  314.  
  315.  
  316.  Presentation-Manager Applications
  317.  
  318.  The following section lists the Presentation Manager applications that come
  319.  with MS OS/2, with a short description of each application. Each description
  320.  is followed by a list of the application's menus and their commands.
  321.  
  322.  
  323.  Control Panel
  324.  
  325.  Sets options for your system, such as the date and time, the appearance of
  326.  the screen, and the way the mouse works. You can also add device drivers to
  327.  your system from Control Panel.
  328.  
  329.  Options Menu                      Help Menu
  330.  
  331.  Screen Colors                     Help for Help
  332.  
  333.  Border Width                      Extended Help
  334.  
  335.  Warning Beep                      Keys Help
  336.  
  337.  Mouse                             Help Index
  338.  
  339.  Logo Display                      About
  340.  
  341.  Country
  342.  
  343.  Communications Port
  344.  
  345.  Exit
  346.  
  347.  Installation Menu
  348.  
  349.  Add Font
  350.  
  351.  Delete Font
  352.  
  353.  Add Printer Driver
  354.  
  355.  Delete Printer Driver
  356.  
  357.  Add Queue Driver
  358.  
  359.  Delete Queue Driver
  360.  
  361.  
  362.  
  363.  Convert Picture File
  364.  
  365.  Converts files from picture-interchange format to metafile format, or
  366.  converts files with font information to a Presentation Manager format.
  367.  
  368.  File Menu                         Help Menu
  369.  
  370.  Convert                           Help for Help
  371.  
  372.  Exit                              Extended Help Keys Help Help Index About
  373.  
  374.  
  375.  
  376.  Desktop Manager
  377.  
  378.  Opens new program groups so that you can start applications. Two groups are
  379.  already set up when you start your system: the Main group and the Utilities
  380.  group. You can add program names to the program groups so that you can start
  381.  the programs without searching through the directory structure for them. You
  382.  can also arrange windows and icons on your screen and shut down your system
  383.  from Desktop Manager.
  384.  
  385.  Group Menu                        Desktop Menu
  386.  
  387.  Open                              Tile All
  388.  
  389.  New                               Cascade All
  390.  
  391.  Delete                            Arrange Icons
  392.  
  393.  Rename                            Save
  394.  
  395.  Minimize on Use                   Close All Shutdown
  396.  
  397.  View Menu
  398.  
  399.  Icon                              Help Menu
  400.  
  401.  Text                              Help for Help Extended Help Keys Help
  402.                                    Help Index About
  403.  
  404.  Menus in Group windows:
  405.  
  406.  Program Menu                      Help Menu
  407.  
  408.  Open                              Help for Help
  409.  
  410.  New                               Extended Help
  411.  
  412.  Copy                              Keys Help
  413.  
  414.  Delete                            Help Index
  415.  
  416.  Properties
  417.  
  418.  Minimize on Use
  419.  
  420.  View Menu
  421.  
  422.  Icon
  423.  
  424.  Text
  425.  
  426.  
  427.  
  428.  Display Picture
  429.  
  430.  Displays graphics documents in Presentation Manager. These documents can be
  431.  in either picture-interchange format (with a .PIF filename extension) or
  432.  metafile format (with a .MET filename extension).
  433.  
  434.  File Menu                         Help Menu
  435.  
  436.  Display                           Help for Help
  437.  
  438.  Exit                              Extended Help Keys Help
  439.  
  440.  Control Menu                      Help Index
  441.  
  442.  Show Next Picture                 About
  443.  
  444.  Quit Sequence
  445.  
  446.  
  447.  
  448.  File Manager
  449.  
  450.  Displays the names of the files on each drive, by directory; moves, copies,
  451.  deletes, and renames files; and changes file flags and extended attributes.
  452.  You can display a separate window for each directory. You can also start
  453.  programs from File Manager.
  454.  
  455.  File Menu                         View Menu
  456.  
  457.  Open                              Name
  458.  
  459.  Run                               File Details
  460.  
  461.  Print                             Icon
  462.  
  463.  Associate                         Other
  464.  
  465.  Search                            By Name
  466.  
  467.  Move                              By Type
  468.  
  469.  Copy                              Sort By
  470.  
  471.  Delete                            Include
  472.  
  473.  Rename                            Replace on Open
  474.  
  475.  Change Flags
  476.  
  477.  Properties                        Options Menu
  478.  
  479.  Create Directory                  Confirmation
  480.  
  481.  Select All                        Fonts
  482.  
  483.  Deselect All                      Minimize on Run
  484.  
  485.  Undo Selection
  486.  
  487.  Exit                              Window Menu Tile
  488.  
  489.  Tree Menu                         Cascade
  490.  
  491.  Expand One Level                  Refresh
  492.  
  493.  Expand Branch                     Close All Directories
  494.  
  495.  Expand All                        1. Directory Tree
  496.  
  497.  Collapse Branch                   Help Menu Help for Help Extended Help
  498.                                    Keys Help Help Index About
  499.  
  500.  
  501.  
  502.  Fixed Disk Utility
  503.  
  504.  Prepares a hard disk for formatting. You can create primary and extended
  505.  partitions and logical drives, display information about the existing
  506.  partitions and logical drives, and, if your system has multiple hard disks,
  507.  select the next hard disk for partitioning. (To delete the primary MS OS/2
  508.  partition from the hard disk that you start your system from, you must use
  509.  the fdisk /d utility, which you run from the MS OS/2 Install disk.)
  510.  
  511.  Options Menu                      Help Menu
  512.  
  513.  Create Primary Partition          Help for Help
  514.  
  515.  Create Extended Partition         Extended Help
  516.  
  517.  Create Logical Drive              Keys Help
  518.  
  519.  Delete                            Help Index
  520.  
  521.  Make Startable                    About
  522.  
  523.  Exit
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  Displays information about the task you are performing, or about any topic
  530.  you choose from the Help index or Help contents. You can print the Help
  531.  index or part or all of the Help text.
  532.  
  533.  Services Menu                     Options Menu
  534.  
  535.  Search                            Expand One Level
  536.  
  537.  Print                             Expand Branch
  538.  
  539.  Copy                              Expand All
  540.  
  541.  Copy to File                      Collapse Branch
  542.  
  543.  Append to File                    Collapse All Contents
  544.  
  545.  Help Menu                         Viewed Pages
  546.  
  547.  Help for Help                     Previous
  548.  
  549.  Extended Help
  550.  
  551.  Keys Help
  552.  
  553.  Help Index
  554.  
  555.  
  556.  
  557.  OS/2 Command Reference
  558.  
  559.  Displays descriptions of the commands you type at the OS/2 or DOS command
  560.  prompt, with an explanation of the command arguments and how the command
  561.  works. You can print one or more of these command descriptions.
  562.  
  563.  Services Menu                     Options Menu
  564.  
  565.  Search                            Expand One Level
  566.  
  567.  Print                             Expand Branch
  568.  
  569.  Bookmark                          Expand All
  570.  
  571.  Copy                              Collapse Branch
  572.  
  573.  Copy to File                      Collapse All
  574.  
  575.  Append to File                    Contents
  576.  
  577.  Exit                              Index Viewed Pages
  578.  
  579.  Help Menu                         Previous
  580.  
  581.  Help for Help
  582.  
  583.  Extended Help
  584.  
  585.  Keys Help
  586.  
  587.  Help Index
  588.  
  589.  About
  590.  
  591.  
  592.  
  593.  Printer Installer
  594.  
  595.  Installs printers.
  596.  
  597.  
  598.  Print Manager
  599.  
  600.  Controls how files are printed and how they are sent to the printer.
  601.  
  602.  Queue Menu                        Setup Menu
  603.  
  604.  Hold Queue                        Spooler Path
  605.  
  606.  Release Queue                     Printers
  607.  
  608.  Cancel All Jobs                   Queues Application Defaults
  609.  
  610.  Job Menu                          Refresh Menu
  611.  
  612.  Job Details                       Refresh Now
  613.  
  614.  Cancel Job
  615.  
  616.  Print Job Next                    Help Menu
  617.  
  618.  Start Job Again                   Help for Help
  619.  
  620.  Hold Job                          Extended Help
  621.  
  622.  Release Job                       Keys Help Help Index About
  623.  
  624.  
  625.  
  626.  Print Picture
  627.  
  628.  Prints graphics documents. These documents can be in either
  629.  picture-interchange format (with a .PIF filename extension) or metafile
  630.  format (with a .MET filename extension).
  631.  
  632.  File Menu                         Help Menu
  633.  
  634.  Select                            Help for Help
  635.  
  636.  Print                             Extended Help
  637.  
  638.  Exit                              Keys Help Help Index
  639.  
  640.  Control Menu                      About
  641.  
  642.  Change Printer
  643.  
  644.  Printer Options
  645.  
  646.  Paper
  647.  
  648.  Printing Area
  649.  
  650.  Picture
  651.  
  652.  
  653.  
  654.  System Editor
  655.  
  656.  Makes changes to the contents of text files. You can use System Editor to
  657.  edit your CONFIG.SYS and AUTOEXEC.BAT files, as well as any text files you
  658.  create.
  659.  
  660.  File Menu                         Options Menu
  661.  
  662.  New                               Set Font
  663.  
  664.  Open                              Set Colors
  665.  
  666.  Save                              Word Wrap
  667.  
  668.  Save As
  669.  
  670.  Autosave                          Help Menu
  671.  
  672.  Exit                              Help for Help Extended Help
  673.  
  674.  Edit Menu                         Keys Help
  675.  
  676.  Undo                              Help Index
  677.  
  678.  Cut                               About
  679.  
  680.  Copy
  681.  
  682.  Paste
  683.  
  684.  Clear
  685.  
  686.  Find
  687.  
  688.  Select All
  689.  
  690.  
  691.  
  692.  Notational Conventions
  693.  
  694.  To help you locate and interpret information easily, this manual uses icons,
  695.  a standard syntax format and terminology, and specific typographic
  696.  conventions. The following sections describe these elements.
  697.  
  698.  
  699.  Icons
  700.  
  701.  The following icons appear in the left margin and indicate where you can use
  702.  the command or utility described in the adjacent text.
  703.  MS OS/2                 DOS             Configuration file
  704.  
  705.  
  706.  Syntax
  707.  
  708.  Syntax represents the order in which you must type a command-line command or
  709.  utility name and any arguments and options that follow it. Elements that
  710.  appear in bold type must be typed exactly as they appear in the syntax line;
  711.  elements that appear in italic are placeholders representing specific
  712.  information that you will need to supply. Unless specified otherwise, you
  713.  can type commands, arguments, and options in either uppercase or lowercase
  714.  letters.
  715.  
  716.  The following is a sample syntax line:
  717.  
  718.  
  719.  
  720.  sample [+r|-r] [drive:][path]\^filename [...] [options]
  721.  
  722.  The meaning of each of these elements is as follows:
  723.  
  724.  Number                            Element     Meaning
  725.  ────────────────────────────────────────────────────────────────────────────
  726.  
  727.  1                                 sample      Specifies the name of the
  728.                                                command or utility.
  729.  
  730.  2                                 [ ]         Indicates items that are
  731.                                                optional. To include the
  732.                                                optional information
  733.                                                described within the
  734.                                                brackets, type only the
  735.                                                information, not the
  736.                                                brackets themselves.
  737.  
  738.  3                                 |           Separates two mutually
  739.                                                exclusive choices in a
  740.                                                syntax line; for example:
  741.  
  742.                                                break[on|off]
  743.  
  744.                                                Type only one of these
  745.                                                choices (that is, break on
  746.                                                or break off); do not type
  747.                                                the symbol itself.
  748.  
  749.  4                                 drive:      Specifies a drive. You need
  750.                                                to specify a drive with a
  751.                                                filename only if you are
  752.                                                using a file that is not on
  753.                                                the current drive.
  754.  
  755.  5                                 path        Specifies a complete
  756.                                                directory path, using the
  757.                                                following syntax:
  758.  
  759.                                                [\edirectory][\edirectory]\e
  760.                                                directory
  761.  
  762.                                                You need to specify a path
  763.                                                with a filename only if the
  764.                                                file is not in the current
  765.                                                directory.
  766.  
  767.  
  768.  Number                            Element     Meaning
  769.  ────────────────────────────────────────────────────────────────────────────
  770.  
  771.  6                                 filename    Specifies a file. In the
  772.                                                file allocation table (FAT)
  773.                                                file system, a filename can
  774.                                                be up to eight characters
  775.                                                long, followed by a period (
  776.                                                .) and an extension of up to
  777.                                                three characters (for
  778.                                                example,
  779.                                                YOURFILEhighperformance file
  780.                                                system (HPFS), a filename
  781.                                                can be up to 254 characters
  782.                                                long and can include periods
  783.                                                and spaces in more than one
  784.                                                place (for example, the
  785.                                                filename YOURbetween a
  786.                                                filename and an extension.
  787.                                                An HPFS filename can also
  788.                                                include certain characters
  789.                                                not allowed in the FAT file
  790.                                                system. The filename
  791.                                                argument cannot be a device
  792.                                                name or a drive letter.
  793.  
  794.  7                                 ...         Indicates that an argument
  795.                                                can be repeated several
  796.                                                times in a command line.
  797.                                                Type only the information,
  798.                                                not the ellipsis (...)
  799.                                                itself.
  800.  
  801.  8                                 options     Specifies one or more
  802.                                                command options. An option
  803.                                                begins with a slash─for
  804.                                                example, /p.
  805.  
  806.  Other placeholders used in syntax lines in this manual include the
  807.  following:
  808.  
  809.  Placeholder                       Meaning
  810.  ────────────────────────────────────────────────────────────────────────────
  811.  
  812.  source                            Specifies the drive, directory, file, or
  813.                                    device that will be transferred to a
  814.                                    specified destination or used as input
  815.                                    to a command.
  816.  
  817.  destination                       Specifies the drive, directory, file, or
  818.                                    device that source will be transferred
  819.                                    to.
  820.  
  821.  string                            Specifies a group of characters to be
  822.                                    treated as a unit. A string can include
  823.                                    letters, numbers, spaces, or any other
  824.                                    characters and is usually enclosed in
  825.                                    double quotation marks. Some commands,
  826.                                    such as find, work with strings of text.
  827.  
  828.  
  829.  
  830.  Typographic Conventions
  831.  
  832.  The following typographic conventions are used in this reference:
  833.  
  834.  Convention                        Use
  835.  ────────────────────────────────────────────────────────────────────────────
  836.  
  837.  bold                              Command-line commands, utilities,
  838.                                    options, and portions of syntax that
  839.                                    must be typed exactly as shown.
  840.  
  841.  italic                            Variables and placeholders that
  842.                                    represent information you must provide.
  843.  
  844.  monospace                         Sample command lines, program code,
  845.                                    program output, and examples.
  846.  
  847.  ALL CAPITALS                      Filenames, directory names, and acronyms.
  848.  
  849.  SMALL CAPITALS                    Names of keys on your keyboard.
  850.  
  851.  Key combinations and key sequences appear in the following formats:
  852.  
  853.  Notation                          Meaning
  854.  ────────────────────────────────────────────────────────────────────────────
  855.  
  856.  KEY+KEY                           A plus sign (+) between keynames means
  857.                                    you must press the keys at the same
  858.                                    time; for example, "Press ALT+ESC" means
  859.                                    that you press the ALT key and hold it
  860.                                    down while you press and release the ESC
  861.                                    key.
  862.  
  863.  KEY, KEY                          A comma (,) between keynames means you
  864.                                    must press the keys in sequence; for
  865.                                    example, "Press ALT, SPACEBAR" means
  866.                                    that you press the ALT key and release
  867.                                    it, and then you press the SPACEBAR and
  868.                                    release it.
  869.  
  870.  DIRECTION keys                    Arrow keys on your computer keypad are
  871.                                    called DIRECTION keys. The individual
  872.                                    name refers to the direction the arrow
  873.                                    on the key points: UP, DOWN, RIGHT, LEFT.
  874.  
  875.  
  876.  
  877.  Ansi
  878.  
  879.    «OS2»
  880.  
  881.  ansi [on|off]
  882.  
  883.  Turns the support on or off for ANSI escape sequences in an OS/2 session.
  884.  The default setting is on.
  885.  
  886.  If you type ansi by itself, the utility displays the current setting.
  887.  
  888.  
  889.  ANSI.SYS
  890.  
  891.    «CONFIG»
  892.  
  893.  device=[drive:][path]ansi.sys
  894.  
  895.  Directs MS OS/2 to load the ANSI.SYS device driver. To use this command,
  896.  place it in your CONFIG.SYS file.
  897.  
  898.  When the ANSI.SYS device driver is loaded, you can use ANSI escape sequences
  899.  in a DOS session to move the cursor, set the color for characters, and set
  900.  the number of character rows and columns for the screen.
  901.  
  902.  Support for ANSI escape sequences is automatically available in an OS/2
  903.  session.
  904.  
  905.  For a list of the escape sequences used in the ANSI.SYS device driver, see
  906.  the Microsoft Operating System/2 User's Guide.
  907.  
  908.  
  909.  Append
  910.  
  911.    «DOS»
  912.  
  913.  append [/e|;|[drive:]path[;...]] [/path[:on|:off]]
  914.  
  915.  Specifies which directories besides the current directory MS OS/2 should
  916.  search in order to find an application's data files.
  917.  
  918.  /e                                Stores the appended paths in the
  919.                                    environment. You should use the /e
  920.                                    option by itself, without any drive or
  921.                                    path. MS OS/2 accepts this option only
  922.                                    the first time you use the append
  923.                                    utility after starting MS OS/2. If you
  924.                                    use the /e option a second time, you
  925.                                    receive an error message.
  926.  
  927.  ;                                 When used by itself (append ;), cancels
  928.                                    the existing appended path. Semicolons
  929.                                    are also used to separate multiple paths.
  930.  
  931.  [drive:]path                      Specifies the directory path MS OS/2
  932.                                    searches for an application's data files.
  933.                                    You can specify more than one path,
  934.                                    separating them with semicolons.
  935.  
  936.  /path[:on                         Specifies whether MS OS/2 should search
  937.                                    the appended directories when the
  938.                                    filename that an application is looking
  939.                                    for already includes a drive letter
  940.                                    and/or path. If you specify /path:off,
  941.                                    MS OS/2 does not search the appended
  942.                                    directories; if you specify /path:on or
  943.                                    simply /path by itself, MS OS/2 searches
  944.                                    the directories. The default setting is
  945.                                    /path:on.
  946.  
  947.  Each time you use the append utility, the new path you specify takes the
  948.  place of the previous path. If you use the /e option the first time you use
  949.  append, each new path is stored in the MS OS/2 environment.
  950.  
  951.  If you type append by itself, the utility displays the current data path.
  952.  
  953.  The append utility achieves the same results in the DOS session as the
  954.  "dpath" command does in an OS/2 session. Example
  955.  
  956.  To instruct an application to search the REPORTS and NOTES subdirectories of
  957.  the DATA directory on the current drive and the REPORTS directory on drive
  958.  B, type the following:
  959.  
  960.  append \data\reports;\data\notes;b:\reports
  961.  
  962.  
  963.  Assign
  964.  
  965.    «DOS»
  966.  
  967.  assign [drive1=drive2] [...]
  968.  
  969.  Assigns the drive letter of one drive to a different drive, so that if you
  970.  request the first drive you get the second.
  971.  
  972.  drive1                            Specifies the drive letter you want to
  973.                                    reassign.
  974.  
  975.  drive2                            Specifies the drive letter you want to
  976.                                    substitute for drive1.]
  977.  
  978.  Do not type a colon (:) after the drive letters.
  979.  
  980.  You can make more than one drive assignment in a single command line.
  981.  
  982.  If you type assign by itself, the utility resets all drive letters to their
  983.  original drives.
  984.  
  985.  Do not use the assign utility unless you need to. You can easily forget that
  986.  you have reassigned a drive letter and end up changing files on an
  987.  unexpected drive. Also, many programs require information about a drive's
  988.  characteristics in order to work properly. If you have reassigned drive
  989.  letters, these programs may not work as you expect.
  990.  
  991.  The assign utility affects only the DOS session. Example
  992.  
  993.  Suppose you want to run an application on your hard disk (drive C) and the
  994.  application requires you to put your program disk in drive A and your data
  995.  disk in drive B. To send all references to drives A and B to drive C, type
  996.  the following:
  997.  
  998.  assign a=c b=c
  999.  
  1000.  
  1001.  Attrib (Attributes)
  1002.  
  1003.    «OS2»
  1004.  
  1005.  attrib [+r|-r] [+a|-a] [drive:][path]filename [/s]
  1006.  
  1007.  Changes or displays the flags of the file you specify. The flags determine
  1008.  whether the file is read-only and whether it is affected when you use the
  1009.  "backup" , "restore" , and "xcopy" utilities. For more information, see the
  1010.  individual utility descriptions.
  1011.  
  1012.  +r                                Makes the file read-only.
  1013.  
  1014.  -r                                Allows the file to be changed or deleted.
  1015.  
  1016.  +a                                Sets the archive flag of the file.
  1017.  
  1018.  -a                                Clears the archive flag of the file.
  1019.  
  1020.  filename                          Specifies the file for which you want to
  1021.                                    change the flags. You can use wildcard
  1022.                                    characters to affect more than one file.
  1023.  
  1024.  /s                                Changes the flags of all files named
  1025.                                    filename in subdirectories as well as in
  1026.                                    directories.
  1027.  
  1028.  
  1029.  To see the flag settings of a particular file, type only attrib and the
  1030.  filename. If the letter A appears in the listing, the archive flag is set
  1031.  for the file; if R appears in the listing, the read-only flag is set.
  1032.  
  1033.    «DOS»
  1034.  
  1035.  Works the same way in the DOS session as it does in an OS/2 session.
  1036.  
  1037.  Example
  1038.  
  1039.  To make all the files read-only in the directory \eSCHEDULE\eMEETINGS on
  1040.  drive C, and in all its subdirectories, type the following:
  1041.  
  1042.  attrib +r c:\eschedule\emeetings\e* /s
  1043.  
  1044.  
  1045.  Autofail
  1046.  
  1047.    «CONFIG»
  1048.  
  1049.  autofail=yes|no
  1050.  
  1051.  Turns on or off the mechanism by which MS OS/2 displays a full-screen error
  1052.  message that requires a choice of actions whenever the system encounters a
  1053.  hard error or an exception condition. To use this command, place it in your
  1054.  CONFIG.SYS file.
  1055.  
  1056.  yes                               Turns on the autofail mechanism,
  1057.                                    preventing MS OS/2 from displaying a
  1058.                                    full-screen error message for a hard
  1059.                                    error or exception condition. MS OS/2
  1060.                                    returns an error code to the program
  1061.                                    instead. You may still see a
  1062.                                    command-line error message.
  1063.  
  1064.  no                                Turns off the autofail mechanism,
  1065.                                    allowing MS OS/2 to display a
  1066.                                    full-screen error message for a hard
  1067.                                    error or exception condition. This is
  1068.                                    the default setting.
  1069.  
  1070.  A hard error is caused by something external to the software, such as an
  1071.  open disk-drive door or an incorrectly formatted floppy disk. An exception
  1072.  condition is caused by an instruction that the central processing unit (CPU)
  1073.  cannot execute, such as dividing by zero.
  1074.  
  1075.  When the autofail mechanism is turned off, the system stops and displays a
  1076.  full-screen error message when a hard error or exception condition occurs;
  1077.  you must choose an action from a list in the error screen before the system
  1078.  will resume processing commands. When the autofail mechanism is turned on,
  1079.  the system continues processing the command that caused the error.
  1080.  
  1081.  
  1082.  Backup
  1083.  
  1084.    «OS2»
  1085.  
  1086.  backup drive1:[path][filename] drive2: [/s] [/m] [/a] [/f[:size]] [/d:date
  1087.  [/t:time]] [/l:[path]logfile]
  1088.  
  1089.  Makes backup copies of files from one disk and stores them on another. You
  1090.  can then use the "restore" utility to copy these files back to their
  1091.  original location.
  1092.  
  1093.  drive1:                           Specifies the drive that contains the
  1094.                                    files you want to make backup copies of.
  1095.  
  1096.  filename                          Specifies a single file you want to make
  1097.                                    a backup copy of. You can use wildcard
  1098.                                    characters to make backup copies of a
  1099.                                    group of files with similar names.
  1100.  
  1101.  drive2:                           Specifies the drive that contains the
  1102.                                    disk on which you want to store the
  1103.                                    backup files. The backup utility places
  1104.                                    the files in the root directory of this
  1105.                                    disk. If you choose to put the backup
  1106.                                    copies onto a hard disk, backup
  1107.                                    automatically creates a directory named
  1108.                                    BACKUP as a subdirectory of the root
  1109.                                    directory and places the files there.
  1110.  
  1111.  /s                                Makes backup copies of the contents of
  1112.                                    all the subdirectories.
  1113.  
  1114.  /m                                Makes backup copies of only the files
  1115.                                    that have been changed since the last
  1116.                                    backup operation and turns off the
  1117.                                    archive flag of the original file. This
  1118.                                    option also makes backup copies of
  1119.                                    directories if their extended attributes
  1120.                                    have changed. Previous backup copies are
  1121.                                    deleted unless you also specify the /a
  1122.                                    option.
  1123.  
  1124.  /a                                Adds the backup files being created to
  1125.                                    the backup files on the destination disk
  1126.                                    without deleting the files that are
  1127.                                    already there. This option does not work
  1128.                                    if any of the files on the destination
  1129.                                    disk are backup copies made by using the
  1130.                                    backup utility from MS-DOS version 3.21
  1131.                                    or earlier.
  1132.  
  1133.  /f[:size]                         Formats the destination disk if it is
  1134.                                    unformatted. This option does not format
  1135.                                    a nonremovable disk, nor does it format
  1136.                                    a disk that is already formatted. You
  1137.                                    can specify the memory capacity of the
  1138.                                    disk, in kilobytes (or, for a
  1139.                                    1.2-megabyte or 1.44-megabyte disk, in
  1140.                                    megabytes), by specifying size. The
  1141.                                    easiest way to specify size is as the
  1142.                                    number of kilobytes of memory on the
  1143.                                    disk (360, 720, 1200, or 1440), but you
  1144.                                    can include the unit of measurement (for
  1145.                                    example, 360K, 360KB, 1.2M, 1.2MB) if
  1146.                                    you prefer. The backup utility formats
  1147.                                    an unformatted destination disk even if
  1148.                                    you do not specify the /f option.
  1149.  
  1150.  /d:date                           Makes backup copies of only the files
  1151.                                    that were changed on or after the date
  1152.                                    specified.
  1153.  
  1154.  /t:time                           Makes backup copies of only the files
  1155.                                    that were changed at or after the time
  1156.                                    specified. Do not use this option
  1157.                                    without the /d:date option.
  1158.  
  1159.  /l[:logfile]                      Creates a log file in the root directory
  1160.                                    of the source disk or drive and puts a
  1161.                                    log of the backup operation in that file.
  1162.                                    You can specify a different drive or
  1163.                                    directory for the log file. If you do
  1164.                                    not specify logfile, the backup utility
  1165.                                    names the file BACKUP.LOG.
  1166.  
  1167.  
  1168.  The backup files are stored in the BACKUP.nnn and CONTROL.nnn files; nnn is
  1169.  the number of the disk (starting from 001). As each disk is filled, the
  1170.  backup utility prompts you for the next disk.
  1171.  
  1172.  The source and destination disks do not have to be of the same type; you can
  1173.  back up files from a hard disk to a floppy disk, or from one kind of floppy
  1174.  disk to another. If you do not specify the /a option, the backup utility
  1175.  erases all the files that are already on the destination disk.
  1176.  
  1177.  The backup utility preserves the extended attributes of the files and
  1178.  directories that it copies.
  1179.  
  1180.  The backup utility does not make backup copies of the following files:
  1181.  OS2LDR, OS2KRNL, IBMBIOCMDyour start-up drive; to make a complete backup of
  1182.  your start-up drive, you must run backup from the MS OS/2 Install disk.
  1183.  Example
  1184.  
  1185.  If you want to make backup copies of all the files in the \eFILM\eCRITIQUE
  1186.  directory on drive C and store them on an unformatted disk in drive A, type
  1187.  the following:
  1188.  
  1189.  backup c:\efilm\ecritique a: /f
  1190.  
  1191.  To make backup copies of the files on drive C, which is your start-up drive,
  1192.  and store them on an unformatted disk in drive B, insert the MS OS/2 Install
  1193.  disk in drive A, press CTRL+ALT+DEL, press ESC when the logo appears, and
  1194.  type the following at the command prompt:
  1195.  
  1196.  backup c: b: /f
  1197.  
  1198.  
  1199.  Boot
  1200.  
  1201.  [drive:][path]boot [/dos | /os2 | /q]
  1202.  
  1203.  Specifies the operating system (DOS or MS OS/2) your computer is to use the
  1204.  next time you restart it. You must have dual boot installed on your computer
  1205.  before you can use the boot utility.
  1206.  
  1207.  /dos                              Specifies DOS as the operating system to
  1208.                                    be used the next time you restart your
  1209.                                    computer.
  1210.  
  1211.  /os2                              Specifies MS OS/2 as the operating
  1212.                                    system to be used the next time you
  1213.                                    restart your computer.
  1214.  
  1215.  /q                                Displays the current boot setting.
  1216.  
  1217.  
  1218.  ────────────────────────────────────────────────────────────────────────────
  1219.  Warning
  1220.  
  1221.  It is not a good idea to use dual boot if you have files or directories on
  1222.  your system that use extended attributes. Using DOS utilities or
  1223.  applications to manipulate such files or directories may delete their
  1224.  extended attributes. Example
  1225.  
  1226.  To instruct your system, when you are running DOS, to use MS OS/2 the next
  1227.  time you restart the computer, type the following:
  1228.  
  1229.  ────────────────────────────────────────────────────────────────────────────
  1230.  
  1231.  c:\os2\boot /os2
  1232.  
  1233.  
  1234.  Break
  1235.  
  1236.    «DOS»
  1237.  
  1238.  break [on|off]
  1239.  
  1240.  Specifies when MS OS/2 is to check for the key combination CTRL+C (or
  1241.  CTRL+BREAK) in the DOS session. MS OS/2 stops the program or batch file that
  1242.  is running when it encounters the combination.
  1243.  
  1244.  Depending on the program you are running, you may press CTRL+C in the DOS
  1245.  session to stop an activity (for example, to stop sorting a file).
  1246.  Ordinarily, MS OS/2 checks for CTRL+C only when it is reading from the
  1247.  keyboard or writing to the screen or the printer. If you type break on, you
  1248.  extend CTRL+C checking to other activities, such as reading from or writing
  1249.  to a disk. The default setting in the DOS session is off (unless otherwise
  1250.  set in your CONFIG.SYS file by the break configuration command).
  1251.  
  1252.  The break command has no effect on an OS/2 session; MS OS/2 always checks
  1253.  for CTRL+C in this session.
  1254.  
  1255.  If you type break by itself, MS OS/2 displays the command's current setting.
  1256.  
  1257.  
  1258.  Some programs are designed to respond to CTRL+C at any time; the break
  1259.  command does not affect them.
  1260.  
  1261.  In the DOS session, when you use CTRL+C to stop the processing of a batch
  1262.  file, MS OS/2 displays a message that asks you to confirm that you want to
  1263.  stop the batch process. In an OS/2 session, however, you receive no message;
  1264.  as soon as you press CTRL+C, the batch file stops.
  1265.  
  1266.  
  1267.  Break
  1268.  
  1269.    «CONFIG»
  1270.  
  1271.  break=on|off
  1272.  
  1273.  Specifies when MS OS/2 is to check for the CTRL+C (or CTRL+BREAK) key
  1274.  combination in the DOS session. MS OS/2 stops the program or batch file that
  1275.  is running when it encounters the combination. To use the break
  1276.  configuration command, place it in your CONFIG.SYS file.
  1277.  
  1278.  If break is off, MS OS/2 checks for CTRL+C only when it is reading from the
  1279.  keyboard or writing to the screen or the printer. When break is on, MS OS/2
  1280.  also checks for CTRL+C every time it reads from or writes to a disk. The
  1281.  default setting for break in the DOS session is off.
  1282.  
  1283.  The break configuration command has no effect on an OS/2 session; MS OS/2
  1284.  always checks for CTRL+C in this session.
  1285.  
  1286.  
  1287.  Buffers
  1288.  
  1289.    «CONFIG»
  1290.  
  1291.  buffers=number
  1292.  
  1293.  Sets the number of buffers in memory, for use by the FAT file system. To use
  1294.  this command, place it in your CONFIG.SYS file.
  1295.  
  1296.  number                            Specifies the number of buffers
  1297.                                    available. This must be a number in the
  1298.                                    range 1 through 100. During system
  1299.                                    installation, the value of the buffers
  1300.                                    command is set to 30. If you remove the
  1301.                                    buffers command from your CONFIG.SYS
  1302.                                    file, the system sets the value to 3.
  1303.  
  1304.  Buffers are work areas MS OS/2 uses to hold data when it is reading from or
  1305.  writing to a disk. You can speed up your system's performance by increasing
  1306.  the number of buffers available, but when you do so you also reduce the
  1307.  amount of memory available. Example
  1308.  
  1309.  To create 20 disk buffers, include the following line in your CONFIG.SYS
  1310.  file:
  1311.  
  1312.  buffers=20
  1313.  
  1314.  
  1315.  Cache
  1316.  
  1317.    «OS2»
  1318.  
  1319.  cache [/MaxAge:time] [/DiskIdle:time] [/BufferIdle:time]
  1320.  
  1321.  or
  1322.  
  1323.  cache [/lazy:on|/lazy:off]
  1324.  
  1325.  Directs MS OS/2 to load the cache driver for the high-performance file
  1326.  system (HPFS), turn lazy writing on or off, and set or display the
  1327.  lazy-writing parameters. You must have HPFS installed on your computer
  1328.  before you can use the cache utility. (For more information about installing
  1329.  HPFS, see the "ifs" configuration command.)
  1330.  
  1331.  /MaxAge:time                      Sets the maximum amount of time (in
  1332.                                    milliseconds) that a cache block can
  1333.                                    store information before MS OS/2 writes
  1334.                                    that information to the disk. The
  1335.                                    default time is 5000 milliseconds.
  1336.  
  1337.  /DiskIdle:time                    Sets the maximum amount of time (in
  1338.                                    milliseconds) that the disk can be idle
  1339.                                    before MS OS/2 writes unsaved
  1340.                                    information in the cache blocks to the
  1341.                                    disk. The default time is 1000
  1342.                                    milliseconds. This option affects only
  1343.                                    cache blocks that have had unsaved
  1344.                                    information in them for the amount of
  1345.                                    time specified by /BufferIdle.
  1346.  
  1347.  /BufferIdle:time                  Sets the maximum amount of time (in
  1348.                                    milliseconds) that a cache block can
  1349.                                    store information before it becomes
  1350.                                    subject to the effect of the /DiskIdle
  1351.                                    option. The default time is 500
  1352.                                    milliseconds.
  1353.  
  1354.  /lazy:on|/lazy:off                Turns lazy writing on or off for all
  1355.                                    disks or partitions that are formatted
  1356.                                    for HPFS. The default setting is
  1357.                                    /lazy:on. For more information about
  1358.                                    lazy writing, see the Microsoft
  1359.                                    Operating System/2 User's Guide.
  1360.  
  1361.  
  1362.  On disks or partitions formatted for HPFS, MS OS/2 can store information in
  1363.  temporary 2-kilobyte cache blocks─where the system can locate it
  1364.  faster─rather than writing the information directly to the disk. The cache
  1365.  options determine when the information in the cache block is written to the
  1366.  disk. If lazy writing is not turned on, MS OS/2 writes information directly
  1367.  to the disk, rather than storing it in cache blocks.
  1368.  
  1369.  If you use the cache utility to turn lazy writing on, the prompt disappears
  1370.  in the session in which you are running the utility. To avoid this, use the
  1371.  "start" command to create a new OS/2 session to be used only for running the
  1372.  cache utility.
  1373.  
  1374.  If you type cache by itself, the utility displays its current setting.
  1375.  Example
  1376.  
  1377.  To start a new session and run the cache utility, turning lazy writing on,
  1378.  type the following:
  1379.  
  1380.  start cache /lazy:on
  1381.  
  1382.  
  1383.  Call
  1384.  
  1385.    «OS2»
  1386.  
  1387.  call [drive:][path]batchfile [arg]
  1388.  
  1389.  Calls one batch file from another. You use call in a batch file in order to
  1390.  run another batch file and then return to the first one. Although call can
  1391.  be used from the command prompt, it is designed to be placed in a batch
  1392.  file.
  1393.  
  1394.  batchfile                         Specifies the name of the batch file
  1395.                                    (without extension) that you want to
  1396.                                    call from within another batch file.
  1397.  
  1398.  arg                               Specifies an argument to the batch file
  1399.                                    being called.
  1400.  
  1401.  When you use the call command, MS OS/2 treats everything in the batch file
  1402.  you call as though it were a single command; once that command has been
  1403.  carried out (that is, once the second batch file has been run), MS OS/2
  1404.  resumes running the first batch file where it left off.
  1405.  
  1406.  Do not use pipes or redirection symbols with the call command.
  1407.  
  1408.  You cannot call DOS batch files (files with the extension .BAT) from an MS
  1409.  OS/2 batch file (a file with the extension "cmd" , the MS OS/2 command
  1410.  interpreter.
  1411.  
  1412.    «DOS»
  1413.  
  1414.  Works the same way in the DOS session as it does in an OS/2 session, except
  1415.  that you cannot call MS OS/2 batch files (files with the extension from a
  1416.  DOS batch file (a file with the extension .BAT) or from "command" , the DOS
  1417.  command interpreter.
  1418.  
  1419.  Example
  1420.  
  1421.  To run the file CHECKNEW/t option, include the following line in the first
  1422.  batch file:
  1423.  
  1424.  call checknew /t
  1425.  
  1426.  
  1427.  Call
  1428.  
  1429.    «CONFIG»
  1430.  
  1431.  call=[drive:][path]filename [arguments]
  1432.  
  1433.  Starts and runs a program in the foreground when you start your system. If
  1434.  you want to run a program that requires input from you, use this command
  1435.  rather than the "run" command. To use the call command, place it in your
  1436.  CONFIG.SYS file.
  1437.  
  1438.  filename                          Specifies the program you want to start.
  1439.                                    You must include the extension (located
  1440.                                    in the root directory of your start-up
  1441.                                    drive. The file cannot be a batch file.
  1442.  
  1443.  arguments                         Specifies any valid options or other
  1444.                                    variables for the program you are
  1445.                                    calling.
  1446.  
  1447.  When you use the call configuration command to run a program, MS OS/2 treats
  1448.  everything the program does as a single command; once that command has been
  1449.  carried out (that is, once the program has started, received any input
  1450.  needed from you, done whatever it does, and ended), MS OS/2 resumes
  1451.  processing the CONFIG.SYS file where it left off.
  1452.  
  1453.  You can include more than one call command in your CONFIG.SYS file.
  1454.  
  1455.  MS OS/2 processes all "device" commands in your CONFIG.SYS file before it
  1456.  starts processing call commands.
  1457.  
  1458.  You can use the call configuration command to start monitor programs for
  1459.  other sessions, but not for the session from which you are using call.
  1460.  Example
  1461.  
  1462.  To run the "chkdsk" utility for drive D each time you start your system,
  1463.  when CHKDSKyour CONFIG.SYS file:
  1464.  
  1465.  call=c:\os2\chkdsk.com d:
  1466.  
  1467.  
  1468.  Chcp (Change Code Page)
  1469.  
  1470.    «OS2»
  1471.  
  1472.  chcp [nnn]
  1473.  
  1474.  Switches to the specified system code page, which must have been defined
  1475.  previously in your CONFIG.SYS file.
  1476.  
  1477.  nnn                               Specifies the code page to be used. This
  1478.                                    argument must be a three-digit number
  1479.                                    from the list under the "codepage"
  1480.                                    command.
  1481.  
  1482.  If you type chcp by itself, MS OS/2 displays the number of the active code
  1483.  page and the numbers of the prepared code pages for that session.
  1484.  
  1485.  You can use this command only if code pages have been previously prepared by
  1486.  using the "codepage" command.
  1487.  
  1488.  Any program that you run after starting a new code page uses the new code
  1489.  page. Programs that started running before you started the new code page
  1490.  still use the original code page.
  1491.  
  1492.    «DOS»
  1493.  
  1494.  Works the same way in the DOS session as it does in an OS/2 session, except
  1495.  that when you type chcp by itself, MS OS/2 displays only the number of the
  1496.  active code page.
  1497.  
  1498.  Example
  1499.  
  1500.  To switch the code page to 860 (Portuguese), type the following:
  1501.  
  1502.  chcp 860
  1503.  
  1504.  
  1505.  Chdir (Change Directory)
  1506.  
  1507.    «OS2»
  1508.  
  1509.  chdir [drive:][path]
  1510.  
  1511.  Changes the current directory. You can abbreviate chdir as cd.
  1512.  
  1513.  If you type chdir by itself, MS OS/2 displays the name of the current
  1514.  directory of the current drive.
  1515.  
  1516.  You cannot use chdir to change drives, but you can use it to change the
  1517.  current directory of another drive. If you then switch to that drive, you
  1518.  will be in the directory you specified. Typing chdir plus the letter of
  1519.  another drive displays the name of the current directory on that drive.
  1520.  
  1521.    «DOS»
  1522.  
  1523.  Works the same way in the DOS session as it does in an OS/2 session.
  1524.  
  1525.  Examples
  1526.  
  1527.  To change from your current directory to the ENTREE subdirectory, type the
  1528.  following:
  1529.  
  1530.  cd entree
  1531.  
  1532.  To change from your current directory to its parent directory, type the
  1533.  following:
  1534.  
  1535.  cd ..
  1536.  
  1537.  To return to the root directory, type the following:
  1538.  
  1539.  cd \
  1540.  
  1541.  If your current directory is POETRY and its parent directory is BOOKS, and
  1542.  you want to change to the FICTION directory, which is also under BOOKS, type
  1543.  the following:
  1544.  
  1545.  cd ..\fiction
  1546.  
  1547.  
  1548.  Chkdsk (Check Disk)
  1549.  
  1550.    «OS2»
  1551.  
  1552.  chkdsk [drive:][path][filename] [/c] [/f[:n]] [/v]
  1553.  
  1554.  Checks a disk or partition for errors and displays a summary of how space is
  1555.  used on that disk or partition. The chkdsk utility also displays the volume
  1556.  label, the volume serial number, and the type of file system being used by
  1557.  the disk or partition.
  1558.  
  1559.  drive:                            Specifies the disk drive to check. If
  1560.                                    you do not specify drive, the chkdsk
  1561.                                    utility checks the current drive.
  1562.  
  1563.  filename                          (FAT file system only) Specifies the
  1564.                                    file to check. You can use wildcard
  1565.                                    characters to specify a group of files.
  1566.                                    The chkdsk utility reports how many of
  1567.                                    the specified files are stored in
  1568.                                    noncontiguous sectors.
  1569.  
  1570.  /c                                (HPFS only) Specifies that the chkdsk
  1571.                                    utility is to correct errors only if the
  1572.                                    file system was in an inconsistent state
  1573.                                    when you restarted your computer; if the
  1574.                                    file system was in a consistent state,
  1575.                                    chkdsk simply terminates, regardless of
  1576.                                    what other options you have specified.
  1577.                                    (The file system may be left in an
  1578.                                    inconsistent state if the system crashes
  1579.                                    or is restarted while there are open
  1580.                                    files or while the directory structure
  1581.                                    is being updated.) You can specify the
  1582.                                    level of data recovery by using the /f\:
  1583.                                    n option.
  1584.  
  1585.  /f [:n]                           Specifies that the chkdsk utility is to
  1586.                                    correct errors it finds on the disk. If
  1587.                                    you do not specify this option, chkdsk
  1588.                                    does not correct any errors. The n
  1589.                                    argument is available only for HPFS. It
  1590.                                    specifies the level of data recovery and
  1591.                                    must be a number in the range 0 through
  1592.                                    3; the default level is 2. Level 0 is
  1593.                                    the same as not specifying /f at all. At
  1594.                                    level 1, chkdsk corrects inconsistencies,
  1595.                                    moves data in reserved sectors to the
  1596.                                    file-system data sectors, and updates
  1597.                                    all references to the sectors in
  1598.                                    file-system structures. These actions
  1599.                                    may create orphaned disk space─that is,
  1600.                                    space that was once occupied by corrupt
  1601.                                    files that have been removed by chkdsk
  1602.                                    but that is still marked "in use" in the
  1603.                                    disk-usage map. At level 2, chkdsk does
  1604.                                    everything included at level 1 and also
  1605.                                    recovers any recognizable structures
  1606.                                    from orphaned disk space. At level 3,
  1607.                                    chkdsk does everything included at level
  1608.                                    2 and also recovers any recognizable
  1609.                                    structures from anywhere in the disk
  1610.                                    partition. The higher the level of
  1611.                                    recovery you specify, the more thorough
  1612.                                    the recovery will be, but the longer it
  1613.                                    will take.
  1614.  
  1615.  /v                                Displays the name of each file in each
  1616.                                    directory as it is checked.
  1617.  
  1618.  If you type chkdsk by itself, the utility displays the status of the disk in
  1619.  the current drive. If you specify a filename but no drive (FAT file system
  1620.  only), chkdsk displays the status of the disk in the current drive and of
  1621.  the individual file.
  1622.  
  1623.  If you specify the /f option, the chkdsk utility reports an error if there
  1624.  are any open files on the disk. If you do not specify /f and there are open
  1625.  files, chkdsk may report that there are lost clusters on the disk. This
  1626.  happens when the disk's file-system table has not been updated regarding
  1627.  open files.
  1628.  
  1629.  When the chkdsk utility finds lost clusters on a disk, it displays a message
  1630.  asking you whether you want the lost clusters recovered. If you did not
  1631.  specify /f, answering Yes only shows what chkdsk would have done if you had
  1632.  specified /f, and answering No does nothing. If you did specify /f, however,
  1633.  answering Yes causes chkdsk to recover the lost clusters and store them in
  1634.  files named FILEnnnn.CHK, where nnnn is a consecutive number beginning from
  1635.  0001; answering No causes chkdsk to erase the lost clusters. If there are
  1636.  extended attributes in the lost clusters, chkdsk does not erase the lost
  1637.  clusters when you specify /f and answer No.
  1638.  
  1639.  If chkdsk finds errors in extended attributes, it places the recovered
  1640.  attributes in files named EAnnnn.CHK, where nnnn is a sequential number
  1641.  assigned by MS OS/2. You can look at these files by using the type command.
  1642.  If you can identify which of your files the extended attributes belong to,
  1643.  you can join the extended attributes to the file by using the eautil
  1644.  utility.
  1645.  
  1646.  Do not try to fix errors while you are using the multitasking features of MS
  1647.  OS/2, such as background printing or spooling.
  1648.  
  1649.  ────────────────────────────────────────────────────────────────────────────
  1650.  Warning
  1651.  
  1652.  Do not run an older version of the chkdsk utility (earlier than MS OS/2
  1653.  version 1.2) on a disk or partition that contains extended attributes. You
  1654.  will lose the extended attributes, and you may corrupt the files on the
  1655.  partition.
  1656.  ────────────────────────────────────────────────────────────────────────────
  1657.  
  1658.  Although you can use the chkdsk utility to get information about any drive,
  1659.  you cannot use it to fix errors on the drive from which you started your
  1660.  system or the drive from which you are running chkdsk. To check your
  1661.  start-up drive, you must run chkdsk from the MS OS/2 Install disk. You can
  1662.  do the same thing to check the drive from which you would normally run
  1663.  chkdsk, or you can copy the chkdsk utility to another drive and run it from
  1664.  there.
  1665.  
  1666.  For more information about interpreting chkdsk messages and about fixing
  1667.  errors on your start-up disk, see the Microsoft Operating System/2 User's
  1668.  Guide.
  1669.  
  1670.    «DOS»
  1671.  
  1672.  Works the same way in the DOS session as it does in an OS/2 session that
  1673.  uses the FAT file system, except that the DOS version of the chkdsk utility
  1674.  displays the amount of memory used in the DOS session and you cannot run
  1675.  chkdsk on an HPFS partition from the DOS session.
  1676.  
  1677.  You cannot use the chkdsk utility on drives that you have assigned, joined,
  1678.  or substituted by using the "assign" , "join" , or "subst" utility. Example
  1679.  
  1680.  To check and fix errors on drive C, which is your start-up drive, insert the
  1681.  MS OS/2 Install disk in drive A, press CTL+ALT+DEL, press ESC when the logo
  1682.  appears, and type the following at the command prompt:
  1683.  
  1684.  chkdsk c: /f
  1685.  
  1686.  
  1687.  Cls (Clear Screen)
  1688.  
  1689.    «OS2»
  1690.  
  1691.  cls
  1692.  
  1693.  Clears the screen, leaving only the prompt and the cursor. If you are
  1694.  running "cmd" in a window, cls clears the contents of the window, including
  1695.  any information that is not currently visible.
  1696.  
  1697.    «DOS»
  1698.  
  1699.  Works the same in the DOS session as it does in an OS/2 session.
  1700.  
  1701.  
  1702.  Cmd (MS OS/2 Command Interpreter)
  1703.  
  1704.    «OS2»
  1705.  
  1706.  cmd [drive:][path] [/s] [/c command(s)|/k command(s)]
  1707.  
  1708.  Starts a new MS OS/2 command interpreter.
  1709.  
  1710.  drive:path                        Specifies the location of CMDpath, MS
  1711.                                    OS/2 uses the path specified in your
  1712.                                    environment.
  1713.  
  1714.  /s                                Instructs the new command interpreter
  1715.                                    not to set up the signal handler.
  1716.  
  1717.  /ccommand(s)                      Instructs the new command interpreter to
  1718.                                    perform the command or commands
  1719.                                    specified and then return control to the
  1720.                                    command interpreter that called it. If
  1721.                                    you specify multiple commands, separate
  1722.                                    them with an ampersand (&).
  1723.  
  1724.  /kcommand(s)                      Instructs the new command interpreter to
  1725.                                    perform the command or commands
  1726.                                    specified and then continue to run. If
  1727.                                    you specify multiple commands, separate
  1728.                                    them with an ampersand (&).
  1729.  
  1730.  
  1731.  If you type cmd by itself, MS OS/2 starts the new command interpreter in the
  1732.  current session.
  1733.  
  1734.  When you start a command interpreter, you also create a command environment.
  1735.  This environment is a copy of the environment from which you started the
  1736.  command interpreter. You can change this new environment without affecting
  1737.  the old environment.
  1738.  
  1739.  For an alternative way to run cmd and have it start other commands, see the
  1740.  "start" command. Example
  1741.  
  1742.  To start cmd and have it check the disk in drive B and then end, type the
  1743.  following:
  1744.  
  1745.  cmd /c chkdsk b:
  1746.  
  1747.  
  1748.  Codepage
  1749.  
  1750.    «CONFIG»
  1751.  
  1752.  codepage=xxx[,yyy]
  1753.  
  1754.  Selects the code pages that the system will use. To use this command, place
  1755.  it in your CONFIG.SYS file.
  1756.  
  1757.  xxx                               Specifies the first code page. This must
  1758.                                    be a three-digit number from the list
  1759.                                    that follows.
  1760.  
  1761.  yyy                               Specifies the optional second code page.
  1762.                                    This must be a three-digit number from
  1763.                                    the list that follows.
  1764.  
  1765.  If you specify two code pages, you can switch between them by using the
  1766.  "chcp" command.
  1767.  
  1768.  Code page, keyboard, and country are interrelated. A code page is a set of
  1769.  characters that are available to your system for use on the screen, for
  1770.  printing, and for sending to any other sort of output device. Your keyboard
  1771.  layout tells your system which characters from the character set correspond
  1772.  to which keystrokes; this can be different from country to country. The
  1773.  country you are working in (or for which you want to set up your system)
  1774.  determines which two code pages you should use. (For a list of country codes
  1775.  and their corresponding code pages, see the "country" command.) You can
  1776.  change keyboard layouts without having to change code pages.
  1777.  
  1778.  MS OS/2 supports the following four code pages:
  1779.  
  1780.  Code page                         Character set
  1781.  ────────────────────────────────────────────────────────────────────────────
  1782.  
  1783.  437                               United States
  1784.  
  1785.  850                               Multilingual
  1786.  
  1787.  860                               Portuguese
  1788.  
  1789.  863                               Canadian French
  1790.  
  1791.  The United States code page (437) includes most of the characters needed for
  1792.  most Western European languages, but the Multilingual code page (850), which
  1793.  is also used by systems other than personal computers, is more versatile and
  1794.  more complete. You would usually want to specify code page 850 as the second
  1795.  code page, no matter what national code page you specified first. For tables
  1796.  of the character sets in the four code pages, see the Appendix, "Code Pages
  1797.  and Keyboard Layouts."
  1798.  
  1799.  If you are setting up a keyboard, screen, or printer to use code pages, you
  1800.  must also use the "devinfo" command to specify the code pages the outside
  1801.  device is to use. For more information, see the "devinfo" command. Example
  1802.  
  1803.  To set up your system to use code pages 437 and 850, include the following
  1804.  line in your CONFIG.SYS file:
  1805.  
  1806.  codepage=437,850
  1807.  
  1808.  
  1809.  COM0x.SYS
  1810.  
  1811.    «CONFIG»
  1812.  
  1813.  device=[drive:][path]com0x.sys
  1814.  
  1815.  Directs MS OS/2 to load the COM0x.SYS device driver, which allows you to use
  1816.  your system's serial communications port. To use this command, place it in
  1817.  your CONFIG.SYS file.
  1818.  
  1819.  x                                 Specifies the communications-port device
  1820.                                    driver to load. For an IBM PC/AT or
  1821.                                    compatible computer, x must be 1. For an
  1822.                                    IBM PS/2 or compatible computer, x must
  1823.                                    be 2.
  1824.  
  1825.  Example
  1826.  
  1827.  To direct MS OS/2 to load the communications-port driver for your IBM PC/AT
  1828.  or compatible computer, add the following line to your CONFIG.SYS file:
  1829.  
  1830.  device=c:\os2\com01.sys
  1831.  
  1832.  ────────────────────────────────────────────────────────────────────────────
  1833.  Note
  1834.  
  1835.  To use a serial Microsoft Mouse on an IBM PC/AT or compat- ible computer,
  1836.  you must list the mouse drivers in your CONFIG.SYS file before any COM01.SYS
  1837.  device driver, as follows:
  1838.  ────────────────────────────────────────────────────────────────────────────
  1839.  
  1840.  device=c:\eos2\emsser01.sys
  1841.  device=c:\eos2\emouse.sys type=msser$
  1842.  device=c:\eos2\ecom01.sys
  1843.  
  1844.  
  1845.  Command
  1846.  
  1847.    «DOS»
  1848.  
  1849.  command [drive:][path] [/c command|/p] [/e:size]
  1850.  
  1851.  Starts a secondary DOS command interpreter in the DOS session.
  1852.  
  1853.  drive:path                        Specifies the location of COMMANDpath,
  1854.                                    MS OS/2 uses the path specified in your
  1855.                                    environment.
  1856.  
  1857.  /ccommand                         Instructs the secondary command
  1858.                                    interpreter to perform the command
  1859.                                    specified and then return control to the
  1860.                                    primary command interpreter.
  1861.  
  1862.  /p                                Instructs the secondary command
  1863.                                    interpreter to stay in memory. This
  1864.                                    disables the "exit"command; you must
  1865.                                    restart your system in order to remove
  1866.                                    the secondary command interpreter. Each
  1867.                                    secondary command interpreter uses a
  1868.                                    portion of your system's available
  1869.                                    memory, so running a secondary command
  1870.                                    interpreter leaves less memory available
  1871.                                    for running other programs in the DOS
  1872.                                    session.
  1873.  
  1874.  /e:size                           Specifies the size of the DOS
  1875.                                    environment, in bytes. This number must
  1876.                                    be in the range 160 through 32,768; the
  1877.                                    system rounds it up to a multiple of 16.
  1878.                                    The default value is 160.
  1879.  
  1880.  When you start a command interpreter, you also create a command environment.
  1881.  This environment is a copy of the environment from which you started the
  1882.  command interpreter. You can change the new environment without affecting
  1883.  the old environment. To quit the secondary command interpreter, use the exit
  1884.  command. Example
  1885.  
  1886.  To start a secondary DOS command interpreter and have it check the disk in
  1887.  drive B and then return to the primary command interpreter, type the
  1888.  following:
  1889.  
  1890.  command /c chkdsk b:
  1891.  
  1892.  
  1893.  Comp (Compare)
  1894.  
  1895.    «OS2»
  1896.  
  1897.  comp [drive:][path][filename1] [drive:][path][filename2]
  1898.  
  1899.  Compares two files or sets of files to see whether they are the same.
  1900.  
  1901.  filename1                         Specifies the name of the first file.
  1902.  
  1903.  filename2                         Specifies the name of the second file.
  1904.                                    If filename2 is the same as filename1
  1905.                                    except that the file is on a different
  1906.                                    drive, you can type only the drive
  1907.                                    letter of the second file.
  1908.  
  1909.  If you specify only a path or a drive, without any filename, the comp
  1910.  utility assumes that you want to compare all the files in that directory or
  1911.  on that drive.
  1912.  
  1913.  If you type comp by itself, the utility prompts you for the filenames. You
  1914.  can use wildcard characters to specify a group of files.
  1915.  
  1916.  If the files found in one directory differ in size from the files found in
  1917.  the other directory, comp displays a message asking if you want to continue.
  1918.  If the files are the same size but their contents differ, comp automatically
  1919.  displays the location and contents of each nonmatching byte.
  1920.  
  1921.    «DOS»
  1922.  
  1923.  Works the same way in the DOS session as it does in an OS/2 session.
  1924.  
  1925.  Examples
  1926.  
  1927.  To compare each file with the extension .DOC in the current directory on
  1928.  drive C with each file of the same name with the extension .BAK on drive B,
  1929.  type the following:
  1930.  
  1931.  comp c:*.doc b:*.bak
  1932.  
  1933.  To compare the files in the root directory on drive A with the contents of
  1934.  the TEMP directory on drive C, type the following:
  1935.  
  1936.  comp a: c:\temp
  1937.  
  1938.  To compare the contents of the SALES directory with the current directory,
  1939.  type the following:
  1940.  
  1941.  comp \sales .
  1942.  
  1943.  
  1944.  Copy
  1945.  
  1946.    «OS2»
  1947.  
  1948.  copy source [/a|/b] [+ source [/a|/b] [...]] destination [/a|/b] [/v] [/f]
  1949.  
  1950.  
  1951.  Copies information from a source to a destination. The source is usually a
  1952.  file or files, but it can also be a drive or directory or the output of a
  1953.  device (such as the keyboard); the destination can be one or more files or a
  1954.  device.
  1955.  
  1956.  source                            Specifies where the information will be
  1957.                                    copied from. If the source is a file, MS
  1958.                                    OS/2 assumes that the file is in the
  1959.                                    current directory on the current drive,
  1960.                                    unless you tell it otherwise by
  1961.                                    specifying a drive and path. The source
  1962.                                    can also be a drive or a directory. You
  1963.                                    can copy multiple files by using
  1964.                                    wildcard characters. You can copy
  1965.                                    multiple source files to one destination
  1966.                                    file by specifying multiple source-file
  1967.                                    names separated by plus signs (+). If
  1968.                                    the source is a device, MS OS/2 takes
  1969.                                    the input from that device and copies it
  1970.                                    to the destination.
  1971.  
  1972.  destination                       Specifies where the information will be
  1973.                                    copied to. The destination can be a
  1974.                                    single file, or you can use wildcard
  1975.                                    characters to specify a group of files.
  1976.                                    The destination can also be a directory
  1977.                                    or a device. If you specify only a drive
  1978.                                    as the destination, MS OS/2 copies to
  1979.                                    the current directory on that drive; if
  1980.                                    you do not specify a drive, MS OS/2 uses
  1981.                                    the current drive. If the destination is
  1982.                                    a file that does not already exist, MS
  1983.                                    OS/2 creates a new file; if the file
  1984.                                    already exists, MS OS/2 writes over the
  1985.                                    old file.
  1986.  
  1987.  /a                                Treats the source or destination as
  1988.                                    ASCII text. This option applies to the
  1989.                                    filename preceding it and to all
  1990.                                    remaining filenames in the command until
  1991.                                    MS OS/2 encounters a /b option, in which
  1992.                                    case the /b option applies to the
  1993.                                    filename that precedes it. When /a comes
  1994.                                    after the source, MS OS/2 copies
  1995.                                    everything up to the first CTRL+Z
  1996.                                    character, which it interprets as an
  1997.                                    end-of-file mark, and does not copy
  1998.                                    anything after that. When /a comes after
  1999.                                    the destination, MS OS/2 adds an
  2000.                                    end-of-file character as the last
  2001.                                    character of the destination file. When
  2002.                                    you are copying multiple files to one
  2003.                                    destination, the default option is
  2004.                                    always /a.
  2005.  
  2006.  /b                                Treats the source or destination as a
  2007.                                    binary file. This option applies to the
  2008.                                    filename preceding it and to all
  2009.                                    remaining filenames in the command until
  2010.                                    MS OS/2 encounters a /a option, in which
  2011.                                    case the /a option applies to the
  2012.                                    filename that precedes it. When /b comes
  2013.                                    after the source, MS OS/2 copies
  2014.                                    everything and does not interpret any
  2015.                                    CTRL+Z characters as end-of-file marks.
  2016.                                    When /b comes after the destination
  2017.                                    filename, MS OS/2 does not add an
  2018.                                    end-of-file character to the new file.
  2019.  
  2020.  /v                                Checks whether the sectors the
  2021.                                    information was copied to can be read.
  2022.  
  2023.  /f                                Specifies that MS OS/2 should not
  2024.                                    discard the extended attributes of a
  2025.                                    file if the destination file system does
  2026.                                    not support extended attributes. In this
  2027.                                    case, MS OS/2 does not copy the file.
  2028.  
  2029.  When you use the copy command to append files to an existing file without
  2030.  changing the existing filename (including its extension), you must specify
  2031.  that filename as the first source file, followed by the names of the files
  2032.  you want to append.
  2033.  
  2034.  When you copy a single file to a new file, the new file has the same date
  2035.  and time as the original. When you combine files into a new file, the new
  2036.  file has the current date and time.
  2037.  
  2038.  When you use the copy command to make a copy of an existing file, MS OS/2
  2039.  copies the extended attributes of that file to the new file. When you use
  2040.  copy to append files to an existing file, the extended attributes of the
  2041.  existing file do not change. When you append files to a new file, the new
  2042.  file uses the extended attributes of the first of the appended files.
  2043.  
  2044.  If you omit the /f option when you copy a file with extended attributes to a
  2045.  file system that does not support extended attributes, MS OS/2 copies the
  2046.  file and discards the extended attributes. If the file requires the extended
  2047.  attributes, MS OS/2 does not copy the file but displays an explanatory
  2048.  message on the screen.
  2049.  
  2050.  To copy files that have long filenames from an HPFS disk or partition to a
  2051.  FAT disk or partition, you must either give the files new names in the FAT
  2052.  filename format (xxxxxxxx.xxx) or use File Manager.
  2053.  
  2054.    «DOS»
  2055.  
  2056.  Works the same in the DOS session as it does in an OS/2 session.
  2057.  
  2058.  Examples
  2059.  
  2060.  To copy the file COMPANY.NEW in the current directory on the current drive
  2061.  to the CUSTOMER directory on the disk in drive B, type the following:
  2062.  
  2063.  copy company.new b:\ecustomer
  2064.  
  2065.  To copy all the files in the directory REPORTS on your hard disk (drive C)
  2066.  to the disk in drive A, type the following:
  2067.  
  2068.  copy c:\ereports\e* a:
  2069.  
  2070.  To combine the files INTRO.RPT, BODY.RPT, and SUM.RPT from the current drive
  2071.  and directory and place them in a file called REPORT on the disk in drive B,
  2072.  type the following:
  2073.  
  2074.  copy intro.rpt + body.rpt + sum.rpt b:report
  2075.  
  2076.  If you omit the destination-file name, MS OS/2 combines the files and stores
  2077.  them under the name of the first file specified.
  2078.  
  2079.  To combine all files from the current drive and directory that have the
  2080.  extension .TXT into one file named COMBIN.DOC in the same directory, type
  2081.  the following:
  2082.  
  2083.  copy *.txt combin.doc
  2084.  
  2085.  To combine each file from the current drive and directory that has the
  2086.  extension .TXT with the corresponding file that has the extension .REF and
  2087.  place the results into files with the extension .DOC (for example, VIDEO.TXT
  2088.  and VIDEO.REF would be combined as VIDEO.DOC), type the following:
  2089.  
  2090.  copy *.txt + *.ref *.doc
  2091.  
  2092.  To copy what you type at the keyboard (CON) to the file TEXT.TXT, type the
  2093.  following:
  2094.  
  2095.  copy con text.txt
  2096.  
  2097.  After typing your text, press CTRL+Z and then press ENTER to complete the
  2098.  command.
  2099.  
  2100.  
  2101.  Country
  2102.  
  2103.    «CONFIG»
  2104.  
  2105.  country=xxx[,[drive:][path]filename]
  2106.  
  2107.  Specifies the country for which MS OS/2 is to set up the system. To use this
  2108.  command, place it in your CONFIG.SYS file.
  2109.  
  2110.  xxx                               Specifies the country by using a
  2111.                                    three-digit country code from the list
  2112.                                    that follows. You must include all three
  2113.                                    digits, even if the code begins with a
  2114.                                    zero. The default setting is 001 (United
  2115.                                    States).
  2116.  
  2117.  filename                          Specifies the file that contains
  2118.                                    information on country conventions and
  2119.                                    supported code pages. If you do not
  2120.                                    specify a drive or path, MS OS/2 looks
  2121.                                    for this file in the root directory of
  2122.                                    the startup drive. If you do not specify
  2123.                                    filename, MS OS/2 uses the default
  2124.                                    COUNTRY.SYS file in the root directory
  2125.                                    of the drive from which you started MS
  2126.                                    OS/2.
  2127.  
  2128.  The country you choose determines the MS OS/2 conventions for such things as
  2129.  time and date format, decimal separators, and the order in which the "sort"
  2130.  utility sorts ASCII characters. The country you specify with the country
  2131.  command also determines which code pages you should specify with the
  2132.  "codepage" command.
  2133.  
  2134.  The following list shows the countries or languages that you can specify
  2135.  with the country command, the corresponding country codes, and the code
  2136.  pages supported for each country:
  2137.  
  2138.  Country or language group         Country     Code pages
  2139.                                    code
  2140.  ────────────────────────────────────────────────────────────────────────────
  2141.  
  2142.  Australia                         061         437,850
  2143.  
  2144.  Belgium                           032         850,437
  2145.  
  2146.  Canada (French)                   002         863,850
  2147.  
  2148.  Denmark                           045         850
  2149.  
  2150.  Finland                           358         850,437
  2151.  
  2152.  France                            033         437,850
  2153.  
  2154.  Germany                           049         850,437
  2155.  
  2156.  Italy                             039         437,850
  2157.  
  2158.  Latin America                     003         437,850
  2159.  
  2160.  
  2161.  Country or language group         Country     Code pages
  2162.                                    code
  2163.  ────────────────────────────────────────────────────────────────────────────
  2164.  
  2165.  Netherlands                       031         850,437
  2166.  
  2167.  Norway                            047         850
  2168.  
  2169.  Portugal                          351         850,860
  2170.  
  2171.  Spain                             034         850,437
  2172.  
  2173.  Sweden                            046         850,437
  2174.  
  2175.  Switzerland                       041         850,437
  2176.  
  2177.  United Kingdom                    044         437,850
  2178.  
  2179.  United States                     001         437,850
  2180.  
  2181.  
  2182.  ────────────────────────────────────────────────────────────────────────────
  2183.  Note
  2184.  
  2185.  Although not shown in the list, the following code pages are also available
  2186.  with special versions of MS OS/2: Arabic, Asia, Hebrew, Japan, Korea,
  2187.  People's Republic of China, and Taiwan.
  2188.  ────────────────────────────────────────────────────────────────────────────
  2189.  
  2190.  In the preceding list, the first of the two code pages for each country is
  2191.  the default code page for that country. If you do not include the "codepage"
  2192.  command in your CONFIG.SYS file, MS OS/2 uses the system default code page.
  2193.  Example
  2194.  
  2195.  To set up your system for the Netherlands and instruct MS OS/2 to look for
  2196.  COUNTRY.SYS in the OS2 directory on the disk in drive A, include the
  2197.  following line in your CONFIG.SYS file:
  2198.  
  2199.  country=031,a:\eos2\ecountry.sys
  2200.  
  2201.  
  2202.  Createdd (Create Dump Disk)
  2203.  
  2204.    «OS2»
  2205.  
  2206.  createdd drive:
  2207.  
  2208.  Prepares a disk that can be used to copy the contents of memory.
  2209.  
  2210.  drive:                            Specifies the drive that contains the
  2211.                                    disk to be used for copying memory
  2212.                                    contents.
  2213.  
  2214.  A copy of memory contents may be helpful in identifying system problems. To
  2215.  copy memory contents to a disk, insert the disk prepared by using createdd
  2216.  into the disk drive and press CTRL+ALT+NUMLOCK twice. If there is more
  2217.  information in memory than can fit on one disk, MS OS/2 prompts you to
  2218.  insert additional disks. These additional disks need only to have been
  2219.  formatted. After a disk is full, you receive summary information for that
  2220.  disk and MS OS/2 prompts you to insert another disk. When the copying
  2221.  operation is completed, MS OS/2 prompts you to reinsert the disk created by
  2222.  using createdd. The system then stops, and you must restart it.
  2223.  
  2224.  Do not start the copying operation while the hard disk is being read from or
  2225.  written to. This could disrupt directory information on the hard disk,
  2226.  causing files to be lost. Example
  2227.  
  2228.  To prepare a disk in drive A for copying memory contents, type the
  2229.  following:
  2230.  
  2231.  createdd a:
  2232.  
  2233.  
  2234.  Date
  2235.  
  2236.    «OS2»
  2237.  
  2238.  date [month-day-year]
  2239.  
  2240.  Sets the system calendar by specifying the current date.
  2241.  
  2242.  month                             Specifies a number in the range 1
  2243.                                    through 12.
  2244.  
  2245.  day                               Specifies a number in the range 1
  2246.                                    through 31.
  2247.  
  2248.  year                              Specifies a four-digit number in the
  2249.                                    range 1980 through 2079. You can
  2250.                                    abbreviate this number by using the last
  2251.                                    two digits of the year, in the range 80
  2252.                                    through 79.
  2253.  
  2254.  You can use slashes (/) or periods (.) instead of hyphens (-) to separate
  2255.  the month, day, and year.
  2256.  
  2257.  If you type date by itself, MS OS/2 displays the current date and then
  2258.  prompts you for a new date. If you don't want to change the date, just press
  2259.  ENTER.
  2260.  
  2261.  If you have used the "country" configuration command in your CONFIG.SYS file
  2262.  to alter the date format (for instance, to specify a date as
  2263.  day-month-year), the date command reflects that change.
  2264.  
  2265.    «DOS»
  2266.  
  2267.  Works the same way in the DOS session as it does in an OS/2 session.
  2268.  
  2269.  Example
  2270.  
  2271.  To set the system date to May 1, 2017, type the following:
  2272.  
  2273.  date 5-1-17
  2274.  
  2275.  
  2276.  Ddinstal (Install Device Driver)
  2277.  
  2278.    «OS2»
  2279.  
  2280.  ddinstal
  2281.  
  2282.  Provides an automated way to install new devices and their device drivers on
  2283.  your system without running the MS OS/2 installation program again. The
  2284.  ddinstal utility copies the device driver to your system and adds the
  2285.  appropriate "device" command to your CONFIG.SYS file.
  2286.  
  2287.  To install a device by using the ddinstal utility, type ddinstal and press
  2288.  ENTER. The utility prompts you to insert the disk that contains the device
  2289.  driver to be installed. Then simply follow the instructions on the screen to
  2290.  complete the installation.
  2291.  
  2292.  
  2293.  Del (Delete or Erase)
  2294.  
  2295.    «OS2»
  2296.  
  2297.  del [drive:][path]filename [...] [/p]
  2298.  
  2299.  Deletes a file or group of files. You can type erase instead of del if you
  2300.  prefer; they both have the same effect.
  2301.  
  2302.  filename                          Specifies the name of the file to be
  2303.                                    deleted. You can use wildcard characters
  2304.                                    to delete more than one file in a
  2305.                                    directory; you can also specify more
  2306.                                    than one file by typing the filenames
  2307.                                    individually, separated by spaces.
  2308.  
  2309.  /p                                Asks you for confirmation before
  2310.                                    deleting each file.
  2311.  
  2312.  You can type del * to delete all the files in the current directory. (You
  2313.  cannot, however, delete the directory itself by using del.) To delete all
  2314.  the files in another directory, type only del followed by the directory
  2315.  name. To prevent you from accidentally deleting important files, MS OS/2
  2316.  displays a message like the following when you type either of the preceding
  2317.  commands:
  2318.  
  2319.  C:\*.*, Are you sure (Y/N)?
  2320.  
  2321.  ────────────────────────────────────────────────────────────────────────────
  2322.  Warning
  2323.  
  2324.  Once you have deleted a file from your disk, it is gone; you cannot recover
  2325.  it. Be sure you have specified the right file or files, with the correct
  2326.  path, before you press ENTER.
  2327.  ────────────────────────────────────────────────────────────────────────────
  2328.  
  2329.  If you are deleting a group of files and MS OS/2 cannot delete one of them
  2330.  (for example, if one of the files you specified does not exist), it deletes
  2331.  the rest of the files in the group and then displays an error message
  2332.  identifying the file it could not delete and the reason.
  2333.  
  2334.    «DOS»
  2335.  
  2336.  Works the same way in the DOS session as it does in an OS/2 session, except
  2337.  that in the DOS session you cannot specify multiple filenames. You can,
  2338.  however, use wildcard characters to delete more than one file in the same
  2339.  directory. Example
  2340.  
  2341.  To delete all the files in the current directory of drive C that have the
  2342.  extension .BAK, and to delete the file OLDSTUFF.DOC in the directory MEMOS
  2343.  on drive B, type the following:
  2344.  
  2345.  del c:*.bak b:\ememos\eoldstuff.doc
  2346.  
  2347.  
  2348.  Detach
  2349.  
  2350.    «OS2»
  2351.  
  2352.  detach command [options]
  2353.  
  2354.  Detaches a process to run in the background while you go on to another task.
  2355.  
  2356.  
  2357.  command                           Specifies any MS OS/2 program or command
  2358.                                    that does not require you to type input
  2359.                                    from the keyboard.
  2360.  
  2361.  options                           Specifies any valid options that the
  2362.                                    program or command can accept in the
  2363.                                    command line.
  2364.  
  2365.  When you detach a process, MS OS/2 starts it as an independent process,
  2366.  displays the process identification (PID) number, and immediately displays
  2367.  the MS OS/2 prompt. You can then type other commands while the detached
  2368.  process is running in the background.
  2369.  
  2370.  You should not detach programs that require keyboard input.
  2371.  
  2372.  You can run programs in the background sequentially by listing their names
  2373.  in order, separated by ampersands (&).
  2374.  
  2375.  You cannot stop a detached process; it must complete itself on its own. If
  2376.  you delete the parent process (quit the command interpreter, for instance),
  2377.  the detached process still runs until it is finished.
  2378.  
  2379.  If you try to detach a program that should not be run in the background, you
  2380.  could ruin files or lose valuable information. The documentation for the
  2381.  program should tell you whether it can be detached safely. Examples
  2382.  
  2383.  To create an alphabetically sorted listing of the SORT.IN file and put it in
  2384.  a file called SORT.OUT, and to have this process run in the background so
  2385.  that you can run another process while it is sorting, type the following:
  2386.  
  2387.  detach sort < sort.in > sort.out
  2388.  
  2389.  To copy all the files from the current directory on the current drive to
  2390.  drive D and then place the directory listing in FILES.LST, and to have these
  2391.  processes run in the background, type the following:
  2392.  
  2393.  detach copy * d: & dir d: > files.lst
  2394.  
  2395.  
  2396.  Device
  2397.  
  2398.    «CONFIG»
  2399.  
  2400.  device=[drive:][path]filename [arguments]
  2401.  
  2402.  Instructs MS OS/2 to load the specified device driver. To use this command,
  2403.  place it in your CONFIG.SYS file.
  2404.  
  2405.  filename                          Specifies the name of the file that
  2406.                                    contains the device driver. If this file
  2407.                                    is not in the root directory of the
  2408.                                    start-up drive, you must include the
  2409.                                    drive and/or path.
  2410.  
  2411.  arguments                         Specifies any valid options or other
  2412.                                    variables for the designated device
  2413.                                    driver.
  2414.  
  2415.  Each device connected to your system needs its own device driver, and each
  2416.  driver requires a separate device command in your CONFIG.SYS file.
  2417.  
  2418.  You generally receive a device driver on a disk when you buy a new device;
  2419.  be sure that you place the device driver in the directory you specify with
  2420.  the device command.
  2421.  
  2422.  MS OS/2 processes device commands in the order in which they appear in your
  2423.  CONFIG.SYS file and before it processes any "run" commands in the file.
  2424.  Example
  2425.  
  2426.  To use the InPort(R) model of the Microsoft Mouse and specify that the
  2427.  device driver is in the OS2 directory on your hard disk (drive C), include
  2428.  the following lines in your CONFIG.SYS file:
  2429.  
  2430.  device=c:\eos2\emsinp01.sys
  2431.  device=c:\eos2\emouse.sys type=msinp$
  2432.  device=c:\eos2\epointdd.sys
  2433.  
  2434.  
  2435.  Devinfo (Device Information)
  2436.  
  2437.    «CONFIG»
  2438.  
  2439.  devinfo=devtype,subtype,[drive:][path]filename [,ROM=[[(
  2440.  ]xxx[,yyy)]][,...]]
  2441.  
  2442.  Prepares a device to use code pages. To use this command, place it in your
  2443.  CONFIG.SYS file.
  2444.  
  2445.  devtype                           Specifies the type of device: keyboard,
  2446.                                    monitor, or parallel printer. See the
  2447.                                    list on the next page for possible
  2448.                                    values.
  2449.  
  2450.  subtype                           Specifies the style or model of the
  2451.                                    device. For a keyboard, this argument
  2452.                                    would specify the keyboard layout. See
  2453.                                    the list below for possible values.
  2454.  
  2455.  filename                          Specifies the file that contains
  2456.                                    information about the code pages for
  2457.                                    that device. See the list below for
  2458.                                    possible values.
  2459.  
  2460.  ROM=                              Specifies that code pages are available
  2461.                                    to a printer, either in the printer's
  2462.                                    read-only memory or in a cartridge. This
  2463.                                    and the following options apply only to
  2464.                                    parallel printers.
  2465.  
  2466.  xxx                               Specifies a code page that is available
  2467.                                    for a parallel printer. Each code page
  2468.                                    is identified by a three-digit number;
  2469.                                    for a list of the possible code pages,
  2470.                                    see the "codepage"command. A printer may
  2471.                                    support more than one code page.
  2472.  
  2473.  yyy                               Specifies a font identification number
  2474.                                    that identifies a font on a parallel
  2475.                                    printer and associates that font with a
  2476.                                    particular code page. A code page may
  2477.                                    have more than one font associated with
  2478.                                    it. See your printer manual for font
  2479.                                    identification numbers.
  2480.  
  2481.  You must include a separate devinfo command in your CONFIG.SYS file for each
  2482.  device connected to your system, including the keyboard and the monitor, if
  2483.  you want to be able to switch code pages. The devinfo command specifies the
  2484.  kind of device you have connected to your system and the location of the
  2485.  code-page or keyboard information for that device.
  2486.  
  2487.  The MS OS/2 installation program automatically places certain devinfo
  2488.  commands in your CONFIG.SYS file.
  2489.  
  2490.   The following list shows the values you can give to devtype, subtype, and
  2491.  filename:
  2492.  
  2493.  Argument                          Keyboard    Monitor        Printer
  2494.  ────────────────────────────────────────────────────────────────────────────
  2495.  devtype                           KBD         SCR            PRN, LPT1,
  2496.                                                               LPT#, LPT4
  2497.  
  2498.  subtype                           keyboard    EGA, VGA       4201, 5202
  2499.                                    code
  2500.  
  2501.  filename                          KEYBOARD.D  VIOTBL.DCP     4201.DCP,
  2502.                                    CP                         5202.DCP
  2503.  
  2504.  
  2505.  Keyboard code is a two-letter code that identifies the keyboard layout for a
  2506.  particular country. For a list of the possible keyboard codes, see the
  2507.  "keyb" utility. Examples
  2508.  
  2509.  To prepare your keyboard to use the code pages you have specified with the
  2510.  "codepage" command, to use the United Kingdom keyboard layout, and to
  2511.  specify that the file containing code-page information is in the OS2
  2512.  directory on your hard disk (drive C), include the following line in your
  2513.  CONFIG.SYS file:
  2514.  
  2515.  devinfo=kbd,uk,c:\eos2\ekeyboard.dcp
  2516.  
  2517.  To prepare an IBM Quietwriter III to use code pages 437 and 850, with
  2518.  multiple fonts, include the following line in your CONFIG.SYS file (type
  2519.  this as a single line, even though it appears here on more than one line):
  2520.  
  2521.  devinfo=lpt1,5202,5202.dcp,rom=(437,011),
  2522.  (437,085),(437,254),(437,159),(850,254),
  2523.  (850,159)
  2524.  
  2525.  
  2526.  Dir (Directory)
  2527.  
  2528.    «OS2»
  2529.  
  2530.  dir [drive:][path][filename] [...] [/p] [/w | /f] [/n]
  2531.  
  2532.  Displays a list of the files on a disk or in a directory, with information
  2533.  about the size of each file and when it was created, the number of files in
  2534.  the directory, and the number of bytes free on the disk.
  2535.  
  2536.  path                              Specifies the directory whose listing
  2537.                                    you want to display.
  2538.  
  2539.  filename                          Specifies a particular file whose
  2540.                                    listing you want to display. If you
  2541.                                    specify a filename, MS OS/2 displays
  2542.                                    information about that file alone. You
  2543.                                    can use wildcard characters to get
  2544.                                    information about groups of files with
  2545.                                    similar names─for example, to compare
  2546.                                    the dates and sizes of several files
  2547.                                    with the same extension.
  2548.  
  2549.  /p                                Displays the listing one screenful at a
  2550.                                    time.
  2551.  
  2552.  /w                                Lists only the filenames (including
  2553.                                    their extensions) and displays them
  2554.                                    across the width of the screen in
  2555.                                    several columns. If you are using a file
  2556.                                    system that recognizes long filenames,
  2557.                                    the width of the columns is determined
  2558.                                    by the length of the longest filename.
  2559.                                    This option cannot be used with the /f
  2560.                                    option.
  2561.  
  2562.  /f                                Lists the drive, path, and filename
  2563.                                    (including extension) for each file
  2564.                                    specified, but does not display any
  2565.                                    other information about the file. This
  2566.                                    option cannot be used with the /w option.
  2567.  
  2568.  /n                                (FAT file system only) Displays the
  2569.                                    listing in the format used in HPFS, with
  2570.                                    the filename in the right-hand column
  2571.                                    and an additional column showing the
  2572.                                    size of each file's extended attributes.
  2573.  
  2574.  You can specify several drives, paths, or filenames. For each different
  2575.  drive or directory you specify, MS OS/2 displays a separate list of files.
  2576.  If, however, you specify more than one file or group of files in the same
  2577.  directory, MS OS/2 displays them in a single list for that directory.
  2578.  
  2579.  If you type dir by itself, MS OS/2 displays information about all the files
  2580.  in the current directory on the current drive.
  2581.  
  2582.  If you are displaying directory listings for several directories or disks
  2583.  (or for several files specified individually) and MS OS/2 cannot display a
  2584.  listing for one of them (for example, if one of the directories does not
  2585.  exist), it displays an error message for that file, directory, or disk, and
  2586.  continues displaying the rest of the listings.
  2587.  
  2588.    «DOS»
  2589.  
  2590.  Works the same way in the DOS session as it does in an OS/2 session, except
  2591.  that in the DOS session you cannot specify multiple directories or
  2592.  filenames. You can, however, use wildcard characters in filenames.
  2593.  
  2594.  Example
  2595.  
  2596.  To display a list of all the files in the LETTERS directory on drive C and a
  2597.  list of all the files with the extension .LTR in the OFFICE directory on
  2598.  drive B, and to display them as short, wide lists across the screen, type
  2599.  the following:
  2600.  
  2601.  dir c:\eletters b:\eoffice\e*.ltr /w
  2602.  
  2603.  
  2604.  Diskcache
  2605.  
  2606.    «CONFIG»
  2607.  
  2608.  diskcache=n[,m]
  2609.  
  2610.  Enables disk caching for the FAT file system and specifies the amount of
  2611.  memory to be set aside for the disk cache. To use this command, place it in
  2612.  your CONFIG.SYS file.
  2613.  
  2614.  n                                 Specifies the amount of memory, in
  2615.                                    kilobytes, to be set aside for the disk
  2616.                                    cache. This number must be in the range
  2617.                                    64 through 7200.
  2618.  
  2619.  m                                 Specifies the disk-cache threshold value,
  2620.                                    in sectors. If the data exceeds m
  2621.                                    sectors, MS OS/2 does not store it in
  2622.                                    the disk cache. This value must be in
  2623.                                    the range 1 through 32; the default
  2624.                                    value is 7.
  2625.  
  2626.  A disk cache is an extra buffer in which MS OS/2 stores information that it
  2627.  has recently read from your hard disk. When an application needs to read
  2628.  information from the hard disk, it looks first in the disk cache to see if
  2629.  the information is there. Since it is much faster to read from the disk
  2630.  cache than to read from the hard disk, disk caching can speed up your
  2631.  system. However, the disk cache uses part of system memory, so less memory
  2632.  is available to an application.
  2633.  
  2634.  MS OS/2 uses part of the memory set aside for the disk cache for control
  2635.  information. The amount of memory required for control information depends
  2636.  on the size of your hard disk.
  2637.  
  2638.  To change the size of the disk cache, change the diskcache command in your
  2639.  CONFIG.SYS file and then restart your system.
  2640.  
  2641.  You should not use the diskcache configuration command if your system has a
  2642.  partition that uses the high-performance file system (HPFS), because it
  2643.  slows the performance of HPFS. Example
  2644.  
  2645.  To set aside 128 kilobytes of memory for disk caching, include the following
  2646.  line in your CONFIG.SYS file:
  2647.  
  2648.  diskcache=128
  2649.  
  2650.  
  2651.  Diskcomp (Disk Compare)
  2652.  
  2653.    «OS2»
  2654.  
  2655.  diskcomp [drive1:] [drive2:]
  2656.  
  2657.  Compares two floppy disks track by track.
  2658.  
  2659.  drive1:                           Specifies the drive letter of the first
  2660.                                    disk being compared.
  2661.  
  2662.  drive2:                           Specifies the drive letter of the second
  2663.                                    disk being compared.
  2664.  
  2665.  Since the diskcomp utility automatically determines the number of sides and
  2666.  sectors per track by looking at the format of the first disk, both disks
  2667.  must be of the same type (for instance, high-density 5inch disks).
  2668.  
  2669.  If you specify only one drive, diskcomp compares the floppy disk in drive1
  2670.  with the floppy disk in the current drive. If you specify the same drive for
  2671.  both drive1 and drive2, diskcomp uses only that drive and prompts you to
  2672.  change disks as needed during the comparison. If you type diskcomp by
  2673.  itself, the utility uses only the current drive and prompts you to insert
  2674.  the two disks, as appropriate. (If the current drive is not a floppy-disk
  2675.  drive, you see an error message.)
  2676.  
  2677.    «DOS»
  2678.  
  2679.  Works the same way in the DOS session as it does in an OS/2 session.
  2680.  
  2681.  You cannot use the diskcomp utility on drives that you have assigned,
  2682.  joined, or substituted by using the "assign" , "join" , or "subst" utility.
  2683.  Example
  2684.  
  2685.  To compare two high-density floppy disks when you have only one high-density
  2686.  disk drive (drive A), type the following:
  2687.  
  2688.  diskcomp a: a:
  2689.  
  2690.  The diskcomp utility prompts you to insert each disk in turn, as needed,
  2691.  during the comparison.
  2692.  
  2693.  
  2694.  Diskcopy
  2695.  
  2696.    «OS2»
  2697.  
  2698.  diskcopy [drive1:] [drive2:]
  2699.  
  2700.  Makes a duplicate of a floppy disk.
  2701.  
  2702.  drive1:                           Specifies the drive that contains the
  2703.                                    floppy disk to be copied (the source
  2704.                                    disk).
  2705.  
  2706.  drive2:                           Specifies the drive that contains the
  2707.                                    floppy disk that will become the
  2708.                                    duplicate (the destination disk).
  2709.  
  2710.  The two disks must be of the same type (for example, high-density 5-inch
  2711.  floppy disks). If the destination disk is unformatted, diskcopy formats it
  2712.  with the same number of sides and sectors per track as the source disk.
  2713.  
  2714.  You can copy a disk using only one drive, either by not specifying any
  2715.  drives or by specifying the same drive for both source and destination.
  2716.  Diskcopy prompts you to insert the two disks as needed. If you type diskcopy
  2717.  by itself, the utility uses the current drive.
  2718.  
  2719.  Diskcopy writes over the information on the destination disk, even if it
  2720.  does not have to format the disk, so any information that is already on the
  2721.  disk is lost.
  2722.  
  2723.    «DOS»
  2724.  
  2725.  Works the same way in the DOS session as it does in an OS/2 session.
  2726.  
  2727.  You cannot use the diskcopy utility on drives that you have assigned,
  2728.  joined, or substituted by using the "assign" , "join" , or "subst" utility.
  2729.  Example
  2730.  
  2731.  To copy the floppy disk in drive A to a floppy disk in drive B, type the
  2732.  following:
  2733.  
  2734.  diskcopy a: b:
  2735.  
  2736.  
  2737.  Dpath (Data Path)
  2738.  
  2739.    «OS2»
  2740.  
  2741.  dpath [;|[drive:]path[;...]]
  2742.  
  2743.  Specifies which directories besides the current directory an application
  2744.  should search in order to find data files (files with extensions other than
  2745.  
  2746.  ;                                 When used alone (dpath ;), clears all
  2747.                                    data-path settings. Semicolons are also
  2748.                                    used to separate multiple data paths.
  2749.  
  2750.  path                              Specifies the path of the directory that
  2751.                                    you want the application to search. You
  2752.                                    can specify more than one path,
  2753.                                    separating them with semicolons (;).
  2754.  
  2755.  If you type dpath by itself, MS OS/2 displays the current data path.
  2756.  
  2757.  Each time you use the dpath command, the new data path you specify takes the
  2758.  place of the previous path. The data path is stored in the MS OS/2
  2759.  environment. Only applications that are written to take advantage of dpath
  2760.  will use the data path specified.
  2761.  
  2762.  The dpath command affects only the current session. To specify a data path
  2763.  for all sessions, you must set the DPATH environment variable in your
  2764.  CONFIG.SYS file. For information about how to do this, see the "set"
  2765.  command.
  2766.  
  2767.  If you start a new command interpreter from within a session where dpath is
  2768.  defined, the new session inherits the dpath setting. You can change this
  2769.  setting in the new session without affecting the settings in the parent
  2770.  session.
  2771.  
  2772.  The dpath command works much the way the "path" command does, except that
  2773.  dpath is used by an application to search for data files, whereas "path" is
  2774.  used by commands and utilities outside of applications.
  2775.  
  2776.  The dpath command achieves the same results in an OS/2 session as the
  2777.  "append" utility does in the DOS session. Example
  2778.  
  2779.  To instruct an application to search for data files in the SYMPHONY
  2780.  directory and the COUNTRY subdirectory of the BANDS directory on the current
  2781.  drive, and in the ROCK subdirectory of the BANDS directory on drive B, type
  2782.  the following:
  2783.  
  2784.  dpath \symphony;\bands\country;b:\bands\rock
  2785.  
  2786.  
  2787.  Eautil
  2788.  
  2789.    «OS2»
  2790.  
  2791.  eautil [/s [/r] [/p] | /j [/o | /m] [/p]] filename [holdfile]
  2792.  
  2793.  Deletes or copies (splits) the extended attributes from a data file or
  2794.  directory and stores them in a separate file, or copies (joins) the extended
  2795.  attributes back to the original data file or directory. The eautil utility
  2796.  enables applications that do not recognize extended attributes to manipulate
  2797.  files and directories without losing their extended attributes. The utility
  2798.  also enables you to send files over a network or copy them to systems that
  2799.  do not recognize extended attributes without losing their extended
  2800.  attributes.
  2801.  
  2802.  filename                          Specifies the data file or directory to
  2803.                                    copy the extended attributes from or
  2804.                                    back to.
  2805.  
  2806.  holdfile                          Specifies the file to store the extended
  2807.                                    attributes in or copy them back from. If
  2808.                                    you do not specify a filename for
  2809.                                    holdfile when splitting extended
  2810.                                    attributes, the eautil utility creates a
  2811.                                    file with the same name as filename and
  2812.                                    stores it in a directory named EAS. If
  2813.                                    you do not specify a filename for
  2814.                                    holdfile when joining extended
  2815.                                    attributes, eautil looks in the EAS
  2816.                                    directory for a file with the same name
  2817.                                    as filename.
  2818.  
  2819.  When you use the eautil utility to split the extended attributes from a file
  2820.  or directory, you use the /s option. When you specify /s, you can also
  2821.  specify the /r and /p options.
  2822.  
  2823.  /s                                Copies the extended attributes from
  2824.                                    filename to holdfile. This is the
  2825.                                    default option.
  2826.  
  2827.  /r                                Replaces the contents of holdfile with
  2828.                                    the extended attributes currently
  2829.                                    attached to filename. This option is
  2830.                                    used with the /s option. If holdfile
  2831.                                    already exists, you must specify the /r
  2832.                                    option in order to copy the extended
  2833.                                    attributes from filename; otherwise, the
  2834.                                    operation will fail.
  2835.  
  2836.  /p                                When used with the /s option, preserves
  2837.                                    the extended attributes attached to
  2838.                                    filename. If this option is not set, the
  2839.                                    eautil utility deletes the extended
  2840.                                    attributes from filename after copying
  2841.                                    them to holdfile.
  2842.  
  2843.  When you use the eautil utility to join extended attributes to a file or
  2844.  directory, you use the /j option. When you specify /j, you can also specify
  2845.  the /o or /m option and the /p option. If you specify the /j option and
  2846.  there are already extended attributes attached to filename, you must specify
  2847.  either the /o or /m option or the operation will fail.
  2848.  
  2849.  /j                                Copies the extended attributes from
  2850.                                    holdfile back to filename.
  2851.  
  2852.  /o                                Overwrites the extended attributes
  2853.                                    attached to filename, replacing them
  2854.                                    with the extended attributes in holdfile.
  2855.                                    This option is used with the /j option.
  2856.                                    You cannot specify the /o option with
  2857.                                    the /m option.
  2858.  
  2859.  /m                                Adds (merges) the extended attributes in
  2860.                                    holdfile to those in filename. This
  2861.                                    option is used with the /j option. You
  2862.                                    cannot specify the /m option with the /o
  2863.                                    option.
  2864.  
  2865.  /p                                When used with the /j option, preserves
  2866.                                    holdfile after the extended attributes
  2867.                                    in it have been copied to filename. If
  2868.                                    the /p option is not set, the eautil
  2869.                                    utility deletes holdfile after joining
  2870.                                    the extended attributes to filename.
  2871.  
  2872.  
  2873.  ────────────────────────────────────────────────────────────────────────────
  2874.  Note
  2875.  
  2876.  If your system crashes while you are running the eautil utility, the
  2877.  splitting or joining operation may be incomplete. If you were splitting
  2878.  extended attributes from a file or directory, you may have complete extended
  2879.  attributes in one location and incomplete ones in the other, but you won't
  2880.  know whether it is filename or holdfile that contains the complete set. To
  2881.  find out, run eautil again, specifying a different name for holdfile; then
  2882.  compare the sizes of the two holdfiles. The larger file contains the
  2883.  complete extended attributes, and you can delete the smaller file.
  2884.  ────────────────────────────────────────────────────────────────────────────
  2885.  
  2886.  If you were joining extended attributes to a file or directory when the
  2887.  system crashed, the extended attributes in filename may be incomplete. To
  2888.  remedy this, simply run eautil again and use the /o (overwrite) option (even
  2889.  if you were using the /m option when the system crashed).
  2890.  Examples
  2891.  
  2892.  To delete the extended attributes from the file REPORT and store them in a
  2893.  new file called REPORTEA, so that you can safely copy both files to a system
  2894.  running DOS or a version of MS OS/2 earlier than 1.2 without losing the
  2895.  extended attributes, type the following:
  2896.  
  2897.  eautil /s report reportea
  2898.  
  2899.  To copy the extended attributes from the file REPORTEA back to the file
  2900.  REPORT after you have copied both files to a system running MS OS/2 version
  2901.  1.2, type the following:
  2902.  
  2903.  eautil /j report reportea
  2904.  
  2905.  
  2906.  Echo
  2907.  
  2908.    «OS2»
  2909.  
  2910.  echo [on|off|message]
  2911.  
  2912.  Turns on or off the feature that displays batch-file commands on the screen
  2913.  while they are being processed, or simply displays the specified message on
  2914.  the screen. Although the echo command can be used from the command prompt,
  2915.  it is designed to be placed in a batch file.
  2916.  
  2917.  message                           Specifies a line of text to be displayed.
  2918.  
  2919.  If you type echo by itself, MS OS/2 displays the current setting.
  2920.  
  2921.  Ordinarily, MS OS/2 displays (echoes) commands in a batch file on the screen
  2922.  when it receives them. You can turn off this feature by specifying echo off
  2923.  in the batch file; none of the subsequent lines appear on the screen until
  2924.  MS OS/2 encounters an echo on command. You can also turn off the echoing of
  2925.  any individual command in a batch file, including the echo off command, by
  2926.  preceding the command with the @ symbol.
  2927.  
  2928.  You can display a message from a batch file (whether the echo feature is
  2929.  turned on or off) by specifying echo message in the file. If you want to
  2930.  display a message of more than one line, you must start each line with echo.
  2931.  
  2932.  
  2933.    «DOS»
  2934.  
  2935.  Works the same way in a DOS batch file (.BAT extension) as it does in an
  2936.  OS/2 batch file (
  2937.  
  2938.  Example
  2939.  
  2940.  To turn the echo feature off and then have a batch file display the message
  2941.  "This batch file formats and checks new disks.", type the following in the
  2942.  batch file:
  2943.  
  2944.  @echo off
  2945.  echo This batch file formats and checks
  2946.  echo new disks.
  2947.  
  2948.  
  2949.  Edlin (Line Editor)
  2950.  
  2951.    «DOS»
  2952.  
  2953.  edlin [drive:][path] filename
  2954.  
  2955.  Lets you create and edit text files.
  2956.  
  2957.  filename                          Specifies the name of the file you want
  2958.                                    to create or edit.
  2959.  
  2960.  The edlin utility is a line-oriented text editor with a set of single-letter
  2961.  commands. Each line of text is preceded by a number, which you use to
  2962.  reference that line in the text file. Edlin accepts up to 254 characters per
  2963.  line.
  2964.  
  2965.  Once started, the edlin utility displays an asterisk as a prompt. You type
  2966.  commands at the prompt to insert, delete, change, copy, or move lines within
  2967.  the file. If you are working in a file, you can return to the asterisk
  2968.  prompt by pressing CTRL+C. In addition to using the edlin commands, you can
  2969.  also use the MS OS/2 editing keys to edit individual lines.
  2970.  
  2971.  You can use the following symbols to reference a line number or range of
  2972.  line numbers:
  2973.  
  2974.  Symbol                            Meaning
  2975.  ────────────────────────────────────────────────────────────────────────────
  2976.  
  2977.  #                                 Specifies the line after the last line
  2978.                                    in the file.
  2979.  
  2980.  .                                 Specifies the current line.
  2981.  
  2982.  + or -                            Specifies a line relative to the current
  2983.                                    line; for example, \+3 means three lines
  2984.                                    past the current line.
  2985.  
  2986.  The following list summarizes the edlin commands:
  2987.  
  2988.  Command                           Purpose
  2989.  ────────────────────────────────────────────────────────────────────────────
  2990.  
  2991.  line                              Edits the line number or numbers
  2992.                                    specified.
  2993.  
  2994.  a                                 Appends lines from disk to memory.
  2995.  
  2996.  c                                 Copies lines.
  2997.  
  2998.  d                                 Deletes lines.
  2999.  
  3000.  e                                 Ends the editing session and saves edits.
  3001.  
  3002.  i                                 Inserts lines of text.
  3003.  
  3004.  L or l                            Lists a range of lines.
  3005.  
  3006.  m                                 Moves a range of text to a specified
  3007.                                    line.
  3008.  
  3009.  p                                 Pages through a file 23 lines at a time.
  3010.  
  3011.  q                                 Ends the editing session without saving
  3012.                                    edits.
  3013.  
  3014.  r                                 Replaces text.
  3015.  
  3016.  s                                 Searches for text.
  3017.  
  3018.  t                                 Transfers the contents of another file
  3019.                                    into the file being edited.
  3020.  
  3021.  w                                 Writes specified lines from memory to
  3022.                                    disk.
  3023.  
  3024.  For details about using the edlin utility, see your DOS manual.
  3025.  
  3026.  
  3027.  Endlocal
  3028.  
  3029.    «OS2»
  3030.  
  3031.  endlocal
  3032.  
  3033.  Restores the drive, directory, and environment settings that were in effect
  3034.  before the "setlocal" command changed them. Use this command only in a batch
  3035.  file.
  3036.  
  3037.  You can use multiple "setlocal" commands in a batch file without including
  3038.  corresponding "endlocal" commands; each succeeding "setlocal" overrides the
  3039.  previous one, in effect acting as an "endlocal" command for the previous
  3040.  setlocal. If there is no endlocal command after the last "setlocal" command
  3041.  in a batch file, MS OS/2 restores the original drive, directory, and
  3042.  environment settings when the batch file ends.
  3043.  
  3044.  You can use this command only in OS/2 batch files (files with the extension
  3045.  Example
  3046.  
  3047.  To use "setlocal" in a batch file to set an alternative search path for
  3048.  certain commands to use, and to reset the original path after those commands
  3049.  are finished, type the following lines in the batch file:
  3050.  
  3051.  setlocal
  3052.  path c:\etest;a:\etemp
  3053.    .
  3054.    .
  3055.    .
  3056.  endlocal
  3057.  
  3058.  
  3059.  Erase
  3060.  
  3061.  See "del" .
  3062.  
  3063.  
  3064.  Exit
  3065.  
  3066.    «OS2»
  3067.  
  3068.  exit
  3069.  
  3070.  Ends the current command interpreter and returns control to the program from
  3071.  which it was started.
  3072.  
  3073.  If you have used "cmd" to start another MS OS/2 command interpreter, the
  3074.  exit command ends that command interpreter and returns you to the parent
  3075.  command interpreter. If you type exit from the parent command interpreter,
  3076.  the OS/2 session ends.
  3077.  
  3078.    «DOS»
  3079.  
  3080.  Works the same way in the DOS session as it does in an OS/2 session, except
  3081.  that in the DOS session exit ends the current DOS command interpreter (
  3082.  "command" ), unless it is the parent command interpreter. You cannot end the
  3083.  parent command interpreter.
  3084.  
  3085.  
  3086.  EXTDSKDD.SYS
  3087.  
  3088.    «CONFIG»
  3089.  
  3090.  device=[drive:][path]extdskdd.sys [/d:drive] [/t:tracks] [/s:sectors]
  3091.  [/h:heads] [/f:type]
  3092.  
  3093.  Directs MS OS/2 to load the EXTDSKDD.SYS device driver. To use this command,
  3094.  place it in your CONFIG.SYS file.
  3095.  
  3096.  When the EXTDSKDD.SYS device driver is loaded, you can access a floppy disk
  3097.  by using a logical drive letter. You can associate the letter with an
  3098.  external disk drive, or you can associate a second name (an alias) with an
  3099.  internal or external disk drive and copy to and from that same disk drive.
  3100.  
  3101.  /d:drive                          .LI Specifies the physical drive number.
  3102.                                    The number must be in the range 0
  3103.                                    through 255. The first physical
  3104.                                    floppy-disk drive (drive A) is drive 0;
  3105.                                    a second physical floppy-disk drive is
  3106.                                    drive 1; a third physical floppy-disk
  3107.                                    drive, which must be external, is drive
  3108.                                    2.
  3109.  
  3110.  /t:tracks                         .LI Specifies the number of tracks per
  3111.                                    side of a block device. The number must
  3112.                                    be in the range 1 through 999; the
  3113.                                    default value is 80.
  3114.  
  3115.  /s:sectors                        .LI Specifies the number of sectors per
  3116.                                    track. The number must be in the range 1
  3117.                                    through 99; the default value is 9.
  3118.  
  3119.  /h:heads                          .LI Specifies the number of disk
  3120.                                    read/write heads. The number must be in
  3121.                                    the range 1 through 99; the default
  3122.                                    value is 2.
  3123.  
  3124.  /f:type                           .LI Specifies the type of drive. This
  3125.                                    value must be 0 (160/180K or 320/360K),
  3126.                                    1 (1.2 megabyte), or 2 (720K, the
  3127.                                    default type).
  3128.  
  3129.  Examples
  3130.  
  3131.  To associate an alias with an internal 1.2-megabyte drive A, include the
  3132.  following line in your CONFIG.SYS file:
  3133.  
  3134.  device=c:\os2\extdskdd.sys /d:0 /t:80 /s:15 /h:2 /f:1
  3135.  
  3136.  To copy from the external disk drive to that same external drive, include
  3137.  the following lines in your CONFIG.SYS file:
  3138.  
  3139.  device=c:\os2\extdskdd.sys /d:2
  3140.  device=c:\os2\extdskdd.sys /d:2
  3141.  
  3142.  The first line associates the next available drive letter with the external
  3143.  disk drive. The second line associates an additional drive letter (an alias)
  3144.  with that same external drive.
  3145.  
  3146.  
  3147.  Extproc (External Batch Processor)
  3148.  
  3149.    «OS2»
  3150.  
  3151.  extproc [drive:][path]filename [options]
  3152.  
  3153.  Defines an external batch processor for a batch file. Use this command only
  3154.  in a batch file.
  3155.  
  3156.  filename                          Specifies the name of the file that
  3157.                                    contains the external batch processor.
  3158.                                    The filename must include the extension.
  3159.                                    You can also include a drive and a path,
  3160.                                    if necessary.
  3161.  
  3162.  options                           Specifies any valid options for the new
  3163.                                    batch processor.
  3164.  
  3165.  By putting this command as the first line of your batch file, you cause MS
  3166.  OS/2 to start a different batch processor and use that to run the batch
  3167.  file.
  3168.  
  3169.  You can use this command only in OS/2 batch files (files with the extension
  3170.  Example
  3171.  
  3172.  To run a batch file by using a batch processor called BORNEwhich is in the
  3173.  \BATCH directory on your hard disk (drive C), instead of by using "cmd" ,
  3174.  type the following as the first line of your batch file:
  3175.  
  3176.  extproc c:\batch\borne.exe
  3177.  
  3178.  
  3179.  Fcbs (File Control Blocks)
  3180.  
  3181.    «CONFIG»
  3182.  
  3183.  fcbs=x,y
  3184.  
  3185.  Specifies the number of file control blocks (FCBs) MS OS/2 can have open at
  3186.  one time and the number of those it cannot automatically close when too many
  3187.  FCBs are open. To use this command, place it in your CONFIG.SYS file.
  3188.  
  3189.  x                                 Specifies the maximum number of file
  3190.                                    control blocks that can be open at one
  3191.                                    time. This number must be in the range 1
  3192.                                    through 255; the default value is 16.
  3193.  
  3194.  y                                 Specifies the number of file control
  3195.                                    blocks that MS OS/2 cannot close
  3196.                                    automatically. This number must be in
  3197.                                    the range 0 through 255 and must be less
  3198.                                    than or equal to x; the default value is
  3199.                                    8.
  3200.  
  3201.  
  3202.  If a program tries to open more than x files by using file control blocks,
  3203.  MS OS/2 closes one of the open files in order to make room for each new one.
  3204.  MS OS/2 tries to close the least recently used file first, but the fcbs
  3205.  command protects the first y files against being closed.
  3206.  
  3207.  This command affects only the DOS session.
  3208.  
  3209.  File control blocks are an old method of managing files. You should use the
  3210.  fcbs command only if a DOS application requires you to do so. Example
  3211.  
  3212.  To specify that MS OS/2 can open only four files by using file control
  3213.  blocks and that it cannot close the first two of those files, include the
  3214.  following line in your CONFIG.SYS file:
  3215.  
  3216.  fcbs=4,2
  3217.  
  3218.  
  3219.  Fdisk /d (Delete Disk Partition)
  3220.  
  3221.    «OS2»
  3222.  
  3223.  fdisk /d
  3224.  
  3225.  Deletes the primary MS OS/2 partition, the extended partition, and any
  3226.  logical drives from the hard disk you start your system from.
  3227.  
  3228.  You must run this utility from the MS OS/2 Install disk.
  3229.  
  3230.  To create or delete partitions without deleting the primary MS OS/2
  3231.  partition on your start-up drive, use the Fixed Disk Utility application
  3232.  from Start Programs.
  3233.  
  3234.  
  3235.  Find
  3236.  
  3237.    «OS2»
  3238.  
  3239.  find [/v] [/c] [/n] "string" [[drive:][path][filename] [...]]
  3240.  
  3241.  Searches the file or files you specify, or the input you give it, for a
  3242.  specific string of text and displays all the instances of that string that
  3243.  it finds.
  3244.  
  3245.  /v                                Displays all lines that do not contain
  3246.                                    string.
  3247.  
  3248.  /c                                Displays only the total number of lines
  3249.                                    found that contain string.
  3250.  
  3251.  /n                                Displays each line that contains string,
  3252.                                    with a number in front of it that
  3253.                                    indicates its position within the file.
  3254.  
  3255.  string                            Specifies the group of alphanumeric
  3256.                                    characters you want to search for. You
  3257.                                    must enclose the string in double
  3258.                                    quotation marks (" "). Since the find
  3259.                                    utility is case-sensitive, you must type
  3260.                                    uppercase and lowercase letters exactly
  3261.                                    as you want the utility to search for
  3262.                                    them. If you are searching for a string
  3263.                                    that contains double quotation marks,
  3264.                                    you must use two double quotation marks
  3265.                                    for each double quotation mark that is
  3266.                                    part of the string..
  3267.  
  3268.  filename                          Specifies the file in which to search
  3269.                                    for string. If the file is not in the
  3270.                                    current directory of the current drive,
  3271.                                    you must also specify a drive and/or
  3272.                                    path. You cannot use wildcard characters
  3273.                                    when specifying filenames, but you can
  3274.                                    specify several files in one find
  3275.                                    operation. If you do not specify a
  3276.                                    filename, find searches standard input.
  3277.  
  3278.  If you specify /c with /v, the find utility displays the number of lines
  3279.  that do not contain string. If you specify /c with /n, find ignores /n.
  3280.  
  3281.    «DOS»
  3282.  
  3283.  Works the same way in the DOS session as it does in an OS/2 session.
  3284.  
  3285.  Example
  3286.  
  3287.  To search for the string "I told him no, but did he listen?" in the files
  3288.  CHAPTER1.DOC and CHAPTER2.DOC on drive A, and to display the lines that
  3289.  contain the string along with their relative line numbers, type the
  3290.  following on one line:
  3291.  
  3292.  find /n "I told him no, but did he listen?"
  3293.  a:\echapter1.doc a:\echapter2.doc
  3294.  
  3295.  
  3296.  For
  3297.  
  3298.    «OS2»
  3299.  
  3300.  for [%]%x in (item [...] ) do command
  3301.  
  3302.  Performs a command for a set of files or other items that you specify.
  3303.  Although the for command can be used from the command prompt, it is designed
  3304.  to be placed in a batch file.
  3305.  
  3306.  %%x                               Specifies the variable that will be
  3307.                                    affected by command. The values of item
  3308.                                    are substituted sequentially for this
  3309.                                    variable. You can use any single letter
  3310.                                    or number for x.
  3311.  
  3312.  item                              Specifies a file or other item that you
  3313.                                    want to substitute for %%x so that
  3314.                                    command will affect it. You can specify
  3315.                                    multiple items, separated by spaces.
  3316.                                    These items are substituted sequentially
  3317.                                    for %%x. You can use wildcard characters
  3318.                                    in item names, and you can use
  3319.                                    replaceable parameters as items.
  3320.  
  3321.  command                           Specifies the command you want to
  3322.                                    perform on the items you have specified.
  3323.                                    This argument can be any MS OS/2 command
  3324.                                    or utility. You can also include any
  3325.                                    valid arguments for the command or
  3326.                                    utility that you specify.
  3327.  
  3328.  The for command substitutes the first item for the placeholder %%x and
  3329.  performs a command on that item; then for substitutes the second item for
  3330.  %%x and performs the command again; and so on until no items remain. If you
  3331.  use wildcard characters in an item name, the %%x is replaced once for each
  3332.  matching filename. For more information about replaceable parameters, see
  3333.  the Microsoft Operating System/2 User's Guide.
  3334.  
  3335.  If you use for directly from the command line, use only one percent sign in
  3336.  front of x (%x). In a batch file, however, you must use two percent signs,
  3337.  to distinguish this for variable from a replaceable parameter, which can be
  3338.  a number (%0-%9) or a string (%variable%).
  3339.  
  3340.    «DOS»
  3341.  
  3342.  Works the same way in a DOS batch file (.BAT extension) as it does in an
  3343.  OS/2 batch file (command or utility.
  3344.  
  3345.  Example
  3346.  
  3347.  To delete in turn each of the three files REPORT, MEMO, and ADDRESS, type
  3348.  the following in a batch file:
  3349.  
  3350.  for
  3351.  
  3352.  %%f in (report memo address) do del %%f
  3353.  
  3354.  
  3355.  Format
  3356.  
  3357.    «OS2»
  3358.  
  3359.  format drive: [/4] [/t:tracks] [/n:sectors] [/v:label] [/f:size]
  3360.  [/fs:filesystem]
  3361.  
  3362.  Prepares a disk or partition so that it can store MS OS/2 files.
  3363.  
  3364.  drive:                            Specifies the drive that contains the
  3365.                                    disk you want to format. This
  3366.                                    information is required.
  3367.  
  3368.  /4                                (FAT file system only) Formats a 5-inch,
  3369.                                    double-sided, low-density disk in a
  3370.                                    high-density drive. If you are using a
  3371.                                    low-density drive, you may not be able
  3372.                                    to reliably read disks formatted with
  3373.                                    this option.
  3374.  
  3375.  /t:tracks                         (FAT file system only) Formats a 3-inch
  3376.                                    disk to the number of tracks specified
  3377.                                    by tracks. The size of the specified
  3378.                                    drive determines the default value for
  3379.                                    tracks.
  3380.  
  3381.  /n:sectors                        (FAT file system only) Formats a 3-inch
  3382.                                    disk to the number of sectors specified
  3383.                                    by sectors. The size of the specified
  3384.                                    drive determines the default value for
  3385.                                    sectors.
  3386.  
  3387.  /v:label                          Specifies the volume label─a name used
  3388.                                    by programs to identify the disk. The
  3389.                                    label can be up to 11 characters. If you
  3390.                                    do not specify this option, the format
  3391.                                    utility prompts you for a volume label
  3392.                                    after formatting is complete. If the
  3393.                                    label includes blank spaces, you must
  3394.                                    enclose the label in double quotation
  3395.                                    marks.
  3396.  
  3397.  /f:size                           (FAT file system only) Specifies the
  3398.                                    memory capacity of a disk, in kilobytes
  3399.                                    (or, for a 1.2-megabyte or 1.44-megabyte
  3400.                                    disk, in megabytes). You can use this
  3401.                                    option instead of the /4, /t, and /n
  3402.                                    options, to simplify the process of
  3403.                                    formatting a floppy disk. The easiest
  3404.                                    way to specify size is as the number of
  3405.                                    kilobytes of memory on the disk (360,
  3406.                                    720, 1200, or 1440), but you can add an
  3407.                                    abbreviation (for example, 360K, 360KB,
  3408.                                    1.2M, 1.2MB) if you prefer.
  3409.  
  3410.  /fs:filesystem                    Specifies the file system for which to
  3411.                                    format the disk or partition. This can
  3412.                                    be any file system supported by MS OS/2.
  3413.                                    To format a disk or partition for the
  3414.                                    high-performance file system (HPFS),
  3415.                                    specify hpfs as the filesystem argument.
  3416.                                    When you use the /fs:hpfs option, the
  3417.                                    format utility adds the /autocheck:drive
  3418.                                    option to the end of the
  3419.                                    IFS=C:\OS2\HPFS.IFS /c:64 line in your
  3420.                                    CONFIG.SYS file. Whenever you
  3421.                                    subsequently restart your system, the
  3422.                                    /autocheck option causes MS OS/2 to run
  3423.                                    chkdsk /f for any HPFS drives that were
  3424.                                    shut down improperly.
  3425.  
  3426.  You must use the format utility to format all new disks so that MS OS/2 can
  3427.  use them. The format utility creates the directory and the file-system
  3428.  tables on the disk and assigns the disk a unique serial number. Format uses
  3429.  the drive type to determine the default format for the disk.
  3430.  
  3431.  You cannot format a disk that is in use, nor can you format your start-up
  3432.  disk or the disk that you started the format utility from.
  3433.  
  3434.  You cannot format a floppy disk for HPFS.
  3435.  
  3436.  ────────────────────────────────────────────────────────────────────────────
  3437.  Warning
  3438.  
  3439.  The format utility erases all information that is already on the disk, so be
  3440.  sure you specify the correct drive.
  3441.  ────────────────────────────────────────────────────────────────────────────
  3442.  
  3443.    «DOS»
  3444.  
  3445.  Works the same way in the DOS session as it does in an OS/2 session, except
  3446.  that you cannot format a disk or partition for HPFS from the DOS session.
  3447.  
  3448.  You cannot use the format utility with drives that you have assigned,
  3449.  joined, or substituted by using the "assign" , "join" , or "subst" utility.
  3450.  Example
  3451.  
  3452.  To format a floppy disk in drive A and give it the label OLD LETTERS, type
  3453.  the following:
  3454.  
  3455.  format a: /v:"old letters"
  3456.  
  3457.  
  3458.  Goto
  3459.  
  3460.    «OS2»
  3461.  
  3462.  goto label
  3463.  
  3464.  Directs MS OS/2 to go to a particular line in a batch file and continue
  3465.  processing commands from that point. Use this command only in a batch file.
  3466.  
  3467.  label                             Specifies the location in the batch file
  3468.                                    where MS OS/2 should continue processing
  3469.                                    commands. Label can be any string you
  3470.                                    choose, but the goto command uses only
  3471.                                    the first eight valid characters to
  3472.                                    identify the label. Spaces, tabs, and
  3473.                                    certain common separators such as the
  3474.                                    equal sign (=) and the semicolon (;) are
  3475.                                    not valid characters in a label; it is
  3476.                                    best to use only letters and numbers.
  3477.  
  3478.  The specified label should appear on a line by itself, preceded by a colon
  3479.  (:); this line is ignored in batch processing, except as a marker for the
  3480.  goto command. The label line can be either before or after the goto command
  3481.  in the file.
  3482.  
  3483.  The goto command simply ignores invalid separators if they appear in the
  3484.  label line, but when it encounters a space or a tab, it stops reading the
  3485.  label. The following label lines, then, are equivalent:
  3486.  
  3487.  :lab
  3488.  :lab el
  3489.  :--lab el
  3490.  :==lab
  3491.  ==:;;lab el
  3492.  
  3493.    «DOS»
  3494.  
  3495.  Works the same way in a DOS batch file (.BAT extension) as it does in an
  3496.  OS/2 batch file (
  3497.  
  3498.  Example
  3499.  
  3500.  To format the disk in drive A and either go to the end of the file if no
  3501.  errors occur or display an error message if the formatting isn't completed
  3502.  successfully, type the following in a batch file:
  3503.  
  3504.  @echo off
  3505.  format a:
  3506.  if not errorlevel 1 goto end
  3507.  echo An error occurred during formatting.
  3508.  :end
  3509.  echo End of batch file.
  3510.  
  3511.  
  3512.  Graftabl (Graphics Table)
  3513.  
  3514.    «DOS»
  3515.  
  3516.  graftabl [xxx|?|/status]
  3517.  
  3518.  Loads the special graphics characters of an extended character set into
  3519.  memory so that your monitor can display these characters if you are using a
  3520.  display adapter in graphics mode.
  3521.  
  3522.  xxx                               Specifies the code page that defines the
  3523.                                    extended character set. This argument
  3524.                                    must be a three-digit number from the
  3525.                                    list that follows; the default code page
  3526.                                    is 437 (United States).
  3527.  
  3528.  ?                                 Displays the number of the active code
  3529.                                    page and a list of the available code
  3530.                                    pages.
  3531.  
  3532.  /status                           Displays the number of the active code
  3533.                                    page. You can abbreviate /status as /sta.
  3534.  
  3535.  The following code pages can be loaded by using the graftabl utility:
  3536.  
  3537.  Code                              Character set
  3538.  ────────────────────────────────────────────────────────────────────────────
  3539.  
  3540.  437                               United States
  3541.  
  3542.  850                               Multilingual
  3543.  
  3544.  860                               Portuguese
  3545.  
  3546.  863                               Canadian French
  3547.  
  3548.  
  3549.  ────────────────────────────────────────────────────────────────────────────
  3550.  Warning
  3551.  
  3552.  If you type graftabl by itself, the utility displays the number of the
  3553.  active code page, but it also automatically loads the default code page
  3554.  (437). Therefore, if you have a different code page loaded, typing graftabl
  3555.  by itself will identify that code page but also change it.
  3556.  ────────────────────────────────────────────────────────────────────────────
  3557.  
  3558.  Example
  3559.  
  3560.  To enable MS OS/2 to display the special graphics characters of the
  3561.  Portuguese extended character set, type the following:
  3562.  
  3563.  graftabl 860
  3564.  
  3565.  
  3566.  Help
  3567.  
  3568.    «OS2»
  3569.  
  3570.  help [on|off |messageid | [document] topic]
  3571.  
  3572.  Displays Help information about MS OS/2 and about error or warning messages
  3573.  displayed in an OS/2 session or in the DOS session, or starts a Presentation
  3574.  Manager application that lets you view topics within an on-line reference
  3575.  document.
  3576.  
  3577.  on                                Displays a Help line at the top of your
  3578.                                    screen. This line tells you how to get
  3579.                                    help and how to get back to Desktop
  3580.                                    Manager. The help on command replaces
  3581.                                    your current prompt setting with the
  3582.                                    Help line and the current drive letter.
  3583.  
  3584.  off                               Removes the Help line from your screen.
  3585.                                    This is the default setting.
  3586.  
  3587.  messageid                         Identifies the particular Help message
  3588.                                    that you want more information about.
  3589.                                    The message identification number
  3590.                                    consists of three letters─for example,
  3591.                                    SYS─followed by a four-digit number. For
  3592.                                    system messages, you can also specify
  3593.                                    the number without the letters and
  3594.                                    leading zeros (for example, SYS0002 can
  3595.                                    be specified as 2).
  3596.  
  3597.  document                          Specifies the file that contains the
  3598.                                    reference document you want to view. If
  3599.                                    you do not specify a document, the help
  3600.                                    utility uses the OS/2 Command Reference.
  3601.                                    If you do not specify the filename
  3602.                                    extension, help uses the extension .INF.
  3603.  
  3604.  topic                             Specifies the topic you want to view
  3605.                                    information about. For the OS/2 Command
  3606.                                    Reference, this can be the name of a
  3607.                                    command or utility, or any other topic
  3608.                                    listed in the table of contents. If you
  3609.                                    specify document but do not specify
  3610.                                    topic, the help utility displays the
  3611.                                    table of contents of document. If you
  3612.                                    type only the first part of a topic name,
  3613.                                    help displays the first topic that
  3614.                                    matches the partial name.
  3615.  
  3616.  If you type help by itself, the utility displays a list of Help options and
  3617.  information.
  3618.  
  3619.  The MS OS/2 installation program places the following line in your
  3620.  CONFIG.SYS file:
  3621.  
  3622.  set bookshelf=c:\os2\book
  3623.  
  3624.  The help utility searches for the document file in the directory specified
  3625.  in the BOOKSHELF environment variable. If you do not explicitly name the
  3626.  document, help searches each document in the directory for the topic. You
  3627.  can add other directories to the BOOKSHELF environment variable.
  3628.  
  3629.    «DOS»
  3630.  
  3631.  Works the same way in the DOS session as it does in an OS/2 session.
  3632.  
  3633.  Examples
  3634.  
  3635.  To get more information about the error message "SYS0002: File not found",
  3636.  type the following:
  3637.  
  3638.  help sys0002
  3639.  
  3640.  MS OS/2 then displays the following information:
  3641.  
  3642.  SYS0002: The system cannot find the file specified.
  3643.  EXPLANATION: The file named in the command
  3644.  does not exist in the current directory or search path
  3645.  specified. Or, the file name was entered incorrectly.
  3646.  ACTION: Retry the command using the correct file name.
  3647.  
  3648.  To view the description of the "mode" command in the OS/2 Command Reference,
  3649.  type the following:
  3650.  
  3651.  help mode
  3652.  
  3653.  To view the description of MyTopic in the document file for an application
  3654.  named MyApp, which is in the directory MYDIR on your hard disk (drive C),
  3655.  type the following:
  3656.  
  3657.  help c:\mydir\myapp.inf mytopic
  3658.  
  3659.  
  3660.  If
  3661.  
  3662.    «OS2»
  3663.  
  3664.  if [not] condition command
  3665.  
  3666.  Directs MS OS/2 to carry out the given command only if the specified
  3667.  condition is met. If you include the word not, MS OS/2 carries out the
  3668.  command only if the condition is not met. Although the if command can be
  3669.  used from the command prompt, it is designed to be placed in a batch file.
  3670.  
  3671.  condition                         Specifies one of three conditions that
  3672.                                    determine whether MS OS/2 carries out
  3673.                                    the command:
  3674.  
  3675.                                    errorlevel numberWhen a program finishes,
  3676.                                    it sends an exit code to MS OS/2. If the
  3677.                                    exit code returned by the last program
  3678.                                    you ran was greater than or equal to
  3679.                                    number, MS OS/2 carries out the command.
  3680.  
  3681.                                    string1==string2If the first string is
  3682.                                    exactly the same as the second string,
  3683.                                    MS OS/2 carries out the command.
  3684.                                    Uppercase or lowercase is significant.
  3685.                                    The strings must not include separators
  3686.                                    such as commas, semicolons, equal signs,
  3687.                                    and spaces.
  3688.  
  3689.                                    exist [drive:][path] filenameIf the
  3690.                                    filename exists in the specified
  3691.                                    directory, MS OS/2 carries out the
  3692.                                    command. You can specify a drive and a
  3693.                                    path before filename; otherwise, MS OS/2
  3694.                                    looks for filename in the current
  3695.                                    directory.
  3696.  
  3697.  
  3698.  
  3699.  command                           Specifies the command to carry out if
  3700.                                    the given condition is met.
  3701.  
  3702.  
  3703.    «DOS»
  3704.  
  3705.  Works the same way in a DOS batch file (.BAT extension) as it does in an
  3706.  OS/2 batch file (
  3707.  
  3708.  Example
  3709.  
  3710.  To display the message "Can't find data file" if the file BOOK.DAT does not
  3711.  exist in the current directory, type the following in a batch file:
  3712.  
  3713.  if not exist book.dat echo Can't find data file
  3714.  
  3715.  
  3716.  Ifs (Install File System)
  3717.  
  3718.    «CONFIG»
  3719.  
  3720.  ifs=[drive:][path]filename [/c[ache]:nnnn]
  3721.  
  3722.  Installs the driver for an installable file system and specifies the amount
  3723.  of memory to be reserved for disk caching. To use this command, place it in
  3724.  your CONFIG.SYS file.
  3725.  
  3726.  filename                          Specifies the name of the file that
  3727.                                    contains the file-system driver. If this
  3728.                                    file is not in the root directory of the
  3729.                                    start-up drive, you must include the
  3730.                                    drive and/or path.
  3731.  
  3732.  /c[ache]:nnnn                     (HPFS only) Specifies the amount of
  3733.                                    memory, in kilobytes, to be set aside
  3734.                                    for disk caching by the installable file
  3735.                                    system. You can abbreviate /cache as /c.
  3736.                                    The value of nnnn must be a number in
  3737.                                    the range 64 through 2048 and should be
  3738.                                    a multiple of 2, since HPFS divides the
  3739.                                    cache into 2-kilobyte blocks. If you
  3740.                                    specify an odd number when you are
  3741.                                    installing the HPFS driver, MS OS/2
  3742.                                    rounds it down to the next even number.
  3743.                                    The default cache size is either 64K or
  3744.                                    10 percent of the total available memory,
  3745.                                    whichever is greater.
  3746.  
  3747.  The ifs command should precede any "device" command in your CONFIG.SYS file,
  3748.  except "device" commands that load device drivers required by the
  3749.  installable file system. Example
  3750.  
  3751.  To set aside 500 kilobytes of memory for HPFS disk caching, include the
  3752.  following line in your CONFIG.SYS file:
  3753.  
  3754.  ifs=c:\os2\hpfs.ifs /c:500
  3755.  
  3756.  
  3757.  Iopl (Input/Output Privilege)
  3758.  
  3759.    «CONFIG»
  3760.  
  3761.  iopl=yes|no|program[,...]
  3762.  
  3763.  Specifies whether MS OS/2 can give data input/output privilege to a process
  3764.  that requests it in an OS/2 session. To use this command, place it in your
  3765.  CONFIG.SYS file.
  3766.  
  3767.  yes                               Allows MS OS/2 to give input/output
  3768.                                    privilege to a process.
  3769.  
  3770.  no                                Prevents MS OS/2 from giving
  3771.                                    input/output privilege to a process.
  3772.                                    This is the default setting.
  3773.  
  3774.  program                           Specifies the program that will be
  3775.                                    granted input/output privilege on
  3776.                                    request. You can specify more than one
  3777.                                    program, separating the names with
  3778.                                    commas.
  3779.  
  3780.  Some MS OS/2 applications need direct access to hardware such as the display
  3781.  adapter. The iopl command specifies whether they can receive that access.
  3782.  Examples of applications that require input/output privilege are the
  3783.  Microsoft CodeView\(rg debugger, Microsoft Word, and some printer drivers.
  3784.  
  3785.  You should use the iopl command only if an application requires you to do
  3786.  so.
  3787.  
  3788.  This command has no effect on applications that are running in the DOS
  3789.  session.
  3790.  
  3791.  
  3792.  Join
  3793.  
  3794.    «DOS»
  3795.  
  3796.  join [[drive1: drive2:path]|[drive1: /d]]
  3797.  
  3798.  Temporarily renames the disk in the first drive as a directory on the disk
  3799.  in the second drive. While a "join" is in effect, you cannot use the drive
  3800.  letter of the first drive to identify it.
  3801.  
  3802.  drive1:                           Specifies the drive you want to join to
  3803.                                    a directory on drive2.
  3804.  
  3805.  drive2:path                       Specifies the drive and path of the
  3806.                                    directory to which you want to join
  3807.                                    drive1. The directory must be a
  3808.                                    subdirectory of the root directory of
  3809.                                    drive2. If the directory already exists,
  3810.                                    it must be empty; if it does not exist,
  3811.                                    MS OS/2 creates it.
  3812.  
  3813.  /d                                Deletes an existing "join." You must
  3814.                                    specify drive1 to identify which "join"
  3815.                                    is to be deleted, but you must not
  3816.                                    specify drive2:path with the /d option.
  3817.  
  3818.  
  3819.  The entire directory structure of the disk in drive1 appears to be in the
  3820.  directory you have specified on the disk in drive2.
  3821.  
  3822.  The following utilities do not work on a drive that you have joined to a
  3823.  directory on another drive:
  3824.  
  3825.  .HP chkdsk 38                     "format"
  3826.  
  3827.  .HP diskcomp 63                   "label"
  3828.  
  3829.  .HP diskcopy 64                   "recover"
  3830.  
  3831.  .HP fdisk /d 74
  3832.  
  3833.  If you type join by itself, the utility displays a list of the joined
  3834.  directories currently in effect.
  3835.  
  3836.  The join utility affects only the DOS session. Example
  3837.  
  3838.  To join drive B to the directory PROJECTS on drive A, type the following:
  3839.  
  3840.  join b: a:\eprojects
  3841.  
  3842.  
  3843.  Keyb (Keyboard)
  3844.  
  3845.    «OS2»
  3846.  
  3847.  keyb [code [subcode]]
  3848.  
  3849.  Directs MS OS/2 to use a country-specific keyboard layout other than the
  3850.  United States layout.
  3851.  
  3852.  code                              Specifies the keyboard layout by country,
  3853.                                    using a two-letter code from the list
  3854.                                    that follows.
  3855.  
  3856.  subcode                           Specifies a keyboard layout for
  3857.                                    countries that have more than one layout,
  3858.                                    using a three-digit subcode from the
  3859.                                    list that follows.
  3860.  
  3861.  The following keyboard layouts are available:
  3862.  
  3863.  Code                              Keyboard    Subcode
  3864.  ────────────────────────────────────────────────────────────────────────────
  3865.  
  3866.  BE                                Belgium     120
  3867.  
  3868.  CF                                Canada      058
  3869.                                    (French)
  3870.  
  3871.  DK                                Denmark     159
  3872.  
  3873.  FR                                France      189, 120
  3874.  
  3875.  GR                                Germany     129
  3876.  
  3877.  IT                                Italy       141, 142
  3878.  
  3879.  LA                                Latin       171
  3880.                                    America
  3881.  
  3882.  NL                                Netherland  143
  3883.                                    s
  3884.  
  3885.  NO                                Norway      155
  3886.  
  3887.  PO                                Portugal    163
  3888.  
  3889.  SF                                Switzerlan  150F
  3890.                                    d (French)
  3891.  
  3892.  SG                                Switzerlan  150G
  3893.                                    d (German)
  3894.  
  3895.  SP                                Spain       172
  3896.  
  3897.  SU                                Finland     153
  3898.  
  3899.  SV                                Sweden      153
  3900.  
  3901.  UK                                United      166, 168
  3902.                                    Kingdom
  3903.  
  3904.  US                                United      103
  3905.                                    States
  3906.  
  3907.  
  3908.  Subcodes are associated only with enhanced keyboards. Because France, Italy,
  3909.  and the United Kingdom have more than one enhanced-keyboard layout
  3910.  available, MS OS/2 uses the subcode to identify the specific layout to use.
  3911.  
  3912.  To use the keyb utility, you must have a "devinfo" command for your keyboard
  3913.  in your CONFIG.SYS file. For more information, see the "devinfo" command.
  3914.  
  3915.  The keyb utility affects all programs and all sessions.
  3916.  
  3917.  If you type keyb by itself, the utility displays the current keyboard layout
  3918.  and code-page setting. Examples
  3919.  
  3920.  To use a German keyboard layout, type the following:
  3921.  
  3922.  keyb gr
  3923.  
  3924.  To return to using the US keyboard layout, type the following:
  3925.  
  3926.  keyb us
  3927.  
  3928.  
  3929.  Keys
  3930.  
  3931.    «OS2»
  3932.  
  3933.  keys [on|off |list]
  3934.  
  3935.  Turns on or off the special functions of the DIRECTION keys and editing keys
  3936.  that enable you to edit commands on the command line. You can retrieve any
  3937.  command that is in the command-line buffer, edit it, and use it at the
  3938.  command prompt.
  3939.  
  3940.  on                                Turns on the special functions of the
  3941.                                    DIRECTION and editing keys used to edit
  3942.                                    commands on the command line and opens
  3943.                                    the command-line buffer so that each
  3944.                                    subsequent command is added to the
  3945.                                    buffer.
  3946.  
  3947.  off                               Turns off the special
  3948.                                    command-line-editing functions of the
  3949.                                    DIRECTION and editing keys and closes
  3950.                                    the command-line buffer so that
  3951.                                    subsequent commands are not added to the
  3952.                                    buffer. This is the default setting.
  3953.  
  3954.  list                              Lists the contents of the command-line
  3955.                                    buffer. The buffer contains a list of
  3956.                                    the last several commands you typed at
  3957.                                    the command prompt, numbered from oldest
  3958.                                    (1) to most recent.
  3959.  
  3960.  When you first use the keys command, MS OS/2 sets an environment variable
  3961.  (KEYS=ON or KEYS=OFF); each subsequent time you type keys on or keys off,
  3962.  the environment variable changes to reflect the new command. (No KEYS
  3963.  variable appears in the environment until the first time you use the keys
  3964.  command, unless you have previously set the variable in your CONFIG.SYS
  3965.  file.)
  3966.  
  3967.  The keys command affects only the current OS/2 session.
  3968.  
  3969.  When keys is on, the DIRECTION and editing keys have the following effects:
  3970.  
  3971.  Key                               Editing function
  3972.  ────────────────────────────────────────────────────────────────────────────
  3973.  
  3974.  ESC                               Clears the current command line and
  3975.                                    returns the cursor to the position
  3976.                                    immediately following the prompt.
  3977.  
  3978.  HOME                              Returns the cursor to the position
  3979.                                    immediately following the prompt.
  3980.  
  3981.  
  3982.  Key                               Editing function
  3983.  ────────────────────────────────────────────────────────────────────────────
  3984.  
  3985.  END                               Places the cursor in the position
  3986.                                    immediately following the last character
  3987.                                    you typed (even if that character is a
  3988.                                    space).
  3989.  
  3990.  INS                               Turns insert mode on and off. The cursor
  3991.                                    appears as a half box in insert mode. As
  3992.                                    you insert characters, existing
  3993.                                    characters to the right of the cursor
  3994.                                    move to the right. At the beginning of
  3995.                                    each new command line, insert mode is
  3996.                                    turned off.
  3997.  
  3998.  DEL                               Deletes the character marked by the
  3999.                                    cursor. As you delete characters,
  4000.                                    existing characters to the right of the
  4001.                                    cursor move to the left.
  4002.  
  4003.  LEFT                              Moves the cursor left one character.
  4004.  
  4005.  RIGHT                             Moves the cursor right one character.
  4006.  
  4007.  UP                                Moves to the previous command listed in
  4008.                                    memory and brings that command to the
  4009.                                    command line.
  4010.  
  4011.  DOWN                              Moves to the next command listed in
  4012.                                    memory and brings that command to the
  4013.                                    command line.
  4014.  
  4015.  BACKSPACE                         Moves the cursor back (left) one
  4016.                                    character and deletes that character.
  4017.                                    Existing characters to the right of the
  4018.                                    cursor move to the left.
  4019.  
  4020.  CTRL+LEFT                         Moves the cursor left to the first
  4021.                                    character of the previous word.
  4022.  
  4023.  CTRL+RIGHT                        Moves the cursor right to the first
  4024.                                    character of the next word.
  4025.  
  4026.  CTRL+END                          Deletes all characters from the current
  4027.                                    cursor position to the end of the
  4028.                                    command line.
  4029.  
  4030.  CTRL+HOME                         Deletes all characters from the
  4031.                                    beginning of the command line up to (but
  4032.                                    not including) the current cursor
  4033.                                    position.
  4034.  
  4035.  ENTER                             Sends the information on the command
  4036.                                    line to the command interpreter, adds it
  4037.                                    to the list of commands in memory, and
  4038.                                    turns off insert mode.
  4039.  
  4040.  Keys on remains in effect until you type keys off. MS OS/2 adds commands to
  4041.  the command-line buffer only while the keys command is active, but it
  4042.  retains the buffer in memory until you end the session. Typing keys off does
  4043.  not empty the buffer; if you type keys on again in the same session, MS OS/2
  4044.  adds any subsequent commands to the existing commands in the buffer.
  4045.  
  4046.  The command-line buffer cannot be larger than 64K, but it might be smaller
  4047.  if there is not enough memory to extend the list. When the buffer is full,
  4048.  MS OS/2 discards the oldest command to make room for the newest.
  4049.  
  4050.  Only commands you type at the keyboard are added to the command-line buffer.
  4051.  Commands in a batch file or commands that are part of redirected input are
  4052.  not added.
  4053.  
  4054.  If you type keys by itself, MS OS/2 displays the current setting.
  4055.  
  4056.  
  4057.  Label
  4058.  
  4059.    «OS2»
  4060.  
  4061.  label [drive:][label]
  4062.  
  4063.  Assigns a disk a new volume label.
  4064.  
  4065.  drive:                            Specifies the drive that contains the
  4066.                                    disk to which you want to give a new
  4067.                                    volume label.
  4068.  
  4069.  label                             Specifies the new volume label for the
  4070.                                    disk in the specified drive. The label
  4071.                                    can be up to 11 characters, including
  4072.                                    spaces. Do not use any of the following
  4073.                                    characters in a volume label: * ? / \e |
  4074.                                    . , ; : + = < > [ ] & ^ " If you do not
  4075.                                    specify a drive, MS OS/2 assigns label
  4076.                                    to the disk in the current drive.
  4077.  
  4078.  Programs use the volume label, which is simply a name for the disk, to
  4079.  identify the disk. The "dir" command displays the volume label in addition
  4080.  to information about a disk's contents.
  4081.  
  4082.  If you type label by itself, the utility displays the volume label of the
  4083.  disk in the current drive and prompts you to either type a new label or
  4084.  press ENTER to retain the current label.
  4085.  
  4086.    «DOS»
  4087.  
  4088.  Works the same in the DOS session as it does in an OS/2 session.
  4089.  
  4090.  Do not use the label utility on drives that you have assigned, joined, or
  4091.  substituted by using the "assign" , "join" , or "subst" utility. Example
  4092.  
  4093.  To give the volume label OLD STUFF to the disk in drive A, type the
  4094.  following:
  4095.  
  4096.  label a:old stuff
  4097.  
  4098.  
  4099.  Libpath (Library Path)
  4100.  
  4101.    «CONFIG»
  4102.  
  4103.  libpath=[drive:]path[;[drive:]path][...]
  4104.  
  4105.  Specifies the directories MS OS/2 is to search for dynamic-link libraries.
  4106.  To use this command, place it in your CONFIG.SYS file.
  4107.  
  4108.  drive:                            Specifies the drive where dynamic-link
  4109.                                    libraries are located. If you do not
  4110.                                    specify a drive, MS OS/2 searches the
  4111.                                    disk in the current drive.
  4112.  
  4113.  path                              Specifies the directory to search for
  4114.                                    dynamic-link libraries. You can specify
  4115.                                    more than one directory, separating the
  4116.                                    names with semicolons (;).
  4117.  
  4118.  The MS OS/2 installation program places the following line in your
  4119.  CONFIG.SYS file:
  4120.  
  4121.  libpath=c:\eos2\edll;c:\e
  4122.  
  4123.  MS OS/2 does not automatically search the current directory for dynamic-link
  4124.  libraries; you can specify the current directory by substituting a period
  4125.  (.) for the first drive:path argument. Example
  4126.  
  4127.  To instruct MS OS/2 to look for dynamic-link libraries in the current
  4128.  directory and in the directory DYNLIB on your hard disk (drive C), include
  4129.  the following line in your CONFIG.SYS file:
  4130.  
  4131.  libpath=.;c:\edynlib
  4132.  
  4133.  
  4134.  Log
  4135.  
  4136.    «CONFIG»
  4137.  
  4138.  log=on | off [/m:minfree] [/w:filesize] [/b:buffersize] [/f:filename]
  4139.  
  4140.  Turns system-event logging on or off. When logging is on, MS OS/2 records
  4141.  system events in the system log file. To use this command, place it in your
  4142.  CONFIG.SYS file.
  4143.  
  4144.  on                                Starts system-event logging.
  4145.  
  4146.  off                               Stops system-event logging. This is the
  4147.                                    default setting.
  4148.  
  4149.  /m:minfree                        Specifies the minimum amount of disk
  4150.                                    space, in kilobytes, to be left free
  4151.                                    (that is, not used for system-event
  4152.                                    logging) on your hard disk. The default
  4153.                                    value is 512.
  4154.  
  4155.  /w:filesize                       Instructs MS OS/2 to wrap entries to the
  4156.                                    log file, if necessary, in order to
  4157.                                    limit the size of the file to filesize
  4158.                                    kilobytes. If you specify /w and the log
  4159.                                    file is full, MS OS/2 adds new entries
  4160.                                    to the beginning of the file,
  4161.                                    overwriting the existing entries. If you
  4162.                                    do not specify /w, MS OS/2 adds all new
  4163.                                    entries to the end of the log file,
  4164.                                    increasing the size of the file as
  4165.                                    necessary. The default size of the log
  4166.                                    file is 64K.
  4167.  
  4168.  /b:buffersize                     Specifies the size, in kilobytes, of the
  4169.                                    buffer to be used for logging system
  4170.                                    events. The maximum size is 64K; the
  4171.                                    default value is 4.
  4172.  
  4173.  /f:filename                       Specifies the name of the log file. The
  4174.                                    filename must not include an extension;
  4175.                                    the logging facility automatically
  4176.                                    supplies the extension .DAT. The
  4177.                                    log-file name should have the form LOG
  4178.                                    xxxx.DAT, where xxxx stands for a
  4179.                                    four-digit number; the default filename
  4180.                                    is LOG0001.DAT.
  4181.  
  4182.  
  4183.  
  4184.  Maxwait (Maximum Wait)
  4185.  
  4186.    «CONFIG»
  4187.  
  4188.  maxwait=x
  4189.  
  4190.  Sets the maximum time a process must wait before MS OS/2 increases its
  4191.  priority. To use this command, place it in your CONFIG.SYS file.
  4192.  
  4193.  x                                 Specifies the number of seconds a
  4194.                                    process must wait before it is given a
  4195.                                    higher priority. This number must be in
  4196.                                    the range 1 through 255; the default
  4197.                                    value is 3.
  4198.  
  4199.  When an active process has waited x seconds without running, the MS OS/2
  4200.  scheduler increases the priority of the process for one execution cycle
  4201.  (time slice). For more information about time slices, see the "timeslice"
  4202.  command.
  4203.  
  4204.  The maxwait command has no effect if the "priority" command is set to
  4205.  absolute. Example
  4206.  
  4207.  To instruct MS OS/2 to give priority to processes after they have waited 2
  4208.  seconds, include the following line in your CONFIG.SYS file:
  4209.  
  4210.  maxwait=2
  4211.  
  4212.  
  4213.  Memman (Memory Management)
  4214.  
  4215.    «CONFIG»
  4216.  
  4217.  memman=[swap|noswap][,][move|nomove][,][swapdos|noswapdos]
  4218.  
  4219.  Specifies whether MS OS/2 can swap memory segments between memory and disk
  4220.  and whether it can temporarily move segments. To use this command, place it
  4221.  in your CONFIG.SYS file.
  4222.  
  4223.  swap                              Allows swapping of segments.
  4224.  
  4225.  noswap                            Prevents swapping of segments.
  4226.  
  4227.  move                              Allows moving of segments.
  4228.  
  4229.  nomove                            Prevents moving of segments.
  4230.  
  4231.  swapdos                           Allows swapping of memory segments from
  4232.                                    the DOS session. If you specify swapdos,
  4233.                                    MS OS/2 automatically sets the swap and
  4234.                                    move options.
  4235.  
  4236.  noswapdos                         Prevents swapping of memory segments
  4237.                                    from the DOS session.
  4238.  
  4239.  You can use a space instead of a comma to separate the arguments of a memman
  4240.  command.
  4241.  
  4242.  The MS OS/2 installation program places a memman command in your CONFIG.SYS
  4243.  file. If you start MS OS/2 from a hard disk, the default setting is
  4244.  memman=swap,move,noswapdos; if you start from a floppy disk, the default
  4245.  setting is memman=noswap,move,noswapdos. If you have disabled the DOS
  4246.  session by specifying protectonly=yes in your CONFIG.SYS file, the
  4247.  installation program does not place the noswapdos argument in your
  4248.  CONFIG.SYS file.
  4249.  
  4250.  If you allow MS OS/2 to swap, then it can move segments too, but the reverse
  4251.  is not automatically true.
  4252.  
  4253.  MS OS/2 may not swap the DOS session if you use the mode utility to
  4254.  configure a serial port or if you switch to another session while a DOS
  4255.  program is reading from or writing to a file.
  4256.  
  4257.  For more information about swapping and moving memory segments, see the
  4258.  Microsoft Operating System/2 User's Guide. Example
  4259.  
  4260.  To prevent MS OS/2 from swapping or moving data segments while you are
  4261.  running a time-dependent application, include the following line in your
  4262.  CONFIG.SYS file:
  4263.  
  4264.  memman=noswap,nomove
  4265.  
  4266.  To allow swapping of memory segments from the DOS session and swapping and
  4267.  moving of other memory segments, include the following line in your
  4268.  CONFIG.SYS file:
  4269.  
  4270.  memman=swapdos
  4271.  
  4272.  
  4273.  Mkdir (Make Directory)
  4274.  
  4275.    «OS2»
  4276.  
  4277.  mkdir [drive:][path]directoryname [[drive:][path]directoryname [...]]
  4278.  
  4279.  Creates a directory. You can abbreviate mkdir as md.
  4280.  
  4281.  directoryname                     Specifies the name of the new directory.
  4282.                                    Unless you specify a different drive
  4283.                                    and/or path, MS OS/2 creates the new
  4284.                                    directory as a subdirectory of the
  4285.                                    current directory.
  4286.  
  4287.  You can create more than one directory at a time by specifying multiple
  4288.  directory names. MS OS/2 creates each directory for which you do not
  4289.  specifically indicate a drive and path as a subdirectory of the current
  4290.  directory.
  4291.  
  4292.    «DOS»
  4293.  
  4294.  Works the same way in the DOS session as it does in an OS/2 session, except
  4295.  that in the DOS session you cannot specify multiple directory names.
  4296.  
  4297.  Example
  4298.  
  4299.  To create the directory CLIENT, and the subdirectory PETE under it, on drive
  4300.  A, type the following:
  4301.  
  4302.  mkdir a:\eclient a:\eclient\epete
  4303.  
  4304.  
  4305.  Mode
  4306.  
  4307.  Sets operating parameters for communication and output devices that you may
  4308.  connect to or add to your computer. These devices include parallel and
  4309.  serial printers, modems, and screens. The mode utility enables you to change
  4310.  settings by using a command line instead of physically setting switches in
  4311.  your computer.
  4312.  
  4313.  The mode utility has several discrete purposes. The following sections
  4314.  explain the different ways in which you can use the utility.
  4315.  
  4316.  
  4317.  Mode: Configuring a Parallel Printer
  4318.  
  4319.    «OS2»
  4320.  
  4321.  mode LPTn[:] [chars][,[lines][,p]]
  4322.  
  4323.  Controls the line and character spacing of the output on a parallel printer.
  4324.  
  4325.  
  4326.  n                                 Specifies the number of the parallel
  4327.                                    port the printer is connected to (1, 2,
  4328.                                    etc.). (You can use PRN in place of
  4329.                                    LPT1; they are equivalent.) The colon is
  4330.                                    optional. This information is required.
  4331.  
  4332.  chars                             Specifies the number of characters per
  4333.                                    line. This number can be either 80 or
  4334.                                    132; the default value is 80. If you
  4335.                                    enter nothing for this parameter, the
  4336.                                    mode utility does not change the current
  4337.                                    number of characters per line.
  4338.  
  4339.  lines                             Specifies vertical spacing, the number
  4340.                                    of lines per inch. This number can be
  4341.                                    either 6 or 8; the default value is 6.
  4342.                                    If you enter nothing for this parameter,
  4343.                                    the mode utility does not change the
  4344.                                    current vertical spacing. You must type
  4345.                                    the comma before lines, even if you did
  4346.                                    not specify a new value for chars. If
  4347.                                    you do not specify a value for chars, do
  4348.                                    not include a space after LPTn[:].
  4349.  
  4350.  p                                 Turns on "infinite retry," which causes
  4351.                                    MS OS/2 to keep trying to send output to
  4352.                                    the printer if a time-out error occurs.
  4353.                                    With this option, part of the mode
  4354.                                    utility remains resident in memory. You
  4355.                                    must type both commas before p, even if
  4356.                                    you did not specify new values for chars
  4357.                                    and lines. If you do not specify this
  4358.                                    option, infinite retry is turned off. If
  4359.                                    you do not specify a value for chars, do
  4360.                                    not include a space after LPTn[:].
  4361.  
  4362.  If your system gets stuck in a time-out loop, where it keeps trying to send
  4363.  output to the printer but cannot succeed, you can exit from the loop by
  4364.  pressing CTRL+C.
  4365.  
  4366.  The mode utility will affect your printer only if the spooler has been
  4367.  turned off in Print Manager.
  4368.  
  4369.    «DOS»
  4370.  
  4371.  Works the same way in the DOS session as it does in an OS/2 session.
  4372.  
  4373.  Example
  4374.  
  4375.  To configure the printer connected to your computer's second
  4376.  parallel-printer port (LPT2) to print at 80 characters per line and 8 lines
  4377.  per inch, type the following:
  4378.  
  4379.  mode lpt2 80,8
  4380.  
  4381.  
  4382.  Mode: Configuring a Serial Port
  4383.  
  4384.    «OS2»
  4385.  
  4386.  mode COMm[:] [baud[,parity][,databits][,stopbits]]
  4387.  [,to=state][,xon=state][,idsr=state][,odsr=state] [,octs=state][,dtr=state]
  4388.  [,rts=state][,buffer=state]
  4389.  
  4390.  Sets the parameters for communication with a serial printer or other device
  4391.  that uses a serial port. This is the port you use for asynchronous
  4392.  communication.
  4393.  
  4394.  m                                 Specifies the number of the serial port
  4395.                                    you want to use (1, 2, etc.). The colon
  4396.                                    is optional. This information is
  4397.                                    required.
  4398.  
  4399.  If you omit any of the following four arguments, the mode utility uses the
  4400.  most recent settings. (The first time you use the utility, mode uses the
  4401.  default settings; thereafter, it uses the most recent settings.) The mode
  4402.  utility recognizes these arguments by their positions, so if you leave out
  4403.  an argument, you must still type the comma that precedes the next one.
  4404.  
  4405.  baud                              Specifies the first two digits of the
  4406.                                    transmission rate in bits per second:
  4407.                                    110, 150, 300, 600, 1200, 1800, 2400,
  4408.                                    3600, 4800, 7200, 9600, or 19200. This
  4409.                                    argument is required, unless you are
  4410.                                    merely checking the current settings.
  4411.  
  4412.  parity                            Specifies how the system uses the parity
  4413.                                    bit to check for errors in transmission.
  4414.                                    The possible values are N (no parity), O
  4415.                                    (odd parity), E (even parity), M (mark;
  4416.                                    parity bit always 1), and S ; parity bit
  4417.                                    always zero); the default value is E.
  4418.  
  4419.  databits                          Specifies the number of data bits in a
  4420.                                    character. This number can be 5, 6, 7,
  4421.                                    or 8; the default value is 7.
  4422.  
  4423.  stopbits                          Specifies the number of stop bits that
  4424.                                    define the end of a character. This
  4425.                                    number can be 1, 1.5, or 2. If the baud
  4426.                                    rate is 110, the default value for
  4427.                                    stopbits is 2; otherwise, the default
  4428.                                    value is 1. If you specify 1.5 for
  4429.                                    stopbits, you must specify 5 for
  4430.                                    databits.
  4431.  
  4432.  You can list the following options in any order after the stopbits argument,
  4433.  separating them with commas. The default settings listed for these options
  4434.  apply only when you first start your computer; thereafter, the default
  4435.  setting for an option is its previous setting.
  4436.  
  4437.  to=on|off                         Specifies whether infinite time-out
  4438.                                    processing is enabled (on) or disabled (
  4439.                                    off). The default setting is off.
  4440.  
  4441.  xon=on|off                        Specifies whether the XON/XOFF protocol
  4442.                                    for data-flow control is enabled (on) or
  4443.                                    disabled (off). The default setting is
  4444.                                    off.
  4445.  
  4446.  idsr=on|off                       Specifies whether input handshaking that
  4447.                                    uses the DSR (Data Set Ready) circuit is
  4448.                                    enabled (on) or disabled (off). The
  4449.                                    default setting is on.
  4450.  
  4451.  odsr=on|off                       Specifies whether output handshaking
  4452.                                    that uses the DSR (Data Set Ready)
  4453.                                    circuit is enabled (on) or disabled (off
  4454.                                    ). The default setting is on.
  4455.  
  4456.  octs=on|off                       Specifies whether output handshaking
  4457.                                    that uses the CTS (Clear to Send)
  4458.                                    circuit is enabled (on) or disabled (off
  4459.                                    ). The default setting is on.
  4460.  
  4461.  dtr=on|off|hs                     Specifies whether the DTR (Data Terminal
  4462.                                    Ready) circuit is enabled (on) or
  4463.                                    disabled (off), or whether DTR
  4464.                                    handshaking is enabled (hs). The default
  4465.                                    setting is on.
  4466.  
  4467.  rts=on|off|hs|tog                 Specifies whether the RTS (Request to
  4468.                                    Send) circuit is enabled (on) or
  4469.                                    disabled (off), whether RTS handshaking
  4470.                                    is enabled (hs), or whether RTS toggling
  4471.                                    is enabled (tog). The default setting is
  4472.                                    on.
  4473.  
  4474.  The following option applies only to communications hardware or drivers
  4475.  capable of extended hardware buffering.
  4476.  
  4477.  buffer=on|off|auto                Specifies whether extended hardware
  4478.                                    buffering is enabled (on), disabled (off
  4479.                                    ), or controlled automatically by the
  4480.                                    device driver (auto). The default
  4481.                                    setting is auto for device drivers that
  4482.                                    support extended hardware buffering; the
  4483.                                    default setting is off for device
  4484.                                    drivers that do not. (If a serial port
  4485.                                    does not support extended hardware
  4486.                                    buffering, the mode utility does not
  4487.                                    display or change the setting for this
  4488.                                    option.) On a system where both the
  4489.                                    hardware and the device drivers do
  4490.                                    support extended hardware buffering,
  4491.                                    buffer=off can seriously slow down
  4492.                                    system performance; buffer=on gives you
  4493.                                    the best possible performance on such a
  4494.                                    system, but this setting may not be
  4495.                                    compatible with some devices that have
  4496.                                    particularly strict requirements for the
  4497.                                    timing of events. Unless you are certain
  4498.                                    that your hardware supports extended
  4499.                                    hardware buffering and that you are
  4500.                                    using device drivers that also support
  4501.                                    it, do not change this option.
  4502.  
  4503.  If you type mode COMm by itself, the utility displays the current settings
  4504.  for the specified serial port.
  4505.  
  4506.    «DOS»
  4507.  
  4508.  Works the same way in the DOS session as it does in an OS/2 session, except
  4509.  that you cannot use mode COMm by itself; you cannot use the to=state,
  4510.  xon=state, idsr=state, odsr=state, octs=state, dtr=state, rts=state, or
  4511.  buffer=state options; and there is an additional option, p.
  4512.  
  4513.  p                                 Specifies a time-out value of about
  4514.                                    thirty seconds for DOS programs that
  4515.                                    directly control the hardware. You must
  4516.                                    use the "setcom40"utility to tell the
  4517.                                    program the address of the serial port
  4518.                                    before you use the port. The p option
  4519.                                    must always be last on the command line.
  4520.  
  4521.  Some programs require the additional information that you can specify with
  4522.  the MS OS/2 version of the mode utility. If you are going to use one of
  4523.  those programs, you must configure your serial port from the OS/2 command
  4524.  prompt. Example
  4525.  
  4526.  To set the baud rate to 300, set the parity to odd, leave the number of data
  4527.  bits set to 7, and set the number of stop bits to 2, for your computer's
  4528.  first serial port, type the following:
  4529.  
  4530.  mode com1: 300,o,,2
  4531.  
  4532.  
  4533.  Mode: Setting Up the Screen
  4534.  
  4535.    «OS2»
  4536.  
  4537.  mode display[,rows]
  4538.  
  4539.  Sets the way text is displayed on your screen, including the number of
  4540.  characters per line, the number of lines per screen, and whether the text is
  4541.  in color.
  4542.  
  4543.  display                           Specifies the kind of display adapter
  4544.                                    you are using: 40, 80, BW40, BW80, CO40,
  4545.                                    CO80, or MONO. For each of these options,
  4546.                                    40 and 80 indicate the number of
  4547.                                    characters per line. BW means that color
  4548.                                    has been disabled even though you have a
  4549.                                    color graphics adapter; CO means that
  4550.                                    color has been enabled. MONO specifies a
  4551.                                    monochrome display adapter, which always
  4552.                                    has 80 characters per line.
  4553.  
  4554.  rows                              Specifies the number of rows (lines) on
  4555.                                    the screen: 25, 43, 50, or 60. Which of
  4556.                                    these are valid depends on the kind of
  4557.                                    display adapter you have. The default
  4558.                                    setting when you first start your
  4559.                                    computer is 25; thereafter, the previous
  4560.                                    setting is the default setting.
  4561.  
  4562.  When you use the mode utility to change the way text is displayed on the
  4563.  screen, it affects only the current session.
  4564.  
  4565.    «DOS»
  4566.  
  4567.  Works the same way in the DOS session as it does in an OS/2 session.
  4568.  
  4569.  Example
  4570.  
  4571.  To set a screen adapter so that it uses color, 80 characters per line, and
  4572.  43 lines per screen (assuming the display adapter can handle such settings),
  4573.  type the following:
  4574.  
  4575.  mode co80,43
  4576.  
  4577.  
  4578.  Mode: Setting Floppy-Disk Verify Capability
  4579.  
  4580.    «OS2»
  4581.  
  4582.  mode dskt [ver=on|off]
  4583.  
  4584.  Specifies whether MS OS/2 should verify that data is correctly written to a
  4585.  floppy disk. The default setting is ver=off.
  4586.  
  4587.  If you type mode dskt by itself, the utility displays the current setting.
  4588.  
  4589.  This command affects all sessions.
  4590.  
  4591.    «DOS»
  4592.  
  4593.  Works the same way in the DOS session it does in an OS/2 session.
  4594.  
  4595.  
  4596.  More
  4597.  
  4598.    «OS2»
  4599.  
  4600.  more < source
  4601.  
  4602.  Reads from standard input and displays what it reads, one screenful at a
  4603.  time.
  4604.  
  4605.  source                            Specifies the source of the input. You
  4606.                                    can redirect input from a file or from
  4607.                                    an MS OS/2 command or utility. For more
  4608.                                    information about redirection, see the
  4609.                                    Microsoft Operating System/2 User's
  4610.                                    Guide.
  4611.  
  4612.  You can use more to view the contents of a long file or the results of a
  4613.  command screenful by screenful. After each screenful, more displays the
  4614.  following at the bottom of your screen:
  4615.  
  4616.  --More-
  4617.  
  4618.  You can press any key to display the next screenful.
  4619.  
  4620.    «DOS»
  4621.  
  4622.  Works the same way in the DOS session as it does in an OS/2 session.
  4623.  
  4624.  Examples
  4625.  
  4626.  To view the contents of the file IDEAS.OLD one screenful at a time, type the
  4627.  following:
  4628.  
  4629.  more < ideas.old
  4630.  
  4631.  To sort the file IDEAS.OLD alphabetically and view the output one screenful
  4632.  at a time, type the following:
  4633.  
  4634.  sort < ideas.old | more
  4635.  
  4636.  If you use this example in the DOS session, the pipe creates temporary files
  4637.  in which to store information. For this reason, you cannot use the DOS pipe
  4638.  feature if the current disk or directory is full or the disk is
  4639.  write-protected.
  4640.  
  4641.  
  4642.  MOUSE.SYS
  4643.  
  4644.    «CONFIG»
  4645.  
  4646.  device=[drive:][path]mouse.sys type=typename [mode=mode] [qsize=size]
  4647.  
  4648.  Directs MS OS/2 to load the MOUSE.SYS device driver. To use this command,
  4649.  place it in your CONFIG.SYS file.
  4650.  
  4651.  The MOUSE.SYS device driver is a device-independent mouse driver common to
  4652.  all mice used with any computer running MS OS/2. You must have this driver
  4653.  installed on your system in order to use a pointing device with MS OS/2. You
  4654.  must also have a device-dependent mouse driver (MSxxxx0x.SYS) and the
  4655.  pointer driver ( "POINTDD.SYS" ) installed.
  4656.  
  4657.  type=typename                     Identifies the kind of mouse you are
  4658.                                    using. This value must be a string of
  4659.                                    characters that ends with a dollar sign
  4660.                                    ($). For the correct name for your mouse,
  4661.                                    see your mouse manual.
  4662.  
  4663.  mode=mode                         Specifies whether you'll be using the
  4664.                                    mouse in an OS/2 session, the DOS
  4665.                                    session, or both. Acceptable values for
  4666.                                    mode are p (protected mode, OS/2
  4667.                                    session), r (real mode, DOS session),
  4668.                                    and b (both); the default value is b.
  4669.  
  4670.  qsize=size                        Specifies the size, in bytes, of the
  4671.                                    queue buffer to be allocated for each MS
  4672.                                    OS/2 session. This number must be in the
  4673.                                    range 1 through 100; the default value
  4674.                                    is 10.
  4675.  
  4676.  Example
  4677.  
  4678.  To direct MS OS/2 to load the pointer and mouse device drivers so that you
  4679.  can use the InPort model of the Microsoft Mouse on an IBM PC/AT or
  4680.  compatible computer, add the following lines to your CONFIG.SYS file:
  4681.  
  4682.  device=c:\os2\pointdd.sys
  4683.  device=c:\os2\msinp01.sys
  4684.  device=c:\os2\mouse.sys type=msinp$
  4685.  
  4686.  You must specify the mouse-dependent device driver ( "MSxxxx0x.SYS" ) before
  4687.  the mouse-independent device driver (MOUSE.SYS). If you are using a serial
  4688.  mouse, the "device" =mouse-drivers commands must precede any
  4689.  device=com0x.sys commands in your CONFIG.SYS file.
  4690.  
  4691.  
  4692.  Move
  4693.  
  4694.    «OS2»
  4695.  
  4696.  move [drive:][path1]source [path2][destination]
  4697.  
  4698.  Moves a file or directory from one directory to another on the same drive.
  4699.  
  4700.  source                            Specifies the file or directory to be
  4701.                                    moved. You can use wildcard characters
  4702.                                    to specify a group of files, but you can
  4703.                                    move only one directory at a time. If
  4704.                                    you do not specify a drive or directory
  4705.                                    for source, MS OS/2 searches for it in
  4706.                                    the current directory on the current
  4707.                                    drive.
  4708.  
  4709.  destination                       Specifies where the file or directory is
  4710.                                    to be moved. If you are moving a file,
  4711.                                    the destination can be either a file or
  4712.                                    a directory. The destination must always
  4713.                                    be on the same drive as the source.
  4714.  
  4715.  You can change the name of a file or directory as you move it, by specifying
  4716.  a new name in destination. If you are moving multiple files and you want to
  4717.  change their names, you must specify multiple destination-file names by
  4718.  using the same wildcard characters you used in the source-file names.
  4719.  
  4720.  ────────────────────────────────────────────────────────────────────────────
  4721.  Note
  4722.  
  4723.  In the high-performance file system (HPFS), you can use the move command to
  4724.  change the case of a filename or directory name by moving the file or
  4725.  directory to itself. For example, you can change the filename
  4726.  "mytaxfile.txt" to "MYTAXFILE.TXT" by using the uppercase version of the
  4727.  name as the destination argument. (The quotation marks around the filenames
  4728.  are required when you are using HPFS. For more information about HPFS, see
  4729.  the Microsoft Operating System/2 User's Guide.)
  4730.  ────────────────────────────────────────────────────────────────────────────
  4731.  
  4732.  When you use the move command to relocate a file or directory, MS OS/2 will
  4733.  not write over an existing file or directory that has the same name. If you
  4734.  specify an existing filename as the destination, MS OS/2 displays an error
  4735.  message and does not carry out the command. If you specify an existing
  4736.  directory name as the destination, MS OS/2 moves the source file or
  4737.  directory into that directory; if the source was a directory, it becomes a
  4738.  subdirectory of the destination directory.
  4739.  
  4740.  Moving a file or directory does not change its date or time. Examples
  4741.  
  4742.  To move all the files with the extension .DOC from the current directory to
  4743.  the directory \REPORTS\OLD on the current drive and change their extensions
  4744.  to .OLD, type the following:
  4745.  
  4746.  move *.doc \reports\old\*.old
  4747.  
  4748.  To move the directory LETTERS from the current directory and make it a
  4749.  subdirectory of the directory \BUSINESS\SEPT89 on the current drive, type
  4750.  the following:
  4751.  
  4752.  move letters \business\sept89
  4753.  
  4754.  
  4755.  MSxxxx0x.SYS
  4756.  
  4757.    «CONFIG»
  4758.  
  4759.  device=[drive:][path]msxxxx0x.sys [serial=device] [model=style]
  4760.  
  4761.  Directs MS OS/2 to load a device-dependent mouse driver. To use this
  4762.  command, place it in your CONFIG.SYS file.
  4763.  
  4764.  The MSxxxx0x.SYS device driver is a device-dependent mouse driver specific
  4765.  to the mouse you are using and the system on which you are running MS OS/2.
  4766.  You must have a device-dependent mouse driver installed on your system in
  4767.  order to use a pointing device with MS OS/2. You must also have the
  4768.  device-independent mouse driver ( "MOUSE.SYS" ) and the pointer driver (
  4769.  "POINTDD.SYS" ) installed.
  4770.  
  4771.  serial=device                     Specifies the communications port to
  4772.                                    which the mouse is connected. Acceptable
  4773.                                    values are COM1 and COM2 for IBM PC/AT
  4774.                                    and compatible computers, and COM1
  4775.                                    through COM8 for IBM PS/2 and compatible
  4776.                                    computers. The default value is COM1 for
  4777.                                    a serial mouse. This option is not used
  4778.                                    with a parallel mouse.
  4779.  
  4780.  model=style                       Specifies the model of Microsoft Mouse
  4781.                                    you are using. Acceptable values are 099
  4782.                                    (mouse with green buttons) and 199
  4783.                                    (mouse with gray buttons or serial mouse
  4784.                                    with white buttons). If you have a
  4785.                                    serial mouse, you must specify the model.
  4786.  
  4787.  A device-dependent mouse driver can have any name of the form xxxxxx0x.SYS;
  4788.  MSxxxx0x.SYS is the form for Microsoft mice.
  4789.  
  4790.  To set up a mouse device driver, you must choose the driver that matches
  4791.  your mouse hardware and your computer. For information on the mouse driver
  4792.  for your mouse, see your mouse manual. The following list shows examples of
  4793.  mouse drivers that are available with MS OS/2:
  4794.  
  4795.  Driver                            Type name   Mouse
  4796.  ────────────────────────────────────────────────────────────────────────────
  4797.  
  4798.  MSSER01.SYS                       MSSER$      Serial Microsoft Mouse for
  4799.                                                IBM PC/AT and compatible
  4800.                                                computers
  4801.  
  4802.  MSBUS01.SYS                       MSBUS$      Bus (parallel) Microsoft
  4803.                                                Mouse for IBM PC/AT and
  4804.                                                compatible computers
  4805.  
  4806.  MSINP01.SYS                       MSINP$      InPort (parallel) Microsoft
  4807.                                                Mouse for IBM PC/AT and
  4808.                                                compatible computers
  4809.  
  4810.  MSPS201.SYS                       MSPS2$      Microsoft Mouse configured
  4811.                                                for IBM PC/AT and compatible
  4812.                                                computers
  4813.  
  4814.  MSSER02.SYS                       MSSER$      Serial Microsoft Mouse for
  4815.                                                IBM PS/2 computers, Models
  4816.                                                50, 60, 70, and 80, and
  4817.                                                compatible computers
  4818.  
  4819.  MSBUS02.SYS                       MSBUS$      Bus (parallel) Microsoft
  4820.                                                Mouse for IBM PS/2 computers,
  4821.                                                Models 50, 60, 70, and 80,
  4822.                                                and compatible computers
  4823.  
  4824.  MSINP02.SYS                       MSINP$      InPort (parallel) Microsoft
  4825.                                                Mouse for IBM PS/2 computers,
  4826.                                                Models 50, 60, 70, and 80,
  4827.                                                and compatible computers
  4828.  
  4829.  MSPS202.SYS                       MSPS2$      Microsoft Mouse configured
  4830.                                                for IBM PS/2 computers,
  4831.                                                Models 50, 60, 70, and 80,
  4832.                                                and compatible computers
  4833.  
  4834.  Example
  4835.  
  4836.  To direct MS OS/2 to load the pointer and mouse device drivers so that you
  4837.  can use the InPort model of the Microsoft Mouse on an IBM PC/AT or
  4838.  compatible computer, add the following lines to your CONFIG.SYS file:
  4839.  
  4840.  device=c:\os2\pointdd.sys
  4841.  device=c:\os2\msinp01.sys
  4842.  device=c:\os2\mouse.sys type=msinp$
  4843.  
  4844.  You must specify the mouse-dependent device driver (MSxxxx0x.SYS) before the
  4845.  mouse-independent device driver ( "MOUSE.SYS" ). If you are using a serial
  4846.  mouse, the "device" =mouse-drivers commands must precede any
  4847.  device=com0x.sys commands in your CONFIG.SYS file.
  4848.  
  4849.  
  4850.  Patch
  4851.  
  4852.    «OS2»
  4853.  
  4854.  patch [drive:][path]filename [/a]
  4855.  
  4856.  Inserts a section of program code into an existing MS OS/2 program or
  4857.  application to change the way the program runs. Any file that can be written
  4858.  to can be patched.
  4859.  
  4860.  filename                          Specifies the file to patch.
  4861.  
  4862.  /a                                Specifies the automatic operation mode.
  4863.                                    With the /a option, filename must be a
  4864.                                    file containing instructions for
  4865.                                    patching one or more files automatically.
  4866.  
  4867.  The patch utility has two modes of operation: automatic and interactive.
  4868.  Interactive mode is the default mode. In this mode, you supply the path of
  4869.  the file you want to patch on the patch command line. Patch then prompts you
  4870.  for the offset at which a patch is to be made and for the patch contents.
  4871.  (Patch can change bytes at any position in a file or add bytes to the end of
  4872.  a file.) You must type both the offset and the patch contents in hexadecimal
  4873.  notation.
  4874.  
  4875.  After you supply the hexadecimal offset, the patch utility displays the 16
  4876.  bytes at that offset. You can then change any or all of the 16 bytes. If you
  4877.  decide not to make any changes, you can press the ESC key.
  4878.  
  4879.  The cursor is initially positioned on the first byte. To change this byte,
  4880.  type one or two hexadecimal digits. To leave the byte unchanged and move to
  4881.  the next byte, press the SPACEBAR. Press BACKSPACE to move the cursor back
  4882.  if you make a mistake. If you move the cursor past the last byte displayed,
  4883.  the patch utility displays the next 16 bytes. This cycle continues until you
  4884.  press ENTER.
  4885.  
  4886.  When you press ENTER, the patch utility saves the patch information and asks
  4887.  if you want to make any more patches. If you respond with "Y", patch again
  4888.  prompts you for an offset. After you have entered all the patches you want
  4889.  to make and responded with "N" at the "more patches" prompt, patch displays
  4890.  the patches on the screen and asks if they should be applied. If you respond
  4891.  with "Y", patch writes all the saved patch requests to disk in the same
  4892.  order in which you entered them.
  4893.  
  4894.    «DOS»
  4895.  
  4896.  Works the same way in the DOS session as it does in an OS/2 session.
  4897.  
  4898.  ────────────────────────────────────────────────────────────────────────────
  4899.  Warning
  4900.  
  4901.  You should use the patch utility only if you understand the need for a
  4902.  patch, how to make the patch, and the effect the patch will have on program
  4903.  operation. Before you use the patch utility, be sure to make backup copies
  4904.  of the files to which the patches will be applied.
  4905.  ────────────────────────────────────────────────────────────────────────────
  4906.  
  4907.  
  4908.  Path
  4909.  
  4910.    «OS2»
  4911.  
  4912.  path [;|[drive:]path[;...]]
  4913.  
  4914.  Specifies where MS OS/2 is to search for a command file or application if
  4915.  the program is not in the current directory.
  4916.  
  4917.  ;                                 When used alone (path ;), clears all
  4918.                                    search-path settings. Semicolons are
  4919.                                    also used to separate multiple paths.
  4920.  
  4921.  path                              Specifies the path of the directory that
  4922.                                    MS OS/2 is to search for command files.
  4923.                                    If you do not specify a drive, MS OS/2
  4924.                                    uses the current drive.
  4925.  
  4926.  If any name in one of the paths you set contains a semicolon (;), you must
  4927.  enclose each path you specify in double quotation marks (").
  4928.  
  4929.  If you type path by itself, MS OS/2 displays the current search path.
  4930.  
  4931.  The path command affects only the current session. To specify a path for all
  4932.  OS/2 sessions, you must set the PATH environment variable in your CONFIG.SYS
  4933.  file. For information about how to do this, see the "set" command. For the
  4934.  DOS session, set the PATH environment variable in your AUTOEXEC.BAT file.
  4935.  
  4936.    «DOS»
  4937.  
  4938.  Works the same way in the DOS session as it does in an OS/2 session.
  4939.  
  4940.  Example
  4941.  
  4942.  To instruct MS OS/2 to search for a command file in the directories BIN and
  4943.  WORD on drive C and the subdirectory WORD of the APPS directory on drive A,
  4944.  type the following:
  4945.  
  4946.  path c:\ebin;c:\eword;a:\eapps\eword
  4947.  
  4948.  
  4949.  Pause
  4950.  
  4951.    «OS2»
  4952.  
  4953.  pause [comment]
  4954.  
  4955.  Suspends processing of a batch file and displays a message that asks the
  4956.  user to press any key to continue. Use this command only in a batch file.
  4957.  
  4958.  comment                           Specifies the message you want to have
  4959.                                    appear before the line "Press any key
  4960.                                    when ready...". The message can be any
  4961.                                    combination of characters. The echo
  4962.                                    feature must be on for comment to appear
  4963.                                    on the screen.
  4964.  
  4965.  You can use this command to make a batch program pause any time the user has
  4966.  to do something, such as read a message or insert a disk, before continuing
  4967.  with the program.
  4968.  
  4969.    «DOS»
  4970.  
  4971.  Works the same way in a DOS batch file (.BAT extension) as it does in an
  4972.  OS/2 batch file (
  4973.  
  4974.  Example
  4975.  
  4976.  To have your batch program pause and prompt the user to insert a new disk in
  4977.  drive A before continuing, type the following at the appropriate point in
  4978.  the batch file:
  4979.  
  4980.  pause Please put a new disk into drive A.
  4981.  
  4982.  
  4983.  Pauseonerror
  4984.  
  4985.    «CONFIG»
  4986.  
  4987.  pauseonerror=yes|no
  4988.  
  4989.  Specifies whether MS OS/2 is to pause if it encounters an error while
  4990.  processing your CONFIG.SYS file during system start-up. To use this command,
  4991.  place it in your CONFIG.SYS file.
  4992.  
  4993.  If pauseonerror is set to yes (the default setting), then whenever MS OS/2
  4994.  encounters an error while processing your CONFIG.SYS file, it stops,
  4995.  displays an error message, and prompts you to press ENTER to continue the
  4996.  start-up process. If you have set pauseonerror to no, MS OS/2 displays an
  4997.  error message when it encounters an error, but it does not stop. Example
  4998.  
  4999.  To instruct MS OS/2 to process your CONFIG.SYS file without pausing when it
  5000.  encounters errors, include the following line in your CONFIG.SYS file:
  5001.  
  5002.  pauseonerror=no
  5003.  
  5004.  
  5005.  POINTDD.SYS
  5006.  
  5007.    «CONFIG»
  5008.  
  5009.  device=[drive:][path]pointdd.sys
  5010.  
  5011.  Directs MS OS/2 to load the POINTDD.SYS device driver. To use this command,
  5012.  place it in your CONFIG.SYS file.
  5013.  
  5014.  To use a mouse with MS OS/2, you must set up the POINTDD.SYS driver as well
  5015.  as the mouse drivers. The POINTDD.SYS driver provides information that MS
  5016.  OS/2 needs in order to draw the mouse pointer. Example
  5017.  
  5018.  To use the InPort model of the Microsoft Mouse on an IBM PC/AT or compatible
  5019.  computer, you must include the following lines in your CONFIG.SYS file:
  5020.  
  5021.  device=c:\os2\pointdd.sys
  5022.  device=c:\os2\msinp01.sys
  5023.  device=c:\os2\mouse.sys type=msinp$
  5024.  
  5025.  
  5026.  Print
  5027.  
  5028.    «OS2»
  5029.  
  5030.  print [/d:device] [/b] [drive:][path]filename [...]
  5031.  
  5032.  or
  5033.  
  5034.  print [/d:device] [/t\^|/c]
  5035.  
  5036.  Sends a file to a device to be printed.
  5037.  
  5038.  /d:device                         Specifies the printer to use. The
  5039.                                    default device is LPT1.
  5040.  
  5041.  /b                                Instructs MS OS/2 not to interpret
  5042.                                    CTRL+Z characters in the file as
  5043.                                    end-of-file characters.
  5044.  
  5045.  filename                          Specifies the file to print. If you
  5046.                                    specify more than one file, the files
  5047.                                    are printed in the order you type them
  5048.                                    on the command line.
  5049.  
  5050.  /t                                Stops all printing and removes all files
  5051.                                    from the print queue, if the spooler is
  5052.                                    active for the specified device.
  5053.  
  5054.  /c                                Stops printing the file being printed
  5055.                                    and removes it from the print queue, if
  5056.                                    the spooler is active for the specified
  5057.                                    device.
  5058.  
  5059.  
  5060.    «DOS»
  5061.  
  5062.  Works the same way in the DOS session as it does in an OS/2 session, except
  5063.  that you cannot use the /t and /c options.
  5064.  
  5065.  Example
  5066.  
  5067.  To print the file PENCIL.TST, which is in the current directory on the
  5068.  current drive, on the printer connected to your computer's third parallel
  5069.  port (LPT3), type the following:
  5070.  
  5071.  print /d:lpt3 pencil.tst
  5072.  
  5073.  
  5074.  Priority
  5075.  
  5076.    «CONFIG»
  5077.  
  5078.  priority=absolute|dynamic
  5079.  
  5080.  Specifies how a process receives enough priority over other processes to
  5081.  run. To use this command, place it in your CONFIG.SYS file.
  5082.  
  5083.  In MS OS/2, processes (threads) are divided into three categories according
  5084.  to their priority: general, time-critical, and low. The general-priority
  5085.  category is further divided into foreground, background, and interactive
  5086.  subcategories. Normally, MS OS/2 automatically adjusts the priority levels
  5087.  of general-priority processes as circumstances change (for example, when a
  5088.  foreground process becomes a background process).
  5089.  
  5090.  absolute                          .LI Prevents the system from dynamically
  5091.                                    changing the priority of processes in
  5092.                                    the general-priority category. The
  5093.                                    absolute setting allocates
  5094.                                    central-processing-unit (CPU) time
  5095.                                    according to the process's current
  5096.                                    priority.
  5097.  
  5098.  dynamic                           .LI Instructs MS OS/2 to try to
  5099.                                    determine which process needs CPU
  5100.                                    resources most in any given interval of
  5101.                                    time (time slice). The dynamic setting
  5102.                                    gives more CPU time to the process that
  5103.                                    is running in the foreground. This is
  5104.                                    the default setting. For more
  5105.                                    information about time slices, see the
  5106.                                    "timeslice"command.
  5107.  
  5108.  
  5109.  You should use the priority command only if an application requires you to
  5110.  do so.
  5111.  
  5112.  
  5113.  Prompt
  5114.  
  5115.    «OS2»
  5116.  
  5117.  prompt [string]
  5118.  
  5119.  Changes the prompt for the current MS OS/2 command interpreter. This change
  5120.  affects only the current session.
  5121.  
  5122.  string                            .LI Specifies the new prompt. You can
  5123.                                    specify any character string you want,
  5124.                                    or you can use any of the $x character
  5125.                                    combinations from the list that follows
  5126.                                    to customize your prompt. (You can
  5127.                                    combine text and these character
  5128.                                    combinations in any order.) Any spaces
  5129.                                    that you type appear as part of the
  5130.                                    prompt.
  5131.  
  5132.  The following character combinations are available for use in customizing
  5133.  your prompt:
  5134.  
  5135.  Combination                       Action
  5136.  ────────────────────────────────────────────────────────────────────────────
  5137.  
  5138.  $$                                Displays the dollar-sign character ($).
  5139.  
  5140.  $_                                Begins a new line on the screen.
  5141.  
  5142.  $a                                Displays an ampersand (&).
  5143.  
  5144.  $b                                Displays the pipe symbol (|).
  5145.  
  5146.  $c                                Displays a left parenthesis [(].
  5147.  
  5148.  $d                                Displays the current date.
  5149.  
  5150.  $e                                Specifies the beginning of an ANSI
  5151.                                    escape code.
  5152.  
  5153.  $f                                Displays a right parenthesis [)].
  5154.  
  5155.  $g                                Displays the greater-than sign (>).
  5156.  
  5157.  $h                                Represents the backspace character; this
  5158.                                    erases the previous character from the
  5159.                                    prompt.
  5160.  
  5161.  $i                                Displays the Help line.
  5162.  
  5163.  $l                                Displays the less-than sign (<).
  5164.  
  5165.  $n                                Displays the current drive letter.
  5166.  
  5167.  $p                                Displays the current drive letter and
  5168.                                    path.
  5169.  
  5170.  $q                                Displays the equal sign (=).
  5171.  
  5172.  $t                                Displays the current time.
  5173.  
  5174.  $v                                Displays the MS OS/2 version number.
  5175.  
  5176.  
  5177.  If you type prompt by itself, MS OS/2 resets the prompt to the system
  5178.  default prompt. In an OS/2 session, the system default prompt is the current
  5179.  drive letter and the name of the current directory, in brackets.
  5180.  
  5181.  The prompt command affects only the current session. To specify a prompt for
  5182.  all OS/2 sessions, you must set the PROMPT environment variable in your
  5183.  CONFIG.SYS file. For more information about how to do this, see the "set"
  5184.  command. For the DOS session, set the PROMPT environment variable in your
  5185.  AUTOEXEC.BAT file.
  5186.  
  5187.    «DOS»
  5188.  
  5189.  Works the same way in the DOS session as it does in an OS/2 session, except
  5190.  that you cannot use $a, $c, and $f and the system default prompt is the
  5191.  current drive letter, followed by a greater-than sign (>).
  5192.  
  5193.  Example
  5194.  
  5195.  To change your prompt so that it displays the time on one line and the
  5196.  current drive and directory on the next, followed by a space and a
  5197.  greater-than sign, type the following:
  5198.  
  5199.  prompt The time is $t$h$h$h$h$h$h$_$p $g
  5200.  
  5201.  The new prompt has the following form:
  5202.  
  5203.  The time is 13:37
  5204.  C:\OS2 >
  5205.  
  5206.  Notice that the $h characters erased the seconds and hundredths of seconds
  5207.  from the time display.
  5208.  
  5209.  
  5210.  Protectonly
  5211.  
  5212.    «CONFIG»
  5213.  
  5214.  protectonly=yes|no
  5215.  
  5216.  Specifies whether MS OS/2 is to enable the DOS session. To use this command,
  5217.  place it in your CONFIG.SYS file.
  5218.  
  5219.  The MS OS/2 installation program places the protectonly=no command in your
  5220.  CONFIG.SYS file so that you can run the DOS session. To set up your system
  5221.  to run the Presentation Manager and OS/2 sessions only, change this line to
  5222.  protectonly=yes.
  5223.  
  5224.  
  5225.  Protshell (Protected Shell)
  5226.  
  5227.    «CONFIG»
  5228.  
  5229.  protshell=[drive:][path]filename [arguments]
  5230.  
  5231.  Specifies the user interface MS OS/2 is to use and the command interpreter
  5232.  to use in an OS/2 session. To use this command, place it in your CONFIG.SYS
  5233.  file.
  5234.  
  5235.  filename                          Specifies the file that contains the
  5236.                                    user interface. If this file is not in
  5237.                                    the root directory of the start-up drive,
  5238.                                    you must include the drive and/or path.
  5239.  
  5240.  arguments                         Specifies the drive, path, and filename
  5241.                                    of the MS OS/2 initialization file and
  5242.                                    command interpreter. For more
  5243.                                    information about these arguments, see
  5244.                                    the Microsoft Operating System/2 User's
  5245.                                    Guide.
  5246.  
  5247.  The MS OS/2 installation program places the following line in your
  5248.  CONFIG.SYS file:
  5249.  
  5250.  protshell=c:\eos2\epmshell.exe c:\eos2\eos2.ini c:\eos2\ecmd.exe
  5251.  
  5252.  This command instructs MS OS/2 to use the Presentation Manager user
  5253.  interface and to use the "cmd" command interpreter in OS/2 sessions.
  5254.  
  5255.  The protshell command has no effect on the DOS session.
  5256.  
  5257.  
  5258.  Pstat (Process Status)
  5259.  
  5260.    «OS2»
  5261.  
  5262.  pstat [/c|/s|/l|/m|/p:pid]
  5263.  
  5264.  Displays information about the status of one or more processes in the
  5265.  system.
  5266.  
  5267.  /c                                Displays information about each of the
  5268.                                    current processes and threads.
  5269.  
  5270.  /s                                Displays system-semaphore information
  5271.                                    for each thread in the system.
  5272.  
  5273.  /l                                Displays the names of the run-time
  5274.                                    linked libraries for each process in the
  5275.                                    system.
  5276.  
  5277.  /m                                Displays the named-shared memory
  5278.                                    information for each process in the
  5279.                                    system.
  5280.  
  5281.  /p:pid                            Displays information about a particular
  5282.                                    process, identified by its process
  5283.                                    identification number (pid).
  5284.  
  5285.  If you type pstat by itself, the utility displays all the information for
  5286.  all the options.
  5287.  
  5288.  
  5289.  Recover
  5290.  
  5291.    «OS2»
  5292.  
  5293.  recover [drive:]|[drive:][path] filename
  5294.  
  5295.  Reconstructs all the files from a disk that has a damaged directory
  5296.  structure or reconstructs a single file from a disk that has bad sectors.
  5297.  
  5298.  drive:                            .LI Specifies the drive containing the
  5299.                                    disk with the files you want to try to
  5300.                                    reconstruct. If you specify only a drive,
  5301.                                    the recover utility tries to reconstruct
  5302.                                    the entire contents of the disk in that
  5303.                                    drive, giving the reconstructed files
  5304.                                    names of the form FILEnnnn.REC, where
  5305.                                    nnnn is a four-digit number. In this
  5306.                                    case, the files being reconstructed lose
  5307.                                    their extended attributes. The recover
  5308.                                    utility reconstructs the extended
  5309.                                    attributes, if possible, and stores them
  5310.                                    in a separate FILEnnnn.REC file.
  5311.  
  5312.  filename                          .LI Specifies the file you want to try
  5313.                                    to reconstruct. If you do not specify a
  5314.                                    drive or path, the recover utility uses
  5315.                                    the current directory on the current
  5316.                                    drive. You cannot use wildcard
  5317.                                    characters in filename. If the file has
  5318.                                    extended attributes, recover tries to
  5319.                                    reconstruct all of them along with the
  5320.                                    file, but if it cannot do so, it puts
  5321.                                    whatever extended attributes it can
  5322.                                    reconstruct into a file named EA0001.REC.
  5323.  
  5324.  MS OS/2 recovers a file by reading it, sector by sector, skipping the bad
  5325.  sectors.
  5326.  
  5327.  All files created by the recover utility are stored in the root directory of
  5328.  the specified drive.
  5329.  
  5330.  When you use the recover utility on a disk or partition that is formatted
  5331.  for HPFS, you can reconstruct only one file at a time. The utility
  5332.  reconstructs the file with its original filename and location, if possible.
  5333.  
  5334.  If you type recover by itself (in the FAT file system), the utility tries to
  5335.  reconstruct all the files in the current directory on the current drive.
  5336.  
  5337.  ────────────────────────────────────────────────────────────────────────────
  5338.  Warning
  5339.  
  5340.  Before you use this utility, make a backup copy of your disk and try to
  5341.  restore the files by using the "restore" utility. If this operation fails,
  5342.  use the recover utility to try to reconstruct the lost files one by one. Do
  5343.  not use recover to reconstruct an entire disk unless the entire disk is
  5344.  unreadable.
  5345.  ────────────────────────────────────────────────────────────────────────────
  5346.  
  5347.  You cannot use the recover utility on the drive from which you started your
  5348.  system, nor on the drive from which you are running recover. To reconstruct
  5349.  files on your start-up drive, you must run recover from the MS OS/2 Install
  5350.  disk. You can do the same thing to reconstruct files on the drive from which
  5351.  you would normally run recover, or you can simply copy the utility to
  5352.  another drive and run it from there.
  5353.  
  5354.    «DOS»
  5355.  
  5356.  Works the same way in the DOS session as it does in an OS/2 session, except
  5357.  that you cannot use the recover utility on an HPFS disk or partition from
  5358.  the DOS session.
  5359.  
  5360.  You cannot use the recover utility with drives that you have assigned,
  5361.  joined, or substituted by using the "assign" , "join" , or "subst" utility.
  5362.  Example
  5363.  
  5364.  To try to reconstruct the file REPORT.TXT from the disk with bad sectors in
  5365.  drive B, type the following:
  5366.  
  5367.  recover b:\ereport.txt
  5368.  
  5369.  To try to reconstruct the file JANUARYstart-up drive, insert the MS OS/2
  5370.  Install disk in drive A, press CTL+ALT+DEL, press ESC when the logo appears,
  5371.  and then type the following at the command prompt:
  5372.  
  5373.  recover c:\january
  5374.  
  5375.  
  5376.  Rem (Remark)
  5377.  
  5378.    «OS2»
  5379.  
  5380.  rem [comment]
  5381.  
  5382.  Includes a descriptive comment in a batch file. If the echo feature is on
  5383.  when MS OS/2 encounters a rem line in a batch file, MS OS/2 displays the
  5384.  line; if the echo feature is off, MS OS/2 does not display the line. To use
  5385.  this version of the rem command, place it in the batch file.
  5386.  
  5387.  comment                           Specifies the message you want to put in
  5388.                                    the batch file. Comment can be any
  5389.                                    combination of characters that fits on
  5390.                                    one line.
  5391.  
  5392.  
  5393.  If the comment you want to put in the batch file is too long to fit on one
  5394.  line, you must use the rem command again for each line in the comment. You
  5395.  can also use rem without comment to add spacing between blocks of comments
  5396.  or remarks.
  5397.  
  5398.    «DOS»
  5399.  
  5400.  Works the same way in a DOS batch file (.BAT extension) as it does in an
  5401.  OS/2 batch file (
  5402.  
  5403.  Example
  5404.  
  5405.  The following batch file uses the rem command both to include comments in
  5406.  the file and to add spacing:
  5407.  
  5408.  @echo off
  5409.  rem This batch file displays the directory
  5410.  rem of the disk in drive A.
  5411.  rem
  5412.  rem You use the /w option to display
  5413.  rem the directory in wide format.
  5414.  rem
  5415.  dir a: /w
  5416.  
  5417.  
  5418.  Rem (Remark)
  5419.  
  5420.    «CONFIG»
  5421.  
  5422.  rem [text]
  5423.  
  5424.  Includes a remark or descriptive comment in your CONFIG.SYS file. Lines that
  5425.  begin with rem are not processed by MS OS/2.
  5426.  
  5427.  text                              Specifies the remark or comment that you
  5428.                                    want to include in your CONFIG.SYS file.
  5429.                                    Text may be any string of characters
  5430.                                    that fits on one line.
  5431.  
  5432.  If the comment you want to put in the CONFIG.SYS file is too long to fit on
  5433.  one line, you must use the rem command again for each line of the comment.
  5434.  You can also use rem without text to add spacing between blocks of comments
  5435.  or remarks. Example
  5436.  
  5437.  To leave a comment in a configuration file for another person's use or to
  5438.  remind yourself of the purposes of the commands in the file, begin each line
  5439.  of the comment with the rem command, as follows:
  5440.  
  5441.  rem MS OS/2 uses CONFIG.SYS to configure your system.
  5442.  rem This command (rem) allows you to insert
  5443.  rem comments in CONFIG.SYS that remind you
  5444.  rem what a particular command is supposed to do.
  5445.  
  5446.  
  5447.  Rename
  5448.  
  5449.    «OS2»
  5450.  
  5451.  rename [drive:][path]filename1 filename2
  5452.  
  5453.  Changes the name of a file or directory. You can abbreviate rename as ren.
  5454.  
  5455.  filename1                         Specifies the old name of the file or
  5456.                                    directory. If you do not specify a drive
  5457.                                    and path, MS OS/2 uses the current
  5458.                                    directory on the current drive.
  5459.  
  5460.  filename2                         Specifies the new name of the file or
  5461.                                    directory. You cannot specify a drive or
  5462.                                    path for the new name; the rename
  5463.                                    command changes only the name of the
  5464.                                    file or directory.
  5465.  
  5466.  You can use wildcard characters in filename1 and filename2.
  5467.  
  5468.  You cannot use the rename command to move files from one drive or directory
  5469.  to another.
  5470.  
  5471.  If a file or directory with the name specified for filename2 already exists
  5472.  in the parent directory, MS OS/2 displays an error message.
  5473.  
  5474.  ────────────────────────────────────────────────────────────────────────────
  5475.  Note
  5476.  
  5477.  In the high-performance file system (HPFS), you can use the rename command
  5478.  to change the case of a filename or directory name by renaming the file or
  5479.  directory as itself. For example, you can change the filename
  5480.  "mytaxfile.txt" to "MYTAXFILE.TXT" by using the uppercase version of the
  5481.  name as the filename2 argument. (The quotation marks around the filenames
  5482.  are required when you are using HPFS. For more information about HPFS, see
  5483.  the Microsoft Operating System/2 User's Guide.)
  5484.  ────────────────────────────────────────────────────────────────────────────
  5485.  
  5486.    «DOS»
  5487.  
  5488.  Works the same way in the DOS session as it does in an OS/2 session.
  5489.  
  5490.  Example
  5491.  
  5492.  To change the extension of all the files in the current directory in drive B
  5493.  that have a .DOC extension from .DOC to .TXT, type the following:
  5494.  
  5495.  rename b:*.doc *.txt
  5496.  
  5497.  
  5498.  Replace
  5499.  
  5500.    «OS2»
  5501.  
  5502.  replace [drive:][path]filename [[drive:]path] [[/a|/s]|[/a|/u]] [/p] [/r]
  5503.  [/w] [/f]
  5504.  
  5505.  Selectively replaces files in the destination directory with new versions of
  5506.  those files from the source directory, or adds new files to the destination
  5507.  directory.
  5508.  
  5509.  filename                          Specifies the source file that is to
  5510.                                    replace the file on the destination disk.
  5511.                                    You can use wildcard characters in the
  5512.                                    source-file name to replace groups of
  5513.                                    files that have similar names.
  5514.  
  5515.  path                              Specifies the directory that contains
  5516.                                    the file to be replaced or to which you
  5517.                                    want to add the file. If you do not
  5518.                                    specify a directory, replace uses the
  5519.                                    current directory on the current drive.
  5520.  
  5521.  /a                                Adds only the files specified in
  5522.                                    filename that do not exist in the
  5523.                                    destination directory, and does not
  5524.                                    replace existing files. You cannot use
  5525.                                    this option with the /s option.,
  5526.  
  5527.  /p                                Prompts you for confirmation before
  5528.                                    replacing or adding a file.
  5529.  
  5530.  /r                                Replaces read-only files as well as
  5531.                                    unprotected files. If you do not use
  5532.                                    this option and you try to replace a
  5533.                                    read-only file, the replacement process
  5534.                                    stops and you see an error message.
  5535.  
  5536.  /s                                Replaces files in the subdirectories of
  5537.                                    the destination directory if the
  5538.                                    filenames match those specified in
  5539.                                    filename. The replace utility never
  5540.                                    searches subdirectories of the source
  5541.                                    directory. You cannot use this option
  5542.                                    with the /a option.
  5543.  
  5544.  /u                                Replaces only the target files that are
  5545.                                    older than their corresponding source
  5546.                                    files. You cannot use this option with
  5547.                                    the /a option.
  5548.  
  5549.  /w                                Instructs the replace utility to wait
  5550.                                    for you to insert a disk before
  5551.                                    beginning to search for source files.
  5552.                                    Otherwise, replace starts replacing or
  5553.                                    adding files immediately.
  5554.  
  5555.  /f                                Specifies that the replace utility
  5556.                                    should not discard the extended
  5557.                                    attributes of a file if the destination
  5558.                                    file system does not support extended
  5559.                                    attributes. In this case, the utility
  5560.                                    does not replace the file.
  5561.  
  5562.  The replace utility is usually used to update the software on your hard
  5563.  disk. You cannot use replace to update hidden files or system files.
  5564.  
  5565.  The replace utility copies the extended attributes of the new version of the
  5566.  file (the source file) to the destination file.
  5567.  
  5568.  If you omit the /f option when you use the replace utility to copy a file
  5569.  with extended attributes to a file system that does not support extended
  5570.  attributes, the utility copies the file and discards the extended
  5571.  attributes. If the file requires the extended attributes, replace does not
  5572.  copy the file but displays an explanatory message on the screen.
  5573.  
  5574.    «DOS»
  5575.  
  5576.  Works the same way in the DOS session as it does in an OS/2 session.
  5577.  
  5578.  Examples
  5579.  
  5580.  To update your phone-list file, PHONES.CLI, in all the directories on your
  5581.  hard disk (drive C) with the latest version of PHONES.CLI from the disk in
  5582.  drive B, type the following:
  5583.  
  5584.  replace b:\ephones.cli c:\e /s
  5585.  
  5586.  To add several new printer drivers from the disk in drive A to the directory
  5587.  MSTOOLS on your hard disk (drive C), type the following:
  5588.  
  5589.  replace a:*.prd c:\emstools /a
  5590.  
  5591.  
  5592.  Restore
  5593.  
  5594.    «OS2»
  5595.  
  5596.  restore drive1: drive2:[path][filename] [/s] [/p] [/b:date] [/a:date]
  5597.  [/e:time] [/l:time] [/m] [/n] [/f]
  5598.  
  5599.  Restores backup files that were created by using the "backup" utility.
  5600.  
  5601.  drive1:                           Specifies the drive that contains the
  5602.                                    backup disk on which the backup copies
  5603.                                    of your files are stored.
  5604.  
  5605.  drive2:                           Specifies the drive that contains the
  5606.                                    destination disk to which you want to
  5607.                                    restore the files. The destination disk
  5608.                                    does not have to be of the same type as
  5609.                                    the source disk.
  5610.  
  5611.  filename                          Specifies the file that you want to
  5612.                                    restore. You can use wildcard characters
  5613.                                    to specify multiple files with similar
  5614.                                    names. If you do not specify a filename,
  5615.                                    the restore utility searches the current
  5616.                                    directory on the current drive for
  5617.                                    filenames that match those found on
  5618.                                    drive1.
  5619.  
  5620.  /s                                Restores the files in subdirectories of
  5621.                                    the directory that contains filename.
  5622.  
  5623.  /p                                Prompts you for confirmation before
  5624.                                    restoring read-only files or files that
  5625.                                    have changed since the last backup
  5626.                                    operation.
  5627.  
  5628.  /b:date                           Restores only files that were modified
  5629.                                    on or before the specified date.
  5630.  
  5631.  /a:date                           Restores only files that were modified
  5632.                                    on or after the specified date.
  5633.  
  5634.  /e:time                           Restores only files that were modified
  5635.                                    at or before the specified time. Do not
  5636.                                    use this option without the /b:date or
  5637.                                    /a:date option.
  5638.  
  5639.  /l:time                           Restores only files that were modified
  5640.                                    at or after the specified time. Do not
  5641.                                    use this option without the /b:date or
  5642.                                    /a:date option.
  5643.  
  5644.  /m                                Restores only files that have been
  5645.                                    modified since the last backup operation
  5646.                                    and turns off the archive bits of the
  5647.                                    restored files.
  5648.  
  5649.  /n                                Restores only files that no longer exist
  5650.                                    on the destination disk.
  5651.  
  5652.  /f                                Specifies that the restore utility
  5653.                                    should not discard the extended
  5654.                                    attributes of a file if the destination
  5655.                                    file system does not support extended
  5656.                                    attributes. In this case, the utility
  5657.                                    does not restore the file.
  5658.  
  5659.  The restore utility can restore files only to their original directory.
  5660.  
  5661.  The restore utility cannot restore CMDsystem files, nor can it restore files
  5662.  that are in use on your start-up drive. To restore the backup copies of the
  5663.  files on your start-up drive, you must run restore from the MS OS/2 Install
  5664.  disk.
  5665.  
  5666.  The restore utility restores backup files that were created by using the MS
  5667.  OS/2 "backup" utility or the MS-DOS "backup" utility (including versions
  5668.  3.21 and earlier of MS-DOS, even though they use a different structure for
  5669.  backup files).
  5670.  
  5671.  The restore utility preserves the extended attributes of a file or
  5672.  directory.
  5673.  
  5674.  If you omit the /f option when you use the restore utility to copy a file
  5675.  with extended attributes to a file system that does not support extended
  5676.  attributes, the utility copies the file and discards the extended
  5677.  attributes. If the file requires the extended attributes, restore does not
  5678.  copy the file but displays an explanatory message on the screen. Examples
  5679.  
  5680.  To restore all the backup files on drive A with the extension .NEW to the
  5681.  directory LETTERS on the disk in drive B, type the following:
  5682.  
  5683.  restore a: b:\eletters\e*.new
  5684.  
  5685.  To restore the files on the disk in drive B to drive C, which is your
  5686.  start-up drive, insert the MS OS/2 Install disk in drive A, press
  5687.  CTRL+ALT+DEL, press ESC when the logo appears, and type the following at the
  5688.  command prompt:
  5689.  
  5690.  restore b: c:
  5691.  
  5692.  
  5693.  Rmdir (Remove Directory)
  5694.  
  5695.    «OS2»
  5696.  
  5697.  rmdir [drive:]path [...]
  5698.  
  5699.  Deletes a directory. You can abbreviate rmdir as rd.
  5700.  
  5701.  path                              Specifies the directory that you want to
  5702.                                    delete.
  5703.  
  5704.  Before you can delete a directory, you must delete all the files and
  5705.  subdirectories in that directory. (The empty directory still shows listings
  5706.  for the working directory [.] and the parent directory [..] if you list its
  5707.  contents with the "dir" command.)
  5708.  
  5709.  You can delete more than one directory at a time by specifying each
  5710.  directory separately on the same command line.
  5711.  
  5712.    «DOS»
  5713.  
  5714.  Works the same way in the DOS session as it does in an OS/2 session, except
  5715.  that in the DOS session you cannot specify multiple directories.
  5716.  
  5717.  Example
  5718.  
  5719.  To remove the directory BILLS and the directory NOTICES from the root
  5720.  directory on drive B, type the following:
  5721.  
  5722.  rmdir b:\ebills b:\enotices
  5723.  
  5724.  
  5725.  Rmsize (Real-Mode Size)
  5726.  
  5727.    «CONFIG»
  5728.  
  5729.  rmsize=x
  5730.  
  5731.  Specifies the amount of memory that MS OS/2 is to reserve for the DOS
  5732.  session. To use this command, place it in your CONFIG.SYS file.
  5733.  
  5734.  x                                 Specifies the size, in kilobytes, of the
  5735.                                    portion of memory reserved for the DOS
  5736.                                    session. This number must be in the
  5737.                                    range 256 through 640. The default value
  5738.                                    depends on the total amount of system
  5739.                                    memory.
  5740.  
  5741.  MS OS/2 uses the first x kilobytes of memory ("low memory") in your computer
  5742.  to run the DOS session; memory above x kilobytes is used for the rest of MS
  5743.  OS/2 (apart from certain device drivers and essential MS OS/2 functions that
  5744.  use a small portion of the first x kilobytes).
  5745.  
  5746.  The default size of x depends on how much memory your system has, but it is
  5747.  always the largest size possible on your system (up to the maximum of 640K).
  5748.  The default size is typically either 512K or 640K─the amount of memory
  5749.  installed below 1024K.
  5750.  
  5751.  The rmsize command sets a maximum amount of memory for the DOS session; if
  5752.  there is less than this amount of memory available, the DOS session uses the
  5753.  available amount.
  5754.  
  5755.  Because the rmsize command affects only the DOS session, it has no effect
  5756.  unless the "protectonly" command is set to no (the default setting). (If
  5757.  "protectonly" is set to yes, you cannot run the DOS session at all.)
  5758.  
  5759.  For more information about setting the size of the environment for the DOS
  5760.  session, see the shell command.
  5761.  
  5762.  ────────────────────────────────────────────────────────────────────────────
  5763.  Note
  5764.  
  5765.  The memory reserved by the rmsize command cannot be swapped, so this memory
  5766.  is unavailable to any other program or process.
  5767.  ────────────────────────────────────────────────────────────────────────────
  5768.  
  5769.  Example
  5770.  
  5771.  To reserve only 384 kilobytes of memory for the DOS session, include the
  5772.  following line in your CONFIG.SYS file:
  5773.  
  5774.  rmsize=384
  5775.  
  5776.  
  5777.  Run
  5778.  
  5779.    «CONFIG»
  5780.  
  5781.  run=[drive:][path]filename [arguments]
  5782.  
  5783.  Starts a background program when you start your system. To use this command,
  5784.  place it in your CONFIG.SYS file.
  5785.  
  5786.  filename                          Specifies the program you want to start,
  5787.                                    which must be one that can run in the
  5788.                                    background. You must include the
  5789.                                    extension (give the drive and path if
  5790.                                    the file is not located in the root
  5791.                                    directory of your start-up drive. The
  5792.                                    file cannot be a batch file.
  5793.  
  5794.  arguments                         Specifies any valid options or other
  5795.                                    variables for the program.
  5796.  
  5797.  You can include more than one run command in your CONFIG.SYS file.
  5798.  
  5799.  MS OS/2 processes all the "device" commands in your CONFIG.SYS file before
  5800.  it starts processing run commands.
  5801.  
  5802.  When processing a CONFIG.SYS file, MS OS/2 preserves the difference between
  5803.  uppercase and lowercase letters in arguments. This can be important for some
  5804.  programs that are case sensitive.
  5805.  
  5806.  To run a program that requires input from you, use the "call" command.
  5807.  
  5808.  
  5809.  Set
  5810.  
  5811.    «OS2»
  5812.  
  5813.  set [string1=[string2]]
  5814.  
  5815.  Defines an environment variable by naming the variable and giving a value
  5816.  for it.
  5817.  
  5818.  string1                           Specifies the name of the environment
  5819.                                    variable you want to set (for example,
  5820.                                    PATH, INIT, LIB, or PROMPT).
  5821.  
  5822.  string2                           Specifies the string of characters,
  5823.                                    paths, or filenames that defines the
  5824.                                    current value of the environment
  5825.                                    variable.
  5826.  
  5827.  
  5828.  If you type set by itself, MS OS/2 displays the current values for all the
  5829.  environment variables in the current session.
  5830.  
  5831.  If you type set string1=, MS OS/2 removes the current value for that
  5832.  environment variable.
  5833.  
  5834.  For more information about environment variables, see the Microsoft
  5835.  Operating System/2 User's Guide.
  5836.  
  5837.  You can also use the set command to define the replaceable batch parameters
  5838.  by name, instead of by number. For more information about using the set
  5839.  command in batch files and start-up files, see the Microsoft Operating
  5840.  System/2 User's Guide.
  5841.  
  5842.  This version of the set command affects only the current session.
  5843.  
  5844.    «DOS»
  5845.  
  5846.  Works the same way in the DOS session as it does in an OS/2 session.
  5847.  
  5848.  Example
  5849.  
  5850.  To set the INCLUDE environment variable so that the Microsoft C Optimizing
  5851.  Compiler can find include files in the directory INC on drive C, type the
  5852.  following:
  5853.  
  5854.  set include=c:\einc
  5855.  
  5856.  
  5857.  Set
  5858.  
  5859.    «CONFIG»
  5860.  
  5861.  set string1=string2
  5862.  
  5863.  Defines an environment variable by naming the variable and giving a value
  5864.  for it. To use this version of the set command, place it in your CONFIG.SYS
  5865.  file.
  5866.  
  5867.  string1                           Specifies the name of the environment
  5868.                                    variable you want to set (for example,
  5869.                                    PATH, INIT, LIB, or PROMPT).
  5870.  
  5871.  string2                           Specifies the string of characters,
  5872.                                    paths, or filenames that defines the
  5873.                                    current value of the environment
  5874.                                    variable.
  5875.  
  5876.  The MS OS/2 installation program places the following set commands in your
  5877.  CONFIG.SYS file to specify the search paths to be used by "cmd" and other
  5878.  programs (PATH and DPATH) and the location of the command interpreter
  5879.  (COMSPEC):
  5880.  
  5881.  set path=c:\os2;c:\os2\system;c:\os2\install;c:\;
  5882.  set dpath=c:\os2;c:\os2\system;c:\os2\install;c:\;
  5883.  set comspec=c:\os2\cmd.exe
  5884.  
  5885.  For more information about environment variables, see the Microsoft
  5886.  Operating System/2 User's Guide.
  5887.  
  5888.  You can also use the set command in your CONFIG.SYS file to define the
  5889.  replaceable batch parameters by name, instead of by number. For more
  5890.  information about using the set command in batch files and start-up files,
  5891.  see the Microsoft Operating System/2 User's Guide.
  5892.  
  5893.  This version of the set command affects all OS/2 sessions; it does not
  5894.  affect the DOS session.
  5895.  
  5896.  
  5897.  Setcom40
  5898.  
  5899.    «DOS»
  5900.  
  5901.  setcom40 COMx=on|off
  5902.  
  5903.  Sets the address of the specified serial port so that a DOS application can
  5904.  find the port and use it.
  5905.  
  5906.  x                                 Specifies the number of the serial port
  5907.                                    for which you want to set the address.
  5908.                                    This number can be 1, 2, or 3.
  5909.  
  5910.  on                                Sets the address of the serial port in
  5911.                                    memory.
  5912.  
  5913.  off                               Removes the address of the serial port
  5914.                                    from memory.
  5915.  
  5916.  
  5917.  If you used the "device" configuration command in your CONFIG.SYS file to
  5918.  load the COM0x.SYS device driver, you must use the setcom40 utility before
  5919.  you run a DOS application. Most DOS applications send their output directly
  5920.  to the serial port, rather than through the COM0x.SYS device driver, so they
  5921.  must have the port address.
  5922.  
  5923.  You must set the port address before you start the DOS application.
  5924.  
  5925.  Do not use the setcom40 utility if a program in either the Presentation
  5926.  Manager session or an OS/2 session is using the COM0x.SYS device driver to
  5927.  control access to the serial port that you want to use. Be sure that any MS
  5928.  OS/2 program that is using the serial port (including the spooler, which may
  5929.  have files queued up waiting to use the port) has finished running before
  5930.  you try to use the port from the DOS session. Conversely, once you have set
  5931.  setcom40 to on and given a DOS application access to a serial port, be sure
  5932.  that that application has finished running before you switch out of the DOS
  5933.  session. Examples
  5934.  
  5935.  To set the address of serial port COM2 so that an application can use the
  5936.  port in the DOS session, type the following:
  5937.  
  5938.  setcom40 com2=on
  5939.  
  5940.  To remove the address of COM2 from memory and give access to the port back
  5941.  to MS OS/2, type the following:
  5942.  
  5943.  setcom40 com2=off
  5944.  
  5945.  
  5946.  Setlocal
  5947.  
  5948.    «OS2»
  5949.  
  5950.  setlocal
  5951.  
  5952.  Saves the current drive, directory, and environment settings and specifies
  5953.  to MS OS/2 that any changes to these settings that you make in a batch file
  5954.  are valid only while the batch file is running. Use this command only in a
  5955.  batch file.
  5956.  
  5957.  After typing setlocal on a line by itself, you can set any variables you
  5958.  want for the purposes of the batch file; MS OS/2 restores the original
  5959.  settings when it encounters an "endlocal" command or when the batch file
  5960.  ends.
  5961.  
  5962.  You can use multiple setlocal commands in a batch file without including
  5963.  corresponding "endlocal" commands; each succeeding setlocal overrides the
  5964.  previous one, in effect acting as an endlocal command for the previous
  5965.  setlocal.
  5966.  
  5967.  You can use this command only in OS/2 batch files (files with the extension
  5968.  Example
  5969.  
  5970.  To have MS OS/2 search the root directory of the disk in drive B for
  5971.  programs, even though your normal path does not include drive B, type the
  5972.  following in the batch file:
  5973.  
  5974.  setlocal
  5975.  path b:
  5976.    .
  5977.    .
  5978.    .
  5979.  endlocal
  5980.  
  5981.  
  5982.  Shell
  5983.  
  5984.    «CONFIG»
  5985.  
  5986.  shell=[drive:][path]filename [arguments]
  5987.  
  5988.  Specifies the command interpreter that MS OS/2 is to use in the DOS session.
  5989.  To use this command, place it in your CONFIG.SYS file.
  5990.  
  5991.  filename                          Specifies the name of the file
  5992.                                    (including its extension) that contains
  5993.                                    the DOS-session command interpreter. The
  5994.                                    default filename is COMMANDmust include
  5995.                                    the drive and/or path if the command
  5996.                                    interpreter is not in the root directory
  5997.                                    of the start-up drive.
  5998.  
  5999.  arguments                         Specifies any valid options or other
  6000.                                    variables for the command interpreter.
  6001.  
  6002.  
  6003.  The shell command itself does not accept arguments, but if the alternative
  6004.  command interpreter does, you can include them as part of the command.
  6005.  
  6006.  If you specify a filename other than COMMANDinterpreter you specify when it
  6007.  starts the DOS session. Since the DOS commands are included in COMMANDunless
  6008.  they are also included in your new command interpreter. Example
  6009.  
  6010.  To specify COMMANDlook for COMMANDsize to 512 bytes, and instruct "command"
  6011.  to stay in memory, include the following line in your CONFIG.SYS file:
  6012.  
  6013.  shell=c:\eos2\ecommand.com c:\eos2 /e:512 /p
  6014.  
  6015.  COMMANDof the program.
  6016.  
  6017.  
  6018.  Shift
  6019.  
  6020.    «OS2»
  6021.  
  6022.  shift
  6023.  
  6024.  Shifts the positions of the numbered replaceable parameters (%0-%9) in a
  6025.  batch file, so that you can deal with more than 10 values. Use this command
  6026.  only in a batch file.
  6027.  
  6028.  Each time MS OS/2 encounters the shift command, it discards the value in %0
  6029.  and shifts each of the other values to the next lowest replaceable
  6030.  parameter: The value in %1 moves to the %0 position, %2 moves to %1, and so
  6031.  on. This frees the last parameter, %9, so that the next value you type
  6032.  shifts into %9.
  6033.  
  6034.  You can use the shift command as many times as you need to in a batch file.
  6035.  You can use shift even if there are fewer than 10 values.
  6036.  
  6037.  There is no backward shift command. After you have used shift once, the
  6038.  value in the original %0 is gone and the batch file cannot use it again.
  6039.  
  6040.    «DOS»
  6041.  
  6042.  Works the same way in a DOS batch file (.BAT extension) as it does in an
  6043.  OS/2 batch file (
  6044.  
  6045.  Example
  6046.  
  6047.  The following batch file (named COPYTOshift command to copy a list of files
  6048.  to your current directory:
  6049.  
  6050.  @echo off
  6051.  if "%1"=="" goto usage
  6052.  :start
  6053.  copy %1
  6054.  shift
  6055.  if "%1"=="" goto done
  6056.  goto start
  6057.  :usage
  6058.  echo * This batch program copies any number
  6059.  echo * of files to your current directory.
  6060.  echo *
  6061.  echo * Usage: copyto file1 file2 file3 [...]
  6062.  :done
  6063.  
  6064.  
  6065.  Sort
  6066.  
  6067.    «OS2»
  6068.  
  6069.  sort [/r] [/+n] < source
  6070.  
  6071.  Sorts lines of input in alphabetical and numeric order and sends the output
  6072.  lines to the screen.
  6073.  
  6074.  /r                                Sorts the lines in reverse order (that
  6075.                                    is, from Z to A, then from 9 to 0).
  6076.  
  6077.  /+n                               Starts sorting the lines according to
  6078.                                    the character in column n (that is, the
  6079.                                    nth character from the beginning of the
  6080.                                    line). If you do not specify this option,
  6081.                                    the sort utility starts sorting
  6082.                                    according to the first character of each
  6083.                                    line.
  6084.  
  6085.  source                            Specifies the source of the input. The
  6086.                                    keyboard is the default source, but you
  6087.                                    can also redirect a file or the output
  6088.                                    from another command. For more
  6089.                                    information about redirection, see the
  6090.                                    Microsoft Operating System/2 User's
  6091.                                    Guide.
  6092.  
  6093.  
  6094.  The sort utility uses the collating sequence table that is appropriate to
  6095.  the country-code and code-page settings. It does not distinguish between
  6096.  uppercase and lowercase letters.
  6097.  
  6098.  ────────────────────────────────────────────────────────────────────────────
  6099.  Note
  6100.  
  6101.  If you try to sort a file that is too large, the sort utility displays an
  6102.  error message. A file is too large if it is larger than 63K or if the number
  6103.  of lines is greater than the value ((file size in bytes + 768) / 4). To sort
  6104.  a large file, split the file into two or more smaller files.
  6105.  ────────────────────────────────────────────────────────────────────────────
  6106.  
  6107.    «DOS»
  6108.  
  6109.  Works the same way in the DOS session as it does in an OS/2 session.
  6110.  
  6111.  Examples
  6112.  
  6113.  To sort the contents of the file PHONE.TXT in reverse alphabetical order and
  6114.  display the output on your screen, type the following:
  6115.  
  6116.  sort /r < phone.txt
  6117.  
  6118.  To sort a listing of the filenames in the CLIENTS directory on drive B and
  6119.  send the sorted list to the file CLIENTS.LST on drive C, type the following:
  6120.  
  6121.  
  6122.  dir b:\eclients | sort > c:clients.lst
  6123.  
  6124.  
  6125.  Spool
  6126.  
  6127.    «OS2»
  6128.  
  6129.  spool [/d:device1] [/o:device2]
  6130.  
  6131.  Redirects printing output from one device, such as a parallel port, to a
  6132.  different output printing device.
  6133.  
  6134.  /d:device1                        Identifies the parallel port that is
  6135.                                    connected to the printing device. This
  6136.                                    is the device that the original printing
  6137.                                    command was sending its output to. The
  6138.                                    default device is LPT1. You cannot
  6139.                                    specify a serial device as device1, but
  6140.                                    you can use any parallel device (LPT1,
  6141.                                    LPT2, etc.) that supports monitors.
  6142.  
  6143.  /o:device2                        Identifies the output printing device.
  6144.                                    You can specify any parallel port (LPT1,
  6145.                                    LPT2, etc., or PRN) or any serial port
  6146.                                    (COM1, COM2, etc.). If you do not
  6147.                                    specify device2, the spool utility uses
  6148.                                    device1 as the default output printing
  6149.                                    device.
  6150.  
  6151.  The spooler intercepts files that are being sent by the "print" utility or
  6152.  the printing command of an application to a printer connected to a parallel
  6153.  port, holds the files temporarily in a directory on disk, and then prints
  6154.  them one at a time.
  6155.  
  6156.  Because the output printing device can be different from the one speciified
  6157.  in the printing command, you can use the spool utility to redirect
  6158.  parallel-printer output (for example, to an asynchronous serial device).
  6159.  
  6160.  The spool utility affects all sessions. Example
  6161.  
  6162.  To spool your print jobs and print them on a serial printer connected to
  6163.  COM1, type the following:
  6164.  
  6165.  spool /o:com1
  6166.  
  6167.  
  6168.  Start
  6169.  
  6170.    «OS2»
  6171.  
  6172.  start [" [/f] [/fs\^|/win\^|/pm] [/i] [/pgm] [drive:][path]command[.ext] [
  6173.  options]
  6174.  or
  6175.  
  6176.  start " [/f] [/fs\^|/win\^|/pm] [/i] "[drive:][path]command[.ext]
  6177.  [options]"
  6178.  
  6179.  or
  6180.  
  6181.  start [" [/f] [/fs\^|/win] [/i]
  6182.  
  6183.  Starts an MS OS/2 command interpreter and tells it to carry out the command
  6184.  you specify.
  6185.  
  6186.  session                           Specifies the name of the new session as
  6187.                                    it will appear in the Task List. The
  6188.                                    name can be up to 60 characters and can
  6189.                                    include spaces; it must be surrounded by
  6190.                                    double quotation marks. If you do not
  6191.                                    specify a name, MS OS/2 uses the
  6192.                                    filename you specify for the command
  6193.                                    argument. If you do not specify either
  6194.                                    the session argument or the command
  6195.                                    argument, MS OS/2 uses CMD
  6196.  
  6197.  /k                                Instructs the new command interpreter to
  6198.                                    run the command you specify and then
  6199.                                    keep the session open when the command
  6200.                                    is completed. This is the default option
  6201.                                    unless command starts a Presentation
  6202.                                    Manager application, in which case the
  6203.                                    default option is /n. You cannot use /k
  6204.                                    with the /pm option.
  6205.  
  6206.  /c                                Instructs the new command interpreter to
  6207.                                    carry out command and then end the
  6208.                                    session and return to the program from
  6209.                                    which it was started. You cannot use
  6210.                                    this option with the /pm option.
  6211.  
  6212.  /n                                Instructs MS OS/2 to run command without
  6213.                                    starting a new command interpreter. This
  6214.                                    is the default option when command
  6215.                                    starts a Presentation Manager
  6216.                                    application. You cannot use /n if you
  6217.                                    have enclosed the command and its
  6218.                                    options in double quotation marks (see
  6219.                                    the following options description), nor
  6220.                                    can you use /n if command is a batch
  6221.                                    file or attempts to use a batch file
  6222.                                    (batch files require "cmd"as their batch
  6223.                                    processor).
  6224.  
  6225.  /f                                Instructs MS OS/2 to run command in the
  6226.                                    foreground. Note that if you use several
  6227.                                    start commands in a batch file, you can
  6228.                                    use only one /f option; MS OS/2 ignores
  6229.                                    all but the first one.
  6230.  
  6231.  /fs                               Instructs MS OS/2 to run command as a
  6232.                                    full-screen application in the
  6233.                                    foreground, in a session independent of
  6234.                                    Presentation Manager.
  6235.  
  6236.  /win                              Instructs MS OS/2 to run command in a
  6237.                                    foreground Presentation Manager window.
  6238.  
  6239.  /pm                               Instructs MS OS/2 to run command as a
  6240.                                    Presentation Manager application. You
  6241.                                    cannot use this option with the /k or /c
  6242.                                    option, nor can you use it if command is
  6243.                                    a batch file.
  6244.  
  6245.  /i                                Instructs MS OS/2 to give the new
  6246.                                    session the environment set in your
  6247.                                    CONFIG.SYS file. The environment
  6248.                                    includes environment variables such as
  6249.                                    PATH, DPATH, and the drive and directory
  6250.                                    for a session.,
  6251.  
  6252.  /pgm                              Specifies that the quoted string
  6253.                                    following this option in the command
  6254.                                    line is the name of the program to be
  6255.                                    run.
  6256.  
  6257.  command[.ext]                     Specifies the command you want the new
  6258.                                    command interpreter to carry out. This
  6259.                                    may be an MS OS/2 command, a utility, a
  6260.                                    batch file, or a command that starts an
  6261.                                    application. If you do not specify an
  6262.                                    extension, MS OS/2 searches for command
  6263.                                    with the extensions order.
  6264.  
  6265.  options                           Specifies any valid options for command.
  6266.                                    If you specify options, you must enclose
  6267.                                    command and options in double quotation
  6268.                                    marks so that MS OS/2 will not attempt
  6269.                                    to interpret the options as belonging to
  6270.                                    the start command.
  6271.  
  6272.  MS OS/2 runs command as an independent program according to the type of
  6273.  application it is. You can override the default start settings by using the
  6274.  /fs, /win, or /pm option.
  6275.  
  6276.  If you type start without specifying a command, MS OS/2 starts a new command
  6277.  interpreter ( "cmd" ) without running a command.
  6278.  
  6279.  If the name of the program you want to start must be enclosed in quotation
  6280.  marks (if the name contains spaces or characters not allowed in the FAT file
  6281.  system, for example) and you do not specify a session name, you must include
  6282.  the /pgm option before the program name. If you omit the session name and do
  6283.  not specify /pgm, MS OS/2 interprets the quoted string as the session name.
  6284.  Example
  6285.  
  6286.  To start a new MS OS/2 command interpreter and run an application named
  6287.  Videophile in the foreground session, type the following (assuming that the
  6288.  command you use to start Videophile is videop):
  6289.  
  6290.  start "Videophile" /f videop
  6291.  
  6292.  
  6293.  Subst (Substitute)
  6294.  
  6295.    «DOS»
  6296.  
  6297.  subst [[drive1: drive2:path]|[drive1: /d]]
  6298.  
  6299.  Temporarily substitutes a drive letter for another drive letter and path.
  6300.  While a substitution is in effect, MS OS/2 regards any reference to drive1
  6301.  as a reference to drive2:path.
  6302.  
  6303.  drive1:                           Specifies the drive letter you want to
  6304.                                    substitute for a directory on drive2.
  6305.  
  6306.  drive2:path                       Specifies the drive and path of the
  6307.                                    directory for which you want to
  6308.                                    substitute drive1.
  6309.  
  6310.  /d                                Deletes an existing substitution. You
  6311.                                    must specify drive1 to identify which
  6312.                                    substitution is to be deleted; do not
  6313.                                    specify drive2:path with the /d option.
  6314.  
  6315.  If you type subst by itself, the utility displays the substitutions
  6316.  currently in effect.
  6317.  
  6318.  The following utilities do not work on a drive you have substituted for a
  6319.  directory on another drive:
  6320.  
  6321.  .HP chkdsk 38                     "format"
  6322.  
  6323.  .HP diskcomp 63                   "label"
  6324.  
  6325.  .HP diskcopy 64                   "recover"
  6326.  
  6327.  .HP fdisk /d 74
  6328.  
  6329.  The subst utility affects only the DOS session. Example
  6330.  
  6331.  To substitute the drive letter F for the path \MONTHLY\FEBRUARY\WEEKENDS on
  6332.  the disk in drive A, type the following:
  6333.  
  6334.  subst f: a:\monthly\february\weekends
  6335.  
  6336.  
  6337.  Swappath
  6338.  
  6339.    «CONFIG»
  6340.  
  6341.  swappath=drive:[path] [space]
  6342.  
  6343.  Specifies the location of the swap file that temporarily holds the
  6344.  information being swapped from memory if you have enabled swapping between
  6345.  memory and disk. To use this command, place it in your CONFIG.SYS file.
  6346.  
  6347.  drive:                            .LI Specifies the drive on which the
  6348.                                    swap file is located.
  6349.  
  6350.  space                             Specifies the minimum amount of disk
  6351.                                    space, in kilobytes, to leave free on
  6352.                                    the swap drive (that is, the disk space
  6353.                                    that may not be used for swapping). This
  6354.                                    number must be in the range 0 through
  6355.                                    32767; the default value is 512.
  6356.  
  6357.  
  6358.  The swappath command takes effect only if the "memman" command in your
  6359.  CONFIG.SYS file is set to allow swapping.
  6360.  
  6361.  For information about swapping, see the "memman" command. Example
  6362.  
  6363.  To instruct MS OS/2 to put the swap file in the TEMP directory on your hard
  6364.  disk (drive C) and to reserve 1024K of free disk space on the swap drive,
  6365.  include the following line in your CONFIG.SYS file:
  6366.  
  6367.  swappath=c:\etemp 1024
  6368.  
  6369.  
  6370.  Syslog
  6371.  
  6372.    «OS2»
  6373.  
  6374.  syslog [/s | /r]
  6375.  
  6376.  Suspends or resumes system-event logging. When logging is on, MS OS/2
  6377.  records system events in the system log file.
  6378.  
  6379.  /s                                Suspends system-event logging.
  6380.  
  6381.  /r                                Resumes system-event logging.
  6382.  
  6383.  If you type syslog by itself, MS OS/2 starts the OS/2 Logging Facility
  6384.  utility and displays its main menu. You can use the /s and /r options if you
  6385.  have specified the log command in your CONFIG.SYS file.
  6386.  
  6387.  The syslog utility affects only the current OS/2 session. For information
  6388.  about how to control system-event logging for all sessions, see the "log"
  6389.  command.
  6390.  
  6391.  
  6392.  Threads
  6393.  
  6394.    «CONFIG»
  6395.  
  6396.  threads=x
  6397.  
  6398.  Specifies the number of threads MS OS/2 can run at one time. To use this
  6399.  command, place it in your CONFIG.SYS file.
  6400.  
  6401.  x                                 Specifies the number of threads. This
  6402.                                    number must be in the range 64 through
  6403.                                    512; the MS OS/2 installation program
  6404.                                    sets the number to 128. Because threads
  6405.                                    take up memory in your system, it is
  6406.                                    recommended that you not increase the
  6407.                                    number of threads unless your
  6408.                                    application tells you to do so or you
  6409.                                    receive a message telling you that you
  6410.                                    have run out of threads.
  6411.  
  6412.  A thread is part of an application or other process that MS OS/2 can
  6413.  schedule to run on its own. A process generally contains multiple threads,
  6414.  which act like small programs that perform particular tasks in each process.
  6415.  Approximately forty of the threads you specify with the threads command are
  6416.  system threads that MS OS/2 uses (the number may vary, depending on how your
  6417.  system is configured). These threads are not available to applications.
  6418.  
  6419.  
  6420.  Time
  6421.  
  6422.    «OS2»
  6423.  
  6424.  time [hours:minutes][:seconds[.hundredths]]
  6425.  
  6426.  Sets the system clock by specifying the current time.
  6427.  
  6428.  hours                             Specifies a number in the range 0
  6429.                                    through 23.)
  6430.  
  6431.  minutes                           Specifies a number in the range 0
  6432.                                    through 59.)
  6433.  
  6434.  seconds                           Specifies a number in the range 0
  6435.                                    through 59; the default value is 0.
  6436.  
  6437.  hundredths                        Specifies a number in the range 0
  6438.                                    through 99; the default value is 0.
  6439.  
  6440.  MS OS/2 keeps track of time in a 24-hour format and uses the time
  6441.  information to update directory listings whenever you create or change a
  6442.  file.
  6443.  
  6444.  You may use either colons (:) or periods (.) to separate the hours, minutes,
  6445.  and seconds. To separate hundredths, you must use a period.
  6446.  
  6447.  If you type time by itself, MS OS/2 displays the current time and then
  6448.  prompts you for a new time. If you do not want to change the time, just
  6449.  press ENTER.
  6450.  
  6451.    «DOS»
  6452.  
  6453.  Works the same way in the DOS session as it does in an OS/2 session.
  6454.  
  6455.  Example
  6456.  
  6457.  To set the system time to 1:36 P.M., type the following:
  6458.  
  6459.  time 13:36
  6460.  
  6461.  
  6462.  Timeslice
  6463.  
  6464.    «CONFIG»
  6465.  
  6466.  timeslice=x[,y]
  6467.  
  6468.  Sets the amount of time that MS OS/2 allocates to a thread before checking
  6469.  the priority of other threads. Time slices are the units of time that MS
  6470.  OS/2 uses to schedule its activities. To use this command, place it in your
  6471.  CONFIG.SYS file.
  6472.  
  6473.  x                                 Specifies the minimum length of the time
  6474.                                    slice, in milliseconds; the default
  6475.                                    value is 32.
  6476.  
  6477.  y                                 Specifies the maximum length of the time
  6478.                                    slice, in milliseconds. This number must
  6479.                                    be equal to or greater than x. If you do
  6480.                                    not specify y, MS OS/2 uses x as the
  6481.                                    maximum length also. If you do not
  6482.                                    include the timeslice command in your
  6483.                                    CONFIG.SYS file, the default value of y
  6484.                                    is 248.
  6485.  
  6486.  
  6487.  When timeslice is set to 32 (the default value), the process that is running
  6488.  in the foreground receives the most central-processing-unit (CPU) time. For
  6489.  more information about this topic, see the "maxwait" and "priority" commands
  6490.  and the Microsoft Operating System/2 User's Guide. Example
  6491.  
  6492.  To set the minimum length of the time slice to 45 milliseconds and the
  6493.  maximum length to 148 milliseconds, include the following line in your
  6494.  CONFIG.SYS file:
  6495.  
  6496.  timeslice=45,148
  6497.  
  6498.  
  6499.  Trace
  6500.  
  6501.    «OS2»
  6502.  
  6503.  trace [on|off] [eventcode|tdf [, eventcode|tdf] [...]] [/p:all|/p:pid[
  6504.  ,...]] [/c] [/s|/r]
  6505.  Turns the system trace on or off.
  6506.  
  6507.  on                                Starts system-event tracing.
  6508.  
  6509.  off                               Stops system-event tracing.
  6510.  
  6511.  eventcode                         Specifies a single event by using a
  6512.                                    decimal code number in the range 0
  6513.                                    through 255. You use event codes to
  6514.                                    selectively turn on or off the tracing
  6515.                                    of specific system events. You can
  6516.                                    specify more than one event code,
  6517.                                    separating them with commas.
  6518.  
  6519.  tdf                               Specifies a trace definition file. The
  6520.                                    filename must not include a drive, path,
  6521.                                    or filename extension.
  6522.  
  6523.  /p:all                            Turns tracing on or off for all present
  6524.                                    and future processes in the system.
  6525.  
  6526.  /p:pid                            Turns tracing on or off for only the
  6527.                                    processes specified. The system
  6528.                                    identifies a process by its hexadecimal
  6529.                                    process identification number (pid). You
  6530.                                    can specify more than one process by
  6531.                                    listing all their process identification
  6532.                                    numbers, separated by commas.
  6533.  
  6534.  /c                                Clears the current contents of the trace
  6535.                                    buffer.
  6536.  
  6537.  /s                                Suspends tracing temporarily but keeps
  6538.                                    the current specified set of trace
  6539.                                    points. This option cannot be used with
  6540.                                    the /r option.
  6541.  
  6542.  /r                                Resumes tracing with the currently
  6543.                                    specified trace points. This option
  6544.                                    cannot be used with the /s option.
  6545.  
  6546.  The system trace records actions, such as hardware interrupts or system
  6547.  functions, that MS OS/2 has taken or processed while running. These actions
  6548.  are known as events and are identified by event codes. The system-trace
  6549.  information can be useful if you are writing a program to run with MS OS/2.
  6550.  
  6551.  The trace utility is similar to the trace configuration command. However,
  6552.  the trace utility cannot create a trace buffer in which to store the trace
  6553.  information. Therefore, the utility does not work unless either the trace or
  6554.  the "tracebuf" configuration command is in your CONFIG.SYS file when you
  6555.  start your system.
  6556.  
  6557.  If you specify an invalid event code, MS OS/2 still traces the other events
  6558.  listed but also displays an error message. Example
  6559.  
  6560.  To trace events 0 and 1, and no other system events, first type the
  6561.  following to turn off the system trace:
  6562.  
  6563.  trace off
  6564.  
  6565.  Then type the following to turn on the trace for the events you want
  6566.  recorded:
  6567.  
  6568.  trace on 0, 1
  6569.  
  6570.  
  6571.  Trace
  6572.  
  6573.    «CONFIG»
  6574.  
  6575.  trace=on|off [eventcode[, eventcode][...]]
  6576.  
  6577.  Turns the system trace on or off. To use this command, place it in your
  6578.  CONFIG.SYS file.
  6579.  
  6580.  on                                Starts system-event tracing.
  6581.  
  6582.  off                               Stops system-event tracing. This is the
  6583.                                    default setting.
  6584.  
  6585.  eventcode                         Specifies a single event by using a
  6586.                                    decimal code number in the range 0
  6587.                                    through 255. You use event codes to
  6588.                                    selectively turn on or off the tracing
  6589.                                    of specific system events. You can
  6590.                                    specify more than one event code,
  6591.                                    separating them with commas.
  6592.  
  6593.  The system trace records actions, such as hardware interrupts or system
  6594.  functions, that MS OS/2 has taken or processed while running. These actions
  6595.  are known as events and are identified by event codes. The system-trace
  6596.  information can be useful if you are writing a program to run with MS OS/2.
  6597.  
  6598.  If you do not specify an event code, the trace command turns the system
  6599.  trace on or off for all events.
  6600.  
  6601.  If you specify an invalid event code, MS OS/2 still traces the other events
  6602.  listed but also displays an error message.
  6603.  
  6604.  If you include the trace command in your CONFIG.SYS file but do not use the
  6605.  "tracebuf" command to specify a size for the trace buffer, MS OS/2 sets
  6606.  aside 4 kilobytes of memory (the default size) for the trace buffer.
  6607.  
  6608.  You must include either the trace command or the "tracebuf" command in your
  6609.  CONFIG.SYS file in order for system tracing to work. Example
  6610.  
  6611.  To turn on the system trace for all events except those that have the event
  6612.  codes 31 through 34, include the following lines in your CONFIG.SYS file:
  6613.  
  6614.  trace=on
  6615.  trace=off 31,32,33,34
  6616.  
  6617.  
  6618.  Tracebuf (Trace Buffer)
  6619.  
  6620.    «CONFIG»
  6621.  
  6622.  tracebuf=x
  6623.  
  6624.  Sets the size of the system-trace buffer, where MS OS/2 stores information
  6625.  about system events that are being traced. To use this command, place it in
  6626.  your CONFIG.SYS file.
  6627.  
  6628.  x                                 Specifies the size, in kilobytes, of the
  6629.                                    trace buffer. This number must be in the
  6630.                                    range 1 through 63; the default value is
  6631.                                    4.
  6632.  
  6633.  If you include the "trace" command in your CONFIG.SYS file but do not use
  6634.  the tracebuf command to specify a size for the trace buffer, MS OS/2 sets
  6635.  aside 4 kilobytes of memory (the default size) for the trace buffer.
  6636.  
  6637.  You must include either the "trace" command or the tracebuf command in your
  6638.  CONFIG.SYS file in order for system tracing to work.
  6639.  
  6640.  
  6641.  Tracefmt (Trace Formatter)
  6642.  
  6643.    «OS2»
  6644.  
  6645.  tracefmt
  6646.  
  6647.  Displays the contents of the system-trace buffer.
  6648.  
  6649.  The tracefmt utility analyzes and formats each trace record in the
  6650.  system-trace buffer and then displays the formatted trace records. (You may
  6651.  want to redirect the tracefmt output to a file.) The utility displays these
  6652.  formatted trace records, which consist of heading information and other
  6653.  trace-event information, in reverse chronological order, starting with the
  6654.  most recent event.
  6655.  
  6656.  You must create the system-trace buffer when you start your system; to
  6657.  create the buffer, include either the "trace" or the "tracebuf"
  6658.  configuration command in your CONFIG.SYS file. If you have not done this,
  6659.  there is no buffer and the tracefmt utility has nothing to display.
  6660.  
  6661.  
  6662.  Tree
  6663.  
  6664.    «OS2»
  6665.  
  6666.  tree [drive:] [/f]
  6667.  
  6668.  Displays the path of each directory on a disk and lists all the
  6669.  subdirectories (and, as an option, all the files as well).
  6670.  
  6671.  drive:                            Specifies the drive that contains the
  6672.                                    disk for which you want to display the
  6673.                                    directory structure. If you do not
  6674.                                    specify a drive, the utility displays
  6675.                                    the directory structure of the disk in
  6676.                                    the current drive.
  6677.  
  6678.  /f                                Lists the names of all the files in each
  6679.                                    directory and subdirectory on the disk.
  6680.  
  6681.  
  6682.    «DOS»
  6683.  
  6684.  Works the same way in the DOS session as it does in an OS/2 session.
  6685.  
  6686.  Example
  6687.  
  6688.  To display a list of all the directories and files on the disk in drive B,
  6689.  one screenful at a time, type the following:
  6690.  
  6691.  tree b: /f | more
  6692.  
  6693.  
  6694.  Type
  6695.  
  6696.    «OS2»
  6697.  
  6698.  type [drive:][path]filename [...]
  6699.  
  6700.  Displays the contents of one or more text files, in the order specified,
  6701.  without modifying them.
  6702.  
  6703.  filename                          .LI Specifies the name of the text file
  6704.                                    you want displayed. You can specify
  6705.                                    multiple filenames, and you can use
  6706.                                    wildcard characters to specify groups of
  6707.                                    files with similar names.
  6708.  
  6709.  If you use the type command to display a file that contains tabs, MS OS/2
  6710.  expands all the tabs to eight spaces.
  6711.  
  6712.  If you use the type command to display a binary file or a file created by an
  6713.  application, you may see unusual characters, such as bells, formfeeds, and
  6714.  escape-sequence symbols, in addition to the text.
  6715.  
  6716.    «DOS»
  6717.  
  6718.  Works the same way in the DOS session as it does in an OS/2 session, except
  6719.  that in the DOS session you cannot specify multiple filenames, nor can you
  6720.  use wildcard characters.
  6721.  
  6722.  Example
  6723.  
  6724.  To display the contents of the file REPORT.JAN from the disk in drive B,
  6725.  type the following:
  6726.  
  6727.  type b:report.jan
  6728.  
  6729.  
  6730.  Unpack
  6731.  
  6732.    «OS2»
  6733.  
  6734.  unpack [drive:][path]filename [drive2:][path2] [/v]
  6735.  
  6736.  Decompresses and copies a compressed file.
  6737.  
  6738.  filename                          Specifies the name of the compressed
  6739.                                    file. This filename has an @ symbol as
  6740.                                    the third character of its extension.
  6741.  
  6742.  drive2:                           Specifies the drive you want the files
  6743.                                    to be copied to. If you do not specify a
  6744.                                    drive, the unpack utility uses the
  6745.                                    current drive.
  6746.  
  6747.  path2                             Specifies the directory you want the
  6748.                                    files to be copied to. If you do not
  6749.                                    specify a directory, the unpack utility
  6750.                                    uses the current directory on the
  6751.                                    specified drive. The utility always uses
  6752.                                    the original filename and extension as
  6753.                                    the destination filename.
  6754.  
  6755.  /v                                Checks whether the sectors that the
  6756.                                    files were written to can be read.
  6757.  
  6758.  The MS OS/2 installation program uses the "copy" command to copy
  6759.  uncompressed files from the installation disks to your system and uses the
  6760.  unpack utility to decompress and copy compressed files─those with an @
  6761.  symbol as the third character of their extension.
  6762.  
  6763.  The unpack utility also copies files that are not compressed, so you can use
  6764.  unpack to copy a disk that contains both kinds of files.
  6765.  
  6766.  The unpack utility uses the date, time, and any file attributes of the
  6767.  original, compressed file in the header of the uncompressed file.
  6768.  
  6769.    «DOS»
  6770.  
  6771.  Works the same way in the DOS session as it does in an OS/2 session.
  6772.  
  6773.  Example
  6774.  
  6775.  To decompress the compressed files on a floppy disk in drive A that contains
  6776.  both compressed and uncompressed files and then copy all the files on the
  6777.  disk to the root directory of your hard disk (drive C), type the following:
  6778.  
  6779.  unpack a:\* c:\
  6780.  
  6781.  
  6782.  VDISK.SYS
  6783.  
  6784.    «CONFIG»
  6785.  
  6786.  device=[drive:][path]vdisk.sys [vdisk-size][, sector-size][, entries]
  6787.  
  6788.  Directs MS OS/2 to load the VDISK.SYS device driver. To use this command,
  6789.  place it in your CONFIG.SYS file.
  6790.  
  6791.  When the VDISK.SYS device driver is loaded, it creates a virtual disk
  6792.  drive─that is, a disk drive simulated in memory. Information stored in
  6793.  memory can be accessed quickly.
  6794.  
  6795.  vdisk-size                        Specifies the size, in kilobytes, of the
  6796.                                    virtual disk drive. The default size is
  6797.                                    64K.
  6798.  
  6799.  sector-size                       Specifies the sector size, in bytes.
  6800.                                    This number must be 128, 256, or 512;
  6801.                                    the default value is 128.
  6802.  
  6803.  entries                           Specifies the number of directory
  6804.                                    entries. This number must be in the
  6805.                                    range 2 through 1024; the default value
  6806.                                    is 64.
  6807.  
  6808.  The maximum size of a virtual disk depends on the amount of available memory
  6809.  in your system, up to 4 megabytes. If the virtual-disk size specified is too
  6810.  large to fit in memory, the VDISK.SYS device driver will try to make a 16K
  6811.  virtual disk. This may result in a virtual disk with a different number of
  6812.  directory entries than you specified.
  6813.  
  6814.  When you specify a value for the number of directory entries, MS OS/2 rounds
  6815.  the value up to the nearest sector-size boundary. For example, if you give a
  6816.  value of 43 and your sector size is 512 bytes, MS OS/2 rounds 43 up to 48,
  6817.  which is the next multiple of 16 (there are sixteen 32-byte directory
  6818.  entries in 512 bytes).
  6819.  
  6820.  MS OS/2 recognizes the vdisk-size, sector-size, and entries arguments by
  6821.  their positions. If you omit vdisk-size or sector-size, you must type a
  6822.  comma before the next argument as a placeholder. (If you include all three
  6823.  arguments, you can use spaces instead of commas.)
  6824.  
  6825.  You must place the device=vdisk.sys command after any "device=extdskdd.sys\"
  6826.  commands in your CONFIG.SYS file. Example
  6827.  
  6828.  To set up a 64K virtual disk with 512-byte sectors and 32 directory entries,
  6829.  when VDISK.SYS is in the \OS12\DEV directory on drive C, include the
  6830.  following line in your CONFIG.SYS file:
  6831.  
  6832.  device=c:\os12\dev\vdisk.sys ,512,32
  6833.  
  6834.  
  6835.  Ver (Version)
  6836.  
  6837.    «OS2»
  6838.  
  6839.  ver
  6840.  
  6841.  Displays the MS OS/2 version number.
  6842.  
  6843.    «DOS»
  6844.  
  6845.  Works the same way in the DOS session as it does in an OS/2 session.
  6846.  
  6847.  
  6848.  Verify
  6849.  
  6850.    «OS2»
  6851.  
  6852.  verify [on|off]
  6853.  
  6854.  Turns write verification on or off.
  6855.  
  6856.  When verification is on, each time MS OS/2 writes a file to a disk it checks
  6857.  whether the sectors the information was written to can be read (that no
  6858.  information was written to bad sectors, for example) and displays an error
  6859.  message if it cannot successfully write the file to the disk. (Verifying
  6860.  does not mean comparing the information that MS OS/2 just wrote with the
  6861.  information that MS OS/2 just read.) The default setting is off.
  6862.  
  6863.  If you type verify by itself, MS OS/2 displays the current verification
  6864.  setting.
  6865.  
  6866.  This command affects only the current session.
  6867.  
  6868.    «DOS»
  6869.  
  6870.  Works the same way in the DOS session as it does in an OS/2 session.
  6871.  
  6872.  
  6873.  Vol (Volume Label)
  6874.  
  6875.    «OS2»
  6876.  
  6877.  vol [drive:] [...]
  6878.  
  6879.  Displays the volume label and the volume serial number of the specified
  6880.  disk, if they exist.
  6881.  
  6882.  drive:                            Specifies the drive containing the disk
  6883.                                    for which you want to know the label and
  6884.                                    serial number. You can see the labels
  6885.                                    and serial numbers of more than one disk
  6886.                                    by specifying more than one drive. If
  6887.                                    you do not specify a drive, MS OS/2
  6888.                                    displays the volume label and serial
  6889.                                    number of the disk in the current drive.
  6890.  
  6891.  If you are displaying volume labels and serial numbers for multiple drives
  6892.  and MS OS/2 cannot display this information for one of them (for example, if
  6893.  one of the drives you specified does not exist), MS OS/2 displays an error
  6894.  message and continues displaying the information for the rest of the drives.
  6895.  
  6896.  
  6897.  Disks formatted under versions of MS-DOS earlier than 4.0 do not have serial
  6898.  numbers.
  6899.  
  6900.    «DOS»
  6901.  
  6902.  Works the same way in the DOS session as it does in an OS/2 session, except
  6903.  that in the DOS session you cannot specify multiple drive names.
  6904.  
  6905.  Example
  6906.  
  6907.  To find out what the volume labels and serial numbers are for the disk in
  6908.  drive A and for your hard disk (drive C), type the following:
  6909.  
  6910.  vol a: c:
  6911.  
  6912.  
  6913.  Xcopy (External Copy)
  6914.  
  6915.    «OS2»
  6916.  
  6917.  xcopy [drive1:][path1][filename1] [drive2:][path2][filename2] [/s] [/e] [/p]
  6918.  [/v] [/a] [/m] [/f] [/d:date]
  6919.  
  6920.  Copies files and directories, including any subdirectories, from one disk to
  6921.  another.
  6922.  
  6923.  drive1:                           .LI Specifies the drive that contains
  6924.                                    the disk from which you want to copy
  6925.                                    files (the source disk). You can use
  6926.                                    this argument by itself, with path1, or
  6927.                                    with path1 and filename1. If you specify
  6928.                                    only drive1, the xcopy utility copies
  6929.                                    all the files in the current directory
  6930.                                    on that drive.
  6931.  
  6932.  path1                             .LI Specifies the directory where the
  6933.                                    files you want to copy are located. If
  6934.                                    you specify path1 without drive1 or
  6935.                                    filename1, xcopy copies all files in the
  6936.                                    specified directory on the current drive.
  6937.  
  6938.  filename1                         .LI Specifies the name of the file you
  6939.                                    want to copy. You can use wildcard
  6940.                                    characters to copy multiple files with
  6941.                                    similar names.
  6942.  
  6943.  drive2:                           .LI Specifies the drive that contains
  6944.                                    the disk to which you want to copy files
  6945.                                    (the destination disk). You can use this
  6946.                                    argument by itself, with path2, or with
  6947.                                    path2 and filename2. If you specify only
  6948.                                    drive2, the xcopy utility copies files
  6949.                                    to the current directory on that drive
  6950.                                    and uses the original filenames.
  6951.  
  6952.  path2                             .LI Specifies the directory you want the
  6953.                                    files copied to. If you specify path2
  6954.                                    without filename2, xcopy uses the
  6955.                                    original filenames.
  6956.  
  6957.  filename2                         .LI Specifies the filename to which you
  6958.                                    want to copy the file. You can use
  6959.                                    wildcard characters to give multiple
  6960.                                    files similar names.
  6961.  
  6962.  /s                                Copies directories and subdirectories,
  6963.                                    unless they are empty. If you omit this
  6964.                                    option, xcopy works within a single
  6965.                                    directory.
  6966.  
  6967.  /e                                Copies all subdirectories, even if they
  6968.                                    are empty. If you use this option, you
  6969.                                    must also use the /s option.
  6970.  
  6971.  /p                                Prompts you to confirm that you want to
  6972.                                    create each new file.
  6973.  
  6974.  /v                                Checks whether the sectors that the
  6975.                                    files and directories were written to
  6976.                                    can be read..
  6977.  
  6978.  /a                                Copies files that have their archive
  6979.                                    bits set, without modifying the archive
  6980.                                    bit of the original file.
  6981.  
  6982.  /m                                Copies files that have their archive
  6983.                                    bits set and turns off the archive bit
  6984.                                    of the original file.
  6985.  
  6986.  /f                                Specifies that the xcopy utility should
  6987.                                    not discard the extended attributes of a
  6988.                                    file if the destination file system does
  6989.                                    not support extended attributes. In this
  6990.                                    case, the utility does not copy the file.
  6991.  
  6992.  /d:date                           Copies files that were modified on or
  6993.                                    after the specified date. The format of
  6994.                                    date depends on the country code you are
  6995.                                    using; the default format is mm-dd-yy.
  6996.  
  6997.  All files or directories created by the xcopy utility have the same extended
  6998.  attributes as the original files or directories.
  6999.  
  7000.  If you omit the /f option when you use the xcopy utility to copy a file with
  7001.  extended attributes to a file system that does not support extended
  7002.  attributes, the utility copies the file and discards the extended
  7003.  attributes. If the file requires the extended attributes, xcopy does not
  7004.  copy the file but displays an explanatory message on the screen.
  7005.  
  7006.    «DOS»
  7007.  
  7008.  Works the same way in the DOS session as it does in an OS/2 session.
  7009.  
  7010.  Example
  7011.  
  7012.  To copy all the files, directories, and subdirectories, even empty ones, on
  7013.  the disk in drive A to the disk in drive B, and to verify each file as it is
  7014.  copied, type the following:
  7015.  
  7016.  xcopy a:\e b: /s /e /v
  7017.  
  7018.  
  7019.  INDEX
  7020.  ──────────────────────────────────────────────────────────────────────────
  7021.  
  7022.  
  7023.  
  7024.  
  7025.      A
  7026.  ANSI escape sequences
  7027.    DOS session
  7028.    OS/2 session
  7029.  Application
  7030.    command files, searching for
  7031.    starting in a new OS/2 session
  7032.  Attributes, extended
  7033.  
  7034.      B
  7035.  Background
  7036.    running a process in
  7037.    starting a program in
  7038.  Backup files
  7039.    making
  7040.    restoring
  7041.  Bad sectors
  7042.  Batch file
  7043.    calling one from another
  7044.    changing environment settings
  7045.    conditional command
  7046.    displaying a command
  7047.    displaying a message or comment
  7048.    displaying a message
  7049.    external batch processor
  7050.    going to a particular line
  7051.    performing a command on a set of files
  7052.    replaceable parameters, setting by name
  7053.    replaceable parameters, shifting
  7054.    restoring environment settings in
  7055.    suspending processing of
  7056.  Buffer
  7057.    memory
  7058.    trace, displaying contents
  7059.    trace, size
  7060.  
  7061.      C
  7062.  Cache
  7063.    disk, for FAT file system
  7064.    driver, for HPFS
  7065.  Calendar, system
  7066.  Changing
  7067.    settings for communication and output devices
  7068.  Character set
  7069.    extended, in DOS session
  7070.    in OS/2 session
  7071.  Clearing the screen
  7072.  Clock, system
  7073.  Code page
  7074.    active
  7075.    country
  7076.    DOS session
  7077.    preparing a device to use
  7078.    switching
  7079.    system
  7080.  Command files, searching for
  7081.  Command interpreter
  7082.    DOS session, specifying
  7083.    DOS session, starting
  7084.    ending
  7085.    OS/2 session, specifying
  7086.    OS/2 session, starting
  7087.    starting
  7088.  Command prompt, changing
  7089.  Command
  7090.    carrying out if a condition is true
  7091.    carrying out if error level returned
  7092.    carrying out if strings match
  7093.    displaying from batch file
  7094.    editing on command line
  7095.    going to, in a batch file
  7096.    help information
  7097.    performing on a set of files from a batch file
  7098.    starting a new OS/2 session and carrying out
  7099.    stopping
  7100.  Comment
  7101.    in a batch file
  7102.    in CONFIG.SYS file
  7103.  Communication devices, setting parameters for
  7104.  Compressed files, decompressing
  7105.  CONFIG.SYS file
  7106.    comment
  7107.    pausing on error
  7108.    setting environment variables
  7109.  Copying
  7110.    compressed files
  7111.    disks
  7112.    files and directories
  7113.    files
  7114.    to a different disk in the same drive
  7115.    to console
  7116.  Country subcode
  7117.  Country
  7118.  CTRL+BREAK
  7119.    command line
  7120.    CONFIG.SYS file
  7121.  CTRL+C
  7122.    command line
  7123.    CONFIG.SYS file
  7124.  
  7125.      D
  7126.  Data files
  7127.    searching for in DOS session
  7128.    searching for in OS/2 session
  7129.  Date, system
  7130.  Deleting
  7131.    directory
  7132.    files
  7133.    primary OS/2 partition
  7134.  Detaching a process
  7135.  Device driver
  7136.    device-dependent mouse
  7137.    device-independent mouse
  7138.    installing new
  7139.    loading
  7140.    mouse pointer
  7141.    serial port
  7142.    virtual disk drive
  7143.  Device, preparing to use code pages
  7144.  DIRECTION keys
  7145.  Directory
  7146.    changing setting in a batch file
  7147.    changing
  7148.    copying subdirectories
  7149.    creating
  7150.    deleting
  7151.    displaying listing
  7152.    moving
  7153.    renaming
  7154.    restoring setting in a batch file
  7155.    structure, damaged
  7156.    substituting a drive letter for
  7157.    tree, displaying
  7158.  Disk caching
  7159.    for FAT file system
  7160.    for HPFS
  7161.  Disk
  7162.    checking for errors
  7163.    comparing
  7164.    copying
  7165.    deleting primary OS/2 partition
  7166.    dump, memory
  7167.    external, accessing
  7168.    formatting/initializing
  7169.    joining to a directory
  7170.    logical drive letter
  7171.    recovering files on
  7172.    serial number, displaying
  7173.    virtual drive
  7174.    volume label, changing
  7175.    volume label, displaying
  7176.  Document file, viewing
  7177.  DOS session
  7178.    address of serial port
  7179.    ANSI escape sequences
  7180.    command interpreter
  7181.    data files, searching for
  7182.    drive letter, assigning different
  7183.    enabling
  7184.    extended character set
  7185.    memory, amount reserved
  7186.    prompt, changing
  7187.    quitting
  7188.    specifying the command interpreter
  7189.    substituting drive letter for drive and directory
  7190.  Drive
  7191.    and directory, substituting letter for
  7192.    changing setting in a batch file
  7193.    external, accessing
  7194.    letter, assigning different
  7195.    letter, logical
  7196.    renaming as a directory
  7197.    restoring setting in a batch file
  7198.  Dual boot
  7199.    DOS
  7200.    installation
  7201.    OS/2
  7202.  Dynamic-link libraries, searching for
  7203.  
  7204.      E
  7205.  Editing
  7206.    command line
  7207.    text files
  7208.  Enabling the DOS session
  7209.  Environment variable
  7210.    BOOKSHELF
  7211.    displaying current settings
  7212.    setting from command line
  7213.    setting in CONFIG.SYS file
  7214.  Environment
  7215.    changing settings in a batch file
  7216.    restoring settings in a batch file
  7217.  Error
  7218.    checking disk or partition for
  7219.    exception condition
  7220.    hard
  7221.    level, in batch file
  7222.    message, explanation
  7223.    message, full-screen
  7224.    pausing on, in CONFIG.SYS file
  7225.  Event logging
  7226.    command line
  7227.    CONFIG.SYS file
  7228.  Event tracing
  7229.    command line
  7230.    CONFIG.SYS file
  7231.  Exception condition
  7232.  Extended attributes
  7233.  
  7234.      F
  7235.  File control blocks
  7236.  File system
  7237.    FAT, disk caching
  7238.    HPFS
  7239.    installable
  7240.  File
  7241.    appending
  7242.    backup, making
  7243.    backup, restoring
  7244.    carrying out a command if filename exists
  7245.    comparing
  7246.    copying
  7247.    decompressing
  7248.    deleting
  7249.    displaying by screenful
  7250.    displaying contents
  7251.    displaying directory listing
  7252.    editing
  7253.    extended attributes
  7254.    flags
  7255.    log
  7256.    moving
  7257.    performing a command on a set of, from a batch file
  7258.    printing
  7259.    recovering
  7260.    renaming
  7261.    replacing
  7262.    restoring
  7263.    searching for text string
  7264.    sorting
  7265.    swap
  7266.    unpacking
  7267.    updating
  7268.    write verification
  7269.  Filename, changing
  7270.  Flags
  7271.    archive
  7272.    read-only
  7273.  Foreground, starting a program in
  7274.  Formatting a disk or partition
  7275.  
  7276.      H
  7277.  Hard disk, deleting primary OS/2 partition
  7278.  Hard error
  7279.  Help information
  7280.  High-performance file system
  7281.    cache driver
  7282.    installing driver
  7283.  
  7284.      I
  7285.  Input/output privilege
  7286.  
  7287.      K
  7288.  Keyboard
  7289.    code
  7290.    country-specific layout
  7291.    preparing to use code pages
  7292.  Keys, DIRECTION
  7293.  
  7294.      L
  7295.  Label
  7296.    going to, in a batch file
  7297.    volume, changing
  7298.    volume, displaying
  7299.  Language group, setting
  7300.  Lazy writing
  7301.  Libraries, dynamic-link, searching for
  7302.  Log facility
  7303.  Log file
  7304.  
  7305.      M
  7306.  Memory
  7307.    buffers in
  7308.    creating dump disk
  7309.    DOS session
  7310.    management
  7311.    swap file
  7312.    swapping and moving segments
  7313.    virtual disk drive
  7314.  Message
  7315.    displaying from batch file
  7316.    error, explanation of
  7317.  Modem, setting parameters for
  7318.  Monitor, preparing to use code pages
  7319.  Mouse
  7320.    driver, device-dependent
  7321.    driver, device-independent
  7322.    model
  7323.    pointer, loading driver for
  7324.  Moving
  7325.    file or directory
  7326.    memory segments
  7327.  
  7328.      O
  7329.  OS/2 session
  7330.    ANSI escape sequences
  7331.    command interpreter
  7332.    data files, searching for
  7333.    prompt, changing
  7334.    quitting
  7335.    specifying the user interface
  7336.    starting new session
  7337.  
  7338.      P
  7339.  Parameters
  7340.    for communication and output devices, setting
  7341.    replaceable, setting by name
  7342.    replaceable, shifting
  7343.    replaceable, using
  7344.  Partition
  7345.    checking for errors
  7346.    deleting primary OS/2
  7347.    formatting
  7348.  Patch, code, inserting in program
  7349.  Path
  7350.    changing settings in a batch file
  7351.    data files, DOS session
  7352.    data files, OS/2 session
  7353.    displaying directory tree
  7354.    dynamic-link libraries
  7355.    restoring setting in a batch file
  7356.    setting
  7357.    swap file
  7358.  Pausing
  7359.    batch-file processing
  7360.    on error in CONFIG.SYS file
  7361.  Pointer, mouse, loading driver for
  7362.  Port
  7363.    COM
  7364.    LPT
  7365.    parallel printer, configuring
  7366.    PRN
  7367.    serial, configuring
  7368.    serial, device driver
  7369.    serial, redirecting output to
  7370.    serial, setting the address for DOS applications
  7371.  Printer
  7372.    adding
  7373.    parallel, configuring
  7374.    parallel, preparing to use code pages
  7375.    serial, redirecting output to
  7376.    setting parameters for
  7377.  Printing
  7378.    file
  7379.    spooling
  7380.  Priority
  7381.    maximum time before increasing
  7382.    setting
  7383.    time slice
  7384.  Process
  7385.    input/output privilege
  7386.    priority, maximum time before increasing
  7387.    priority, setting
  7388.    running in the background
  7389.    status
  7390.    stopping
  7391.    threads
  7392.  Processor, external batch
  7393.  Program
  7394.    inserting a code patch
  7395.    starting in a new OS/2 session
  7396.    starting in the background
  7397.    starting in the foreground
  7398.  Prompt, command, changing
  7399.  Protected shell
  7400.  
  7401.      R
  7402.  Real-mode size
  7403.  Redirecting output to a serial device
  7404.  Renaming files and directories
  7405.  Replaceable parameters
  7406.    setting by name
  7407.    shifting
  7408.    using
  7409.  Replacing files
  7410.  Restoring backup files
  7411.  
  7412.      S
  7413.  Screen
  7414.    clearing
  7415.    setting parameters for
  7416.  Screenful, displaying file by
  7417.  Searching for a text string in files
  7418.  Sectors, bad
  7419.  Shell, DOS session
  7420.  Sorting input
  7421.  Spooling
  7422.  Start-up, system, pausing on error
  7423.  Starting
  7424.    command interpreter
  7425.    program in the background
  7426.  Stopping an activity
  7427.  Subcode, country
  7428.  Subdirectories
  7429.    copying
  7430.    displaying directory tree
  7431.  Swap file
  7432.  Swapping memory segments
  7433.  System
  7434.    dual boot
  7435.    event logging, command line
  7436.    event logging, CONFIG.SYS file
  7437.    start-up, pausing on error
  7438.    trace buffer, displaying contents
  7439.    trace buffer, size
  7440.    trace, command line
  7441.    trace, CONFIG.SYS file
  7442.  
  7443.      T
  7444.  Text
  7445.    editor
  7446.    string, searching for in files
  7447.  Threads
  7448.    displaying status
  7449.    number of
  7450.    time slice
  7451.  Time slice
  7452.  Time, system
  7453.  Trace
  7454.    buffer, displaying contents
  7455.    buffer, size
  7456.    command line
  7457.    CONFIG.SYS file
  7458.  Tree, directory
  7459.  
  7460.      U
  7461.  User interface, specifying
  7462.  
  7463.      V
  7464.  Variable
  7465.    batch file
  7466.    environment, BOOKSHELF
  7467.    environment, displaying current settings
  7468.    environment, setting from command line
  7469.    environment, setting in CONFIG.SYS file
  7470.  Verification, write
  7471.  Version number, displaying
  7472.  Virtual disk drive
  7473.  Volume label
  7474.    changing
  7475.    displaying
  7476.  
  7477.      W
  7478.  Write verification
  7479.  
  7480.