home *** CD-ROM | disk | FTP | other *** search
/ Software Collection (I) / TOOLS.iso / d07 / 4.img / CMDREF.IN@ / CMDREF.INF (.txt)
Encoding:
OS/2 Help File  |  1992-04-09  |  153.3 KB  |  6,004 lines

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