home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpdos.zoo / helpfile
Encoding:
Text File  |  1990-10-24  |  105.3 KB  |  2,638 lines

  1. #HELP
  2. HELP  - obtain help on DOS commands
  3.  
  4. SYNOPSIS
  5.    help [-1facpbqh] [-i[n]] [-k|K keyword ...] [keyword ... ]
  6.  
  7. DESCRIPTION
  8.    help is a program to retrieve and display entries from a help
  9.    file. It can operate in a full screen interactive browsing mode, or a
  10.    command line mode which writes only to standard output and should work
  11.    on generic MSDOS computers.  The helpfiles are pure ascii and can easily
  12.    be edited and extended for local variations in commands.
  13.  
  14. INTERACTIVE HELP
  15.    If HELP is entered without any commands specified, it enters a
  16.    full screen interactive help browsing mode.  A window is placed on the
  17.    screen with a sorted list of all available help entries.  There is
  18.    always one entry highlighted, and pressing <return> will retrieve help
  19.    entry for this item.  If environment variable PAGER is defined,
  20.    it is assumed to be a program to be used for displaying the help entry,
  21.    otherwise the entry is copied directly to the screen.  Options allow
  22.    the action to be customised for you favourite pager.  A program used
  23.    for the PAGER must be able to read from a pipe.  Selection from
  24.    the list continues until <ESC> is pressed.
  25.  
  26.    NOTE: use of a PAGER variable may slow the response noticeably,
  27.    unless the PAGER program is placed in RAM disk, and the path set
  28.    to include this. The command processor (COMMAND.COM or other) is not
  29.    used for this (PAGER is executed directly) When interactive mode
  30.    is used, the screen will be saved and restored after use.  In addition,
  31.    the temporary file necessary for this operation may be placed in a RAM
  32.    disk by setting variable TMPDIR or TMP to a suitable location.
  33.  
  34. The following keys are recognised in interactive mode:
  35.    <return>     select the current item
  36.    <space>
  37.  
  38.    <up>         move current line up or down, scrolling as needed
  39.    <down>
  40.  
  41.    <home>       jump to beginning and end of list, respectively
  42.    <end>
  43.  
  44.    <pageup>     scroll the list one window at a time
  45.    <pagedown>
  46.  
  47.    A-Z          alphabetic keys will scroll the list to the first
  48.                 entry beginning with the letter you type, or the
  49.                 following entry if none matches
  50.  
  51.    F1           pop up a help window describing key actions
  52.  
  53.    F2           toggle between displaying name, or full synopsis line
  54.  
  55.    F3           toggle synopsis line on current item only
  56.  
  57.    F4           extract a list of cross references from the current
  58.                 item, and open a new selection window.  This can be used
  59.                 recursively
  60.  
  61.    F10          window goes into move/resize mode.  Use arrow keys to
  62.                 move it, shift-arrows to resize left and bottom edges,
  63.                 <esc> or F10 to continue (see below)
  64.  
  65.    <ESC>        Exit the program and restore screen
  66.  
  67.    Moving/Resizing the Window:
  68.         The window containing the list of keywords can be moved or resized
  69.    by pressing F10.  This ability is for the benefit of other programs
  70.    that call help as a child process, with a custom help file.  The
  71.    window can be moved and resized with the following keys:
  72.      arrow keys:
  73.         move window 1 space at a time in the appropriate direction
  74.      control-arrow keys:
  75.         move window to extreme edge of screen in the appropriate direction
  76.      shift-arrow keys
  77.         resize by dragging right and bottom edges of the window
  78.      control-shift-arrow keys
  79.         resize by moving right and bottom edges maximum possible distance
  80.      ESC
  81.         redraw window in the current position and continue with program
  82.      F10
  83.         redraw window in the current position and continue with program, but
  84.         attempt to "lock" window position so that a subsequent call to this
  85.         program will use the new window position.  This function uses the
  86.         "Interapplication Communication Area" (ICA) in the BIOS data block.
  87.         If any other program is also using the ICA, help will NOT overwrite
  88.         it's contents.  The ICA may contain garbage when the machine is
  89.         first booted, so a small program (clearica.com) is provided to fill
  90.         the ICA with zeroes.  The ICA is not documented in the PS/2 BIOS and
  91.         this function may not work.  Using F10 should not cause problems with
  92.         the PS/2, but clearica may cause problems.
  93.  
  94. OPTIONS (apply to interactive mode only)
  95.   -c screen clear between each display.  Use this if you
  96.      specify a pager which does not clear the screen before starting.
  97.   -K key key ... apropos keyword (see below) with interactive browsing.
  98.       The list displayed for selection contains only those items which contain
  99.       one of the keywords in the synopsis.
  100.   -p pauses after each display.  Use this if you specify a pager
  101.      that does not pause at the end of the file (e.g. DOS MORE
  102.   -q quiet mode - flash instead of beeping
  103.   -b bios used for screen output instead of directvideo (use if
  104.      compatiblity problems arise with default action)
  105.  
  106. COMMAND LINE HELP
  107.    If the format "help command" is used, then the helpfile is searched
  108.    for "command", and if found, it is printed to standard output.
  109.    Multiple commands may be listed and they will be searched for in
  110.    order.
  111.  
  112.    If the format "help -k keyword" is used, the 1-line synopses for
  113.    each help entry are searched for "keyword" and all those that match
  114.    are copied to standard output.
  115.  
  116.    The command line help uses pure DOS i/o and should work on any generic
  117.    MS-DOS machine, including non-IBM compatibles.
  118.  
  119. OPTIONS (apply to non-interactive mode)
  120.    -i Print index of entries in help file.  If followed by a number
  121.       <n>, print <n> keywords per line (default 5).
  122.    -1 Print single file index of entries in help file, with no header
  123.    -k key key ...
  124.       Print synopsis of all entries related to <keyword>. All
  125.       command line arguments after -k are taken to be keywords for
  126.       synopsis search rather than entries to display full text
  127.       for.  The synopsis search is simpleminded, no regular
  128.       expressions or boolean combinations of keywords.
  129.    -f Force rebuild of index files
  130.    -h Print 1 page summary of program
  131.    -a Ansi_mode. Do NOT enter interactive mode if no commands are
  132.       listed (for use on machines for which this causes trouble).  If
  133.       no commands are listed, then "HELP" is looked up instead.
  134.  
  135. DESCRIPTION of HELPFILES
  136.    The helpfile consists of one or more ascii files, with the index
  137.    words (and aliases) marked as explaied below.  The files are treated
  138.    effectively as though concatenated.  An index is built and stored in
  139.    a separate file whenever help detects that the index is out of
  140.    date with respect to the helpfile.  The helpfile may be edited with
  141.    any text editor.  The file supplied has brief descriptions of most of
  142.    the MSDOS 4.01 and earlier commands.  A 1-line description of every
  143.    help entry is also stored in the index file. This may be searched for
  144.    keywords by using the "apropos" command: help -k keyword
  145.  
  146.    The commands and keywords are not case sensitive.  All output is
  147.    to standard output which may be redirected to a file or printer.
  148.    Some of the longer entries exceed one screen and may be piped
  149.    through "more" or any other pager.
  150.  
  151.    The default directory for the help file is "/lib".  This may be
  152.    overridden by setting the environment variable HELPDIR
  153.  
  154.    The default name for the help file is "helpfile".  This may be
  155.    overridden by setting the environment variable HELPFILE.
  156.    HELPFILE may contain a list of file names separated by ";" and
  157.    HELP will cycle through each in turn. This allows help files for
  158.    different types of programs to be maintained in logical groupings, but
  159.    searched as if they were a single file.  They must all reside in the
  160.    same directory.  If any files are not present, a diagnostic will be
  161.    displayed but the others will be processed.
  162.  
  163.    The index file for each help file is created by appending .idx to
  164.    the data file name.  The data file should therefore have no
  165.    extension.
  166.  
  167. The format for the help files is:
  168.      # keyword [,alias ,alias ...] [#xref #xref ...]
  169.      keyword - 1 line description to be used by the -k option
  170.       ...
  171.      any number of lines of text, up to EOF or next # at start of
  172.      line ...
  173.  
  174.      Where: keyword - primary index for this help entry
  175.             alias   - alternate index terms for this help entry
  176.             #xref - keywords prepended by "#" are cross-references
  177.                     used by the F4 command in interactive mode.
  178.      All items on the index line are space or comma delimited, and the
  179.      line may be up to 134 characters.
  180.  
  181.    In all of the descriptions of command usage:
  182.  
  183.    [brackets] indicates optional items.
  184.    "..."      indicates that the previous parameter may be repeated.
  185.    "d:"       represents a valid drive letter (with colon)
  186.    "path"     represents a directory path
  187.    "filename" is a DOS filename (with extension)
  188.    "filespec" is a DOS filename optionally with "*" and "?" wildcards
  189.    "nnn"      is generally a numeric parameter to be supplied
  190.  
  191.    The help files use the format in the MKS toolkit help, of which
  192.    this was originally a clone.  See the documentation file for more
  193.    information
  194.  
  195. FILES
  196.    /lib/helpfile       default datafile containing help info
  197.    /lib/helpfile.idx   default index file
  198.  
  199.    HELPDIR  Environment variable - directory for helpfile
  200.    HELPFILE Environment variable - alternate name(s) for helpfile
  201.    PAGER    Program to use for displaying help entries
  202.    HELP     If set, is parsed as a command line argument before the
  203.             other arguments.
  204.  
  205. BUGS
  206.    It would be useful if the last help entry viewed were to remain on the
  207.    screen at exit.  Since the help program has no control over which pager
  208.    is used, this is not always possible.  It is also not possible to preserve
  209.    the screen when recursive calls are made to the cross-reference feature.
  210.    In general, for any given pager, the best combination of -c and -p
  211.    options will need to be determined empirically.
  212.  
  213. AUTHORS
  214.      Original Author:
  215.        uwmacc!harvard!killer!wnp (Wolf Paul)
  216.  
  217.      Environment variable handling by:
  218.        plocher@uwspan.uucp (John Plocher)
  219.  
  220.      Addition of all -options, interactive mode, multiple helpfiles
  221.        and pretty much rewrote everything.
  222.        richard@calvin.spp.cornell.edu (Richard Brittain)
  223.         School of Electrical Engineering, Upson Hall
  224.         Cornell University, Ithaca NY 14853
  225.  
  226.      Code for the popen/pclose routines was taken from a BBS and it
  227.      bears no author name.
  228.  
  229.      Permission is granted to copy and use the compiled program and
  230.      documentation provided all copyright information is retained.
  231.  
  232.                Copyright 1990 by Richard Brittain
  233.  
  234. # ANSI, ANSI.SYS #DEVICE #CONFIG.SYS
  235. ANSI.SYS - a device driver with extended screen and keyboard features.
  236.  
  237. COMMAND TYPE: External                  VERSION: 2.0 and up
  238.  
  239. USE: DEVICE = ANSI.SYS [/X]
  240.  
  241. This device driver allows screen output via DOS calls to make use of
  242. ansi standard escape sequences to manipulate the screen.  This allows
  243. programs to perform full screen display management without needing to
  244. manipulate the video memory directly. It is useful for running
  245. programs developed on terminal-based computers (such as unix systems).
  246. The keyboard may also be remapped so that a keypress can generate any
  247. desired sequence of characters.  By default, no key mapping is done.
  248. Most commercial software does NOT require this driver to be loaded.
  249.  
  250. /X (version 4.0) allows the duplicate function keys on the 101-key
  251.    extended keyboards to be remapped separately, otherwise they are
  252.    considered identical.
  253.  
  254. NOTE: The ANSI.SYS device driver must be placed in the CONFIG.SYS file
  255. and be used in conjunction with the DEVICE = DRIVER command.
  256.  
  257. # APPEND #PATH
  258. APPEND - locate files other than .COM .EXE .BAT by a search path
  259.  
  260. Locates files outside of current directory that have extensions other
  261. than .COM, .EXE, and .BAT.
  262.  
  263. COMMAND TYPE: Internal and External     VERSION: 3.3 and up
  264.  
  265. USE:
  266. (FIRST USE ONLY)
  267.     APPEND [/X][/E]
  268. or (to specify directories explicitly)
  269.     APPEND d:path[;[d:]path ...]
  270.  
  271. (SUBSEQUENT USES)
  272.      APPEND d:path[;[d:]path ...]
  273. or (to delete appended paths)
  274.      APPEND [;]
  275. or (to modify action with certain commands - see below)
  276.      APPEND [path] [/X:[OFF|ON]] [/path:[OFF|ON]]
  277.  
  278. d:path specifies the path to search. Paths cannot be specified the
  279.    first time the APPEND command is loaded if either /X or /E are also
  280.    specified.
  281. ;  to separate the APPEND paths or to request the list to be reset to
  282.    null if the semi-colon is the only parameter.
  283. /E is used to keep the APPEND paths in the DOS environment, similar to
  284.    the PATH command.  APPEND searches the environment on each call to
  285.    find the path. If the /E is not specified, the path string is held
  286.    within the APPEND command.  The paths are not stored in the
  287.    environment and can only be viewed or changed by using the APPEND
  288.    command.
  289. /X to process SEARCH FIRST, FIND FIRST, and EXEC functions.  Commands
  290.    such as COMP and DIR use the SEARCH FIRST functions to search for
  291.    files.  Commands such as BACKUP, RESTORE, and TREE use the FIND
  292.    FIRST function to locate files.  DOS uses the EXEC function any
  293.    time a command is entered.
  294.    The following functions are processed by APPEND with or without /X:
  295.    OPEN FILE, OPEN HANDLE, GET FILE SIZE
  296.  
  297. NOTE: If APPEND has been loaded with /X, before using BACKUP or
  298. RESTORE, APPEND must be issued using null (;).
  299.  
  300. MSDOS 4.x  The extra parameters /x:off, /x:on are available to toggle
  301.    the setting of this function.  Individual paths may be disabled or
  302.    enabled from APPEND processing with the /path:on, /path:off
  303.    parameters.
  304.  
  305. NOTE: /X and /E can only be specified on the first invocation of the
  306.    APPEND command. APPEND must be used before ASSIGN if you intend to
  307.    use the ASSIGN command.
  308.  
  309. The main use of APPEND is to allow applications to access auxiliary
  310. files without needing run from the directory where those files are
  311. stored. The command processor finds the application itself (.COM, .EXE
  312. or .BAT) via the PATH command.  The APPEND paths then allow the
  313. application to locate other files (such as dictionary or configuration
  314. files).
  315.  
  316. SEE ALSO: PATH
  317.  
  318. # ASSIGN #SUBST #JOIN
  319. ASSIGN - Causes a request for one drive to be routed to another drive.
  320.  
  321. COMMAND TYPE: External                  VERSION: 2.0 and up
  322.  
  323. USE: ASSIGN [x [=] y[...]]
  324.  
  325. Requests for drive 'x' are routed to drive 'y'.
  326. ASSIGN entered without parameters will reset any ASSIGNments.
  327.  
  328. EXAMPLE: ASSIGN A=C
  329.    After issuing this command, any requests for drive A: will access
  330. drive C:. e.g.  DIR A: will list the files on drive C:.
  331.    ASSIGN is provided to allow programs written for a specific drive
  332. (usually a: or b:) to be used on other drives.  Commands which require
  333. information about the drive (backup, restore, label, join, subst,
  334. print) should not be used on ASSIGNed drives.  ASSIGN should not be
  335. used except where needed for a particular program.  The SUBST command
  336. is the preferred method of reassigning drives and/or paths.  FORMAT
  337. and DISKCOPY ignore drive reassignments.
  338.  
  339. SEE ALSO: SUBST
  340.  
  341. # ATTRIB #BACKUP #XCOPY
  342. ATTRIB - Set or display the ARCHIVE or READ-ONLY attributes on a file.
  343.  
  344. COMMAND TYPE: External                  VERSION: 3.0 and up
  345.  
  346. USE:  ATTRIB [+R|-R][+A|-A][d:][path] [filename][/S]
  347.  
  348. +R sets the file attribute to READ-ONLY.
  349. -R removes the READ-ONLY file attribute, allows updating of the file.
  350. +A sets the archive bit.
  351. -A resets the archive bit.
  352.  
  353. d: path filename specifies the file whose attributes will be changed.
  354.    (wildcards may be specified)
  355.  
  356. /S to process all files in the specified directory and its
  357.    subdirectories.  (This switch is valid for DOS 3.3 and later
  358.    versions).
  359.  
  360. EXAMPLE: ATTRIB +R HELP.COM
  361.  
  362. The above example sets the file 'HELP.COM' to a READ-ONLY status. The
  363. archive attribute is set whenever a file is modified, and is used by
  364. BACKUP, RESTORE and XCOPY to determine whether to process files based
  365. on their "modified" status.  Other non-MSDOS backup programs also may
  366. examine this attribute.  Backup and copy programs may or may not
  367. remove the archive bit, depending on settings.
  368.  
  369. SEE ALSO: BACKUP, XCOPY
  370.  
  371. # AUTOEXEC, AUTOEXEC.BAT #CONFIG.SYS #SHELL
  372. AUTOEXEC.BAT - batch file run whenever the system is booted.
  373.  
  374. COMMAND TYPE: External                  VERSION: 1.0 and up
  375.  
  376. USE: AUTOEXEC
  377.  
  378. If a batch file named AUTOEXEC.BAT exists on the drive used to start
  379. MSDOS, then it is executed by the system when the boot procedure is
  380. completed.  It is also executed if a new primary command processor is
  381. loaded.  The primary use of AUTOEXEC is to run programs which are
  382. required whenever the computer is used, so that you do not have to
  383. enter them each time.  For example, you may wish to load APPEND and
  384. PRINT.  It can also be used to set PATH and PROMPT, any other
  385. environment variables you usually use, and load any RAM-resident
  386. software.
  387.  
  388. EXAMPLE:
  389. PATH C:\LOCAL\BIN;C:\BIN;C:\DOS C:\TC;C:\DBASE;C:\WP50
  390. PRINT /D:LPT1 /B:512
  391. PROMPT $e[s$e[1;69H$e[7m$t$h$h$h$e[0m$e[u$p$g
  392. SET COMSPEC=C:\DOS\COMMAND.COM
  393. VER
  394.  
  395. SEE ALSO: CONFIG.SYS, SHELL
  396.  
  397. # BACKUP #RESTORE
  398. BACKUP - Backs up files from one disk to another.
  399.  
  400. COMMAND TYPE: External                  VERSION: 2.0 and up
  401.  
  402. USE:  BACKUP d:[path][filename] d:[/S][/M][/A][/D:mm-dd-yy]
  403.       [/T:hh:mm:ss][/F:size] [/L[:[d:[path]filename]]]
  404.  
  405. d:\path\filename specifies the source drive (the drive that contains
  406.    the files that you want to back up).
  407.  
  408. The second d: specifies the destination drive (the drive to back up
  409. the files to).
  410.  
  411. /S includes all subdirectories in the backup.
  412. /M backs up files that have been modified since the last backup (files
  413.    with the archive bit set)
  414. /A backs up additional files to a diskette with back up files already
  415.    on it.  Without this option, all files on the backup diskette will
  416.    be destroyed.
  417. /D:mm-dd-yy backs up files that have been modified since a specific
  418.    date.
  419.  
  420. NOTE: The following options /T, /F, and /L are new to DOS 3.3.  Do not
  421. try them with earlier versions.
  422.  
  423. /T:hh:mm:ss backs up files that have been modified on or after the
  424.    specified time on the date specified.
  425. /F:size formats the target diskette if it is not already formatted.
  426.    "size" indicates the type of disc for the formatting program. The
  427.    following may be accepted: 160,180,320,360,1200 (kb - 5.25" discs)
  428.    or 720,1440 (kb - 3.5"discs)
  429. /L creates a log.  If a file name is not specified, the default is
  430.    BACKUP.LOG, and the file is stored in the root directory of the
  431.    source drive.  If a log file exists, the information is appended to
  432.    the end of that file.  The first record of the file contains:
  433.         The date of the backup    The time of the backup
  434.    Subsequent records contain:
  435.         Diskette number of the backed up file. Full path and file name
  436.         of each backed up file.
  437.  
  438. Files created using the BACKUP command must be RESTOREd to be useful.
  439.  
  440. EXAMPLE: BACKUP C:\*.* A:/S
  441.  
  442. This example will back up all files (in all subdirectories) on drive
  443. C: to drive A:.
  444.  
  445. NOTES: Do not use on drives which have been ASSIGNed, SUBSTituted or JOINed.
  446.  
  447. SEE ALSO: RESTORE
  448.  
  449. # BREAK
  450. BREAK - Enables or disables extended CTRL-BREAK checking.
  451.  
  452. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  453.  
  454. USE: BREAK = [ON] [OFF]
  455.  
  456. ON and OFF are the allowable settings.  The default setting is BREAK =
  457. OFF.  With no argument BREAK reports the current setting.
  458.  
  459. When BREAK = OFF, DOS checks for a CTRL-BREAK or CTRL-C only during
  460. standard input operations, standard output operations, print
  461. operations, and auxiliary operations.  When BREAK is on, DOS will
  462. respond to CTRL-BREAK at any time.  Note that some programs may change
  463. this setting themselves.
  464.  
  465. NOTE: BREAK may be specified in CONFIG.SYS
  466.  
  467. # BUFFERS
  468. BUFFERS - Sets the number of disk buffers allowed.
  469.  
  470. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  471.  
  472. USE: BUFFERS = n[,m] [/x]
  473.  
  474. n  must be a value from 1 to 99 specifying the number of buffers to be
  475.    used.  The default value is two buffers.
  476.  
  477. MSDOS 4.x only:
  478. m  is is maximum number of sectors that can be read or written in one
  479.    operation [1-8], default is 1
  480. /x places the buffers in expanded memory (the number of buffers may
  481.    then be up to 10000)
  482.  
  483. For disk intensive applications such as a database, more buffers are
  484. recommended.  Adding more buffers can speed up certain applications.
  485. However, if you set the number of buffers over 20 it may begin to slow
  486. down applications.
  487.  
  488. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  489. normal DOS command.
  490.  
  491. # CALL
  492. CALL - call a batch file from within another batch file
  493.  
  494. COMMAND TYPE: Internal                  VERSION: 4.0 and up
  495.  
  496. USE: CALL [d:][path][batchfile [arguments]
  497.  
  498. d:path batchfile is the batchfile to be executed, followed by any
  499. arguments to be used by the called file.
  500.  
  501. When the called file terminates, the calling file continues executing.
  502. A batch file may call itself recursively, but there should be a
  503. terminating condition at some point.  Do not use pipes or redirection
  504. in the call statement.
  505.  
  506. # CHCP #NLSFUNC #COUNTRY
  507. CHCP - Selects the code page that DOS will use for country specific devices
  508.  
  509. CHCP selects that code page for as may devices as possible. This is a
  510. system level command, while MODE is a device level command.
  511.  
  512. COMMAND TYPE: Internal                  VERSION: 3.3 and up
  513.  
  514. USE: CHCP [nnn]
  515. [nnn] specifies the desired code page. If omitted, the currently
  516. active code page and all prepared code pages are reported.
  517.  
  518. NOTES:
  519.  1.  The NLSFUNC command must be loaded prior to issuing the CHCP
  520.      command.  See the NLSFUNC command for more information.
  521.  2.  If a device driver has not been prepared for the requested code
  522.      page, CHCP cannot select the code page for that device.  Refer to
  523.      the MODE command in this chapter.
  524.  3.  This command may need to access the COUNTRY.SYS file.  If the
  525.      file cannot be found, a FILE NOT FOUND message is displayed.
  526.      Using the COUNTRY= statement in the CONFIG.SYS file or the
  527.      NLSFUNC command, you can tell DOS where to find COUNTRY.SYS.
  528.  
  529. # CHDIR,CD #MKDIR #RMDIR
  530. CHDIR, CD - Displays or changes the current working directory.
  531.  
  532. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  533.  
  534. USE: CHDIR [d:][path]
  535.  or  CD [d:][path]
  536.  
  537. d: path specifies the new drive and directory that will be made
  538.    current.
  539.  
  540. If no parameters are used then the current drive and directory are
  541. displayed.  The root directory is represented by "\".  A path
  542. beginning with \ is taken to be relative to the root directory, while
  543. any other path is relative to the current directory.  The parent
  544. directory can be abbreviated to ".."
  545.  
  546. # CHKDSK #RECOVER
  547. CHKDSK - Analyzes the files and directories on a disk
  548.  
  549. Chkdsk checks the disk directory for self consistency and displays the
  550. total and available disk and RAM memory.
  551.  
  552. COMMAND TYPE: External                  VERSION: 2.0 and up
  553.  
  554. USE:  CHKDSK [d:][path][filename] [/F][/V]
  555.  
  556. d: path filename specifies a filename to check.  If a filename is
  557.    specified, CHKDSK will report the number of non-contiguous areas
  558.    occupied by the file.  Access to non-contiguous (fragmented) files may be
  559.    significantly slower than to contiguous files.  Perform a backup
  560.    and restore to correct this situation
  561.  
  562. /F corrects errors found in the directory and in the file allocation
  563.    table. Other errors are noted, but not corrected. The user is
  564.    prompted whether to allow each chain of lost clusters to be
  565.    converted into a valid file.  These files will be named with the
  566.    following naming convention:
  567.    FILEnnnn.CHK where nnnn is a four digit number starting with 0000.
  568.  
  569. /V displays all paths and filenames on the specified drive.
  570.  
  571. # CLS
  572. CLS - Clears the screen.
  573.  
  574. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  575.  
  576. USE: CLS
  577.  
  578. # COMMAND #SHELL #CONFIG.SYS
  579. COMMAND - Invokes a secondary command processor.
  580.  
  581. COMMAND TYPE: External                  VERSION: 2.0 and up
  582.  
  583. USE:  COMMAND [d:][path][ctty-dev][/P] [/C string][/E:nnnnn]
  584.  
  585. d: path is the drive and path that DOS will look in for the COMMAND
  586.    processor.
  587. ctty-dev allows you to specify a different device (such as AUX) for
  588.    input and output.
  589. /P makes the secondary command processor permanent in memory. The autoexec.bat
  590.    file is executed following this command.
  591. /C string passes a string (a DOS command) to the command processor and
  592.    then exits automatically.
  593. /E:nnnnn is an integer that specifies the size (in bytes) of the
  594.    environment. The acceptable range of nnnnn is from 160 to 32768.
  595.    (not available pre DOS 2.x).  In DOS 3.1, the size is in paragraphs
  596.    (units of 16 bytes).  Default size is 160 bytes.
  597.  
  598. EXAMPLE: COMMAND /C CHKDSK B:
  599. loads a secondary command processor, runs the command CHKDSK on drive B
  600. and returns to the original command processor.
  601.  
  602. # COMP #FC #DISKCOMP
  603. COMP - Compares the contents of a file (or group of files) to another.
  604.  
  605. COMMAND TYPE: External                  VERSION: 2.0 and up
  606.  
  607. USE:  COMP [d:][path][filename] [d:][path][filename]
  608.  
  609. The first d: path filename specifies the first set of files to be
  610. compared. The second d: path filename specifies the second set of files to
  611. be compared.  Either set may contain wildcards.  If no filename is
  612. specified, *.* is assumed.
  613.  
  614. COMP compares files byte for byte. Any bytes that do not match are
  615. displayed. A typical error message would look like:
  616.           Compare error at OFFSET XXXX
  617.           File 1 = 17
  618.           File 2 = 26
  619. After 10 errors, COMP will abort.
  620.  
  621. EXAMPLE: COMP A:HELP.* C:
  622. compares the contents of all files with the filename of HELP and any
  623. extension on drive A: to files on drive C: with matching filenames.
  624.  
  625. SEE ALSO: FC, DISKCOMP
  626.  
  627. # CONFIG, CONFIG.SYS #SHELL #DEVICE #BREAK #BUFFERS #COUNTRY #DEVICE #DRIVPARM #FCBS #FILES #INSTALL #LASTDRIVE #REM #SHELL #STACKS
  628. CONFIG.SYS - setup system configuration and load device drivers at boot time
  629.  
  630. COMMAND TYPE: System configuration      VERSION: 1.0 and up
  631.  
  632. If a file CONFIG.SYS exists in the root directory of the disc used to
  633. load MSDOS, it is read by the system during the boot sequence and the
  634. information in it is used to customise the operating system.  It is
  635. also used to specify DEVICE DRIVERS, which are programs used to access
  636. external devices on the computer.  Device drivers can only be loaded
  637. when the system is initialised and so must be listed in CONFIG.SYS.
  638. IF no config.sys file is found, no device drivers are loaded and all
  639. of the system default values are used for the variable parameters.
  640.  
  641. The possible commands used in CONFIG.SYS are listed below.  They are all
  642. described separately in this help file.
  643. BREAK     set control-break checking
  644. BUFFERS   set number of disc buffers
  645. COUNTRY   set country specific defaults
  646. DEVICE    load a device driver
  647. DRIVPARM  define parameters for block devices
  648. FCBS      specify the number of FCBs that can be open simultaneously
  649. FILES     set the number of open files that can access MSDOS
  650. INSTALL   execute certain MSDOS commands during CONFIG.SYS processing
  651. LASTDRIVE set the maximum number of drives you may access
  652. REM       add comments to CONFIG.SYS
  653. SHELL     specify file to execute on completion on boot sequence
  654. STACKS    supports the dynamic use of data stacks
  655.  
  656. # COPY #XCOPY #VERIFY #DISKCOPY
  657. COPY - Copies a file (or group of files) to the same or another disk.
  658.  
  659. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  660.  
  661. USE:  COPY [/A][/B][d:][path] filename [/A][/B][d:][path] [filename]
  662.            [/A][/B][/V]
  663.  or   COPY [/A][/B][d:][path] filename [/A][/B][+[d:][path] filename
  664.            [/A][/B]] [d:][path] [filename] [/A][/B][/V]
  665.  or   COPY [/A][/B][d:][path] filename [/A][/B][+[[,,]d:][path]
  666.            filename [/A][/B]...] [d:][path][filename] [/A][/B][/V]
  667.  
  668. The first d: path filename specifies the source file.
  669.  
  670. The + symbol will cause files to be joined together as they are
  671. copied.  For example:  COPY FILE1+FILE2 FILE3 will copy the contents
  672. of FILE1 and FILE2 into FILE3.  Multiple files may be joined in one operation.
  673.  
  674. The second d: path filename specifies the destination file.
  675.  
  676. When /A (ascii) is used with the source filename, it will be copied up
  677. to the first end of file marker (Ctrl-Z). The rest of the file will
  678. not be copied.
  679. When /A is used following the destination file, an end of file marker
  680. will be added to the end of the file.
  681.  
  682. When /B (binary) is used with the source filename, the entire file
  683. will be copied (including CTRL-Z).  This is the default.
  684. When /B is used following the destination filename, no end of file
  685. marker will be added to the end of the file.
  686.  
  687. /V verifies that the data is copied correctly.
  688.  
  689. Wild Card characters are allowed within or in place of filenames.
  690. wildcards in the destination will be replaced by the corresponding
  691. filename or part of filename from the source file list.
  692.  
  693. SEE ALSO: XCOPY
  694.  
  695. # COUNTRY #NLSFUNC #CHCP #CONFIG.SYS
  696. COUNTRY - Selects date, time, currency format for a specific country.
  697.  
  698. COMMAND TYPE: System Configuration      VERSION: 3.0 and up
  699.  
  700. USE: COUNTRY = xxx[,[yyy][,[drive:]filename]]
  701.  
  702. xxx is a 3 digit code which designates a particular country.
  703. yyy is the code page for the country.
  704. filename is a file containing country information (country.sys is used
  705.     if none specified)
  706.  
  707. The following codes and corresponding countries are listed below.
  708.  
  709. AUSTRALIA   061  BELGIUM   032  CANADA/FRENCH 002  DENMARK 045  FINLAND     358
  710. FRANCE      033  GERMANY   049  ITALY         039  ISRAEL  972  MIDDLE EAST 785
  711. NETHERLANDS 031  NORWAY    047  PORTUGAL      351  SPAIN   034  SWEDEN      046
  712. SWITZERLAND 041  U.KINGDOM 044  USA 001
  713.  
  714. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  715. normal DOS command.
  716. Unless otherwise specified, United States settings are used.  This
  717. country specific information is used by DATE, TIME, BACKUP and
  718. RESTORE, and is available to other programs also.
  719.  
  720. # CTTY
  721. CTTY - Changes the standard console device to an auxiliary device.
  722.  
  723. Ctty changes the standard input and output device to an auxiliary
  724. device, or restores the keyboard and screen as the standard input and
  725. output devices.
  726.  
  727. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  728.  
  729. USE: CTTY device
  730.  
  731. The available devices are:
  732.   AUX:  ASYNCHRONOUS PORT   COM1: ASYNCHRONOUS PORT
  733.   COM2: ASYNCHRONOUS PORT   CON:  KEYBOARD INPUT and SCREEN OUTPUT
  734.  
  735. EXAMPLE: CTTY COM1
  736. After this command is performed, all standard input and output will be
  737. sent to and taken from the primary asynchronous port.
  738.  
  739. # DATE #TIME #AUTOEXEC.BAT
  740. DATE - Displays or sets the system date.
  741.  
  742. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  743.  
  744. USE: DATE [mm-dd-yy]
  745.  
  746. If DATE is entered with no parameters, the current date will be
  747. displayed and you will be prompted to enter a new date.  If the date
  748. is correct, press ENTER.
  749. If you wish, you may enter the date immediately after DATE in the
  750. format mm-dd-yy.  The format used to display the date is a function of
  751. the country selected in the COUNTRY command in config.sys.  European
  752. formats will be dd-mm-yy.  On input, you may use "-" or "/" as
  753. separators.  This command also sets the hardware clock, if one is
  754. present in your computer (AT only)
  755. If there is no AUTOEXEC.BAT file, the commands DATE and TIME are executed
  756. automatically when the computer is booted.
  757.  
  758. SEE ALSO: TIME
  759.  
  760. # DEBUG
  761. DEBUG - run, examine and modify binary files
  762.  
  763. COMMAND TYPE: External                  VERSION: 1.0 and up
  764.  
  765. The debug utility is a debugging program that provides a controlled
  766. testing environment for binary and executable object files.
  767.  
  768. USE: DEBUG [filename [arguments ...]]
  769.  
  770. Debug is intended for use by programmers only.  See the MSDOS
  771. TECHNICAL REFERENCE for full details.  Below is a very brief summary
  772. of the available debug commands.
  773.  
  774. A [address]                     Assemble
  775. C range address                 Compare
  776. D [range]                       Dump
  777. E address [list]                Enter
  778. F range list                    Fill
  779. G [=address [address...]]       Go
  780. H value value                   Hex
  781. I value                         Input
  782. L [address [driv:rec rec]]      Load
  783. M range address                 Move
  784. N filename [filename]           Name
  785. O value byte                    Output
  786. P [=address][number]            Proceed through loop or subroutine
  787. Q                               Quit
  788. R [register-name]               Register
  789. S range list                    Search
  790. T [=address] [value]            Trace
  791. U range                         Unasassemble
  792. W [address [driv:rec rec]]      Write
  793. XA                              Expanded memory allocate
  794. XD                              Expanded memory deallocate
  795. XM                              Expanded memory map pages
  796. XS                              Expanded memory status
  797.  
  798. # DEL, ERASE
  799. DEL, ERASE - Delete a file (or group of files) from a disk.
  800.  
  801. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  802.  
  803. USE: DEL [d:][path] filespec /P
  804.  
  805. d: path filespec specifies the file(s) to DELete.  wildcards are accepted.
  806. /p prompt before deleting each file.  If the filespec is *.*, DEL will
  807.    always prompt for verification.
  808.  
  809. ERASE is a synonym for DEL
  810.  
  811. # DEVICE #ANSI #DISPLAY #DRIVER #KEYBOARD #VDISK #RAMDRIVE #SMARTDRV #EMM386 #HIMEM #XMA2EMS
  812. DEVICE - Allows MS-DOS to load and utilize a device driver.
  813.  
  814. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  815.  
  816. USE: DEVICE = [d:][path]filename [arguments]
  817.  
  818. d: path filename specifies the file to use as a device driver.
  819.  
  820. All DEVICE drivers must be included in the CONFIG.SYS file to operate
  821. properly.  Any arguments needed by the individual drivers are
  822. specified following the filename.  These are not commands which are
  823. available at the DOS level.
  824.  
  825. The following device drivers are standard:  (see help on each
  826. individually for more information)
  827.  
  828. ANSI.SYS      gives screen control using ansi escape sequences
  829. DISPLAY.SYS   use code page switching on EGA, LCD and PS/2 displays
  830. DRIVER.SYS    create logical DOS devices for extra physical disc
  831.               drives
  832. COUNTRY.SYS   loaded automatically by DOS to handle country specific
  833.               tasks
  834. PRINTER.SYS   provides code page switching on printer ports, for
  835.               printers supporting multiple code pages (IBM only)
  836. KEYBOARD.SYS  (DOS 4.x) loaded by DOS to handle country specific
  837.               keyboard interface
  838. VDISK.SYS     (DOS 2.x,3.x) Allows you to use part of memory as a
  839.               virtual disk drive.
  840. RAMDRIVE.SYS  (DOS 4.x) replaces VDISK.SYS for DOS 4
  841. SMARTDRV.SYS  (DOS 4.x) disk cache program to store recently used disc
  842.               sectors in memory for faster access
  843. EMM386.SYS    (DOS 4.x) Allows 80386 machines with extended memory to
  844.               emulate expanded memory (LIM EMS 4.0)
  845. HIMEM.SYS     (DOS 4.x) Extended memory (XMS 2.0) driver to allow
  846.               80286/80386 based machines to access extended memory
  847. XMA2EMS.SYS   (DOS 4.x) Expanded memory manager
  848.  
  849. # DIR #TREE #CHKDSK
  850. DIR - Lists the files in a directory.
  851.  
  852. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  853.  
  854. USE:  DIR [d:][path][filespec] [/P][/W]
  855.  
  856. d: path filespec specifies the drive, path, and filenames to list.
  857.    wildcards * and ? are accepted.
  858. /P will PAUSE the listing each time a screen full of file names
  859.    appears.  You will be asked to press a key when you are ready to
  860.    continue.  This keeps the files from scrolling by faster than you
  861.    can read them.
  862. /W will list the files in a WIDE format.  Only the file names will be
  863.    listed and they will be listed five across.  You can fit a much
  864.    larger directory on the screen this way.
  865.  
  866. # DISKCOMP #COMP #FC
  867. DISKCOMP - Compares the contents of one diskette to another.
  868.  
  869. COMMAND TYPE: External                  VERSION: 2.0 and up
  870.  
  871. USE: DISKCOMP [d:[d:]] [/1][/8]
  872.  
  873. d: d: are the two disk drives to be compared.
  874. /1 compares the first side of the disk only, even if the disk is
  875.    double sided.
  876. /8 compares eight sectors per track even if the discs contain 9
  877.    or 15
  878.  
  879. DISKCOMP will operate on floppy disks only.  DISKCOMP compares on a
  880. sector by sector basis, without regard to file structure.  It ignores
  881. the disc serial numbers.
  882.  
  883. SEE ALSO: COMP, FC
  884.  
  885. # DISKCOPY #COPY #XCOPY #BACKUP #VERIFY
  886. DISKCOPY -  Copies the contents of one diskette to another.
  887.  
  888. COMMAND TYPE: External                  VERSION: 2.0 and up
  889.  
  890. USE: DISKCOPY [d:[d:]][/1]
  891.  
  892. The first  d: is the source disk for the DISKCOPY.
  893. The second d: is the destination disk for the DISKCOPY.
  894. /1 copies only the first side of the disk.
  895.  
  896. If the destination disk has not been formatted, then DISKCOPY will
  897. format as it copies (with the same number of sectors and sides as the
  898. source disc).  If specified with no parameters, DOS will perform a
  899. single drive copy on the default drive.
  900.  
  901. DISKCOPY is for use on floppy disks only.  An attempt to use DISKCOPY
  902. with a fixed disk will not work.
  903. DISKCOPY makes a mirror image copy of a diskette on to another
  904. diskette.  As a result, any flaws or fragmented files will also be
  905. copied over.  The COPY or XCOPY commands would work much better under
  906. these circumstances.
  907.  
  908. SEE ALSO: COPY, XCOPY, BACKUP
  909.  
  910. # DISPLAY, DISPLAY.SYS #NLSFUNC #COUNTRY #DEVICE #CONFIG.SYS
  911. DISPLAY.SYS - use code page switching on EGA, LCD and PS/2 displays
  912.  
  913. Display.sys is a device driver which allows you to use code page
  914. switching on the IBM PC convertible LCD screen, EGA, and IBM Personal
  915. System/2 displays.
  916.  
  917. USE: DEVICE=[d:][path] DISPLAY.SYS CON[:] = (type[,[hwcp][,n,m]])
  918.  
  919. type specifies the display adapter type.  The display types are MONO,
  920.      CGA, EGA, and LCD.
  921. hwcp specifies the code page supported directly by the hardware.  The
  922.      possible hwcp are 437 (US), 850 (Mult), 860 (Port), 863 (Can-Fr), and
  923.      865 (Nor).
  924. n    specifies the number of additional codes that can be supported.
  925.      This value is referred to as the number of prepared code pages.
  926.      The allowable range of additional code pages n must be between 0
  927.      and 12 and is hardware dependant.  The MONO and CGA cannot
  928.      support prepared pages.  The value of n for these must be 0.
  929.  
  930. Each prepared code page requires a buffer in DISPLAY.SYS which hold
  931. the corresponding character fonts.
  932.  
  933. m    specifies the number of sub-fonts supported for each code page.
  934.      These sub-fonts vary for different adapters and display modes. If
  935.      the value of m is not specified then the default is the maximum
  936.      number of sub-fonts:
  937.  
  938.           --------------------------------------
  939.          | Devices   | Font Size | Default m    |
  940.          |-----------|-----------|--------------|
  941.          |EGA        | 8x8 8x14  |    2         |
  942.          |IBM PS/2   | 8x8 8x16  |    2         |
  943.          |Convertible| 8x8       |    1         |
  944.           --------------------------------------
  945.           ------------------------------------
  946.          | Device|Default| n    | m   |Default|
  947.          | Type  | n     |      |     | m     |
  948.          |-------|-------|------|-----|-------|
  949.          | CGA   | 0     | 0    | 0   | 0     |
  950.          | MONO  | 0     | 0    | 0   | 0     |
  951.          | EGA & | 1     | 1-12 | 1-2 | 2     |
  952.          | PS/2  |       |      |     |       |
  953.          | LCD   | 1     | 1-12 | 1   | 1     |
  954.          |_______|_______|______|_____|_______|
  955.  
  956. The number of additional code page values may cause a buffer to be
  957. used to hold the image data.  The size of this buffer is dependent on
  958. the display type.
  959.  
  960. EXAMPLE: DEVICE=C:\DOS\DISPLAY.SYS CON:=(EGA, 437, 2)
  961. This example installs the code page switching support for the CON:
  962. device. It also tells the CON: driver that the display is an Enhanced
  963. Graphics Adapter with the 437 code page built in.  The CON driver
  964. holds up to two pages prepared by the use of the MODE command.
  965.  
  966. NOTE: If you are using ANSI.SYS and DISPLAY.SYS, the DEVICE=ANSI.SYS
  967. statement must appear before the DEVICE=DISPLAY.SYS statement in the
  968. CONFIG.SYS file.
  969.  
  970. NOTE: The display type EGA supports the Enhanced Graphics Adapter and
  971. IBM Personal System/2.  The IBM Personal System/2 video support is not
  972. functionally equivalent to EGA video support.
  973.  
  974. # DRIVER, DRIVER.SYS #DEVICE #CONFIG.SYS
  975. DRIVER.SYS - device driver to allow access of extra disk devices.
  976.  
  977. COMMAND TYPE: EXTERNAL                  VERSION: 3.2 and up
  978.  
  979. USE:  DEVICE=DRIVER.SYS /D:ddd [/T:ttt][/S:ss][/H:hh][/C] [/N][/F:f]
  980.  
  981. /D:ddd specifies the physical drive number.  Value 0-127
  982. /T:ttt specifies the number of tracks per side.  Value 1-999 (default 80)
  983. /S:ss  specifies sectors per track.  Value 1-99 (default is 9)
  984. /H:hh  specifies the maximum number of heads.  Value 1-99 (default is 2)
  985. /C     specifies that changeline support is available.
  986. /N     specifies that the disk is not removable.
  987. /F:f   specifies the device type.
  988.          0 = 160/180/320/360 kb 5.25"
  989.          1 = 1.2 Mb  5.25"
  990.          2 = 720 kb  3.5"
  991.          7 = 1.44 Mb 3.5"
  992.  
  993. NOTE: The DRIVER.SYS device driver must be placed in the CONFIG.SYS
  994. file and be used in conjunction with the DEVICE = DRIVER command.
  995.  
  996. # DRIVPARM #DRIVER #DEVICE #CONFIG.SYS
  997. DRIVPARM - modify the parameters of an existing physical disc drive
  998.  
  999. This command allows the modification of parameters associated with
  1000. existing block devices, overriding the default MSDOS values.  To add a
  1001. new device, use DRIVER.SYS
  1002.  
  1003. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  1004.  
  1005. USE: DRIVPARM=/d:number [/c][/f:factor][/h:heads][/i][/n][/s:sectors]
  1006.  
  1007. /d:number declares the physical drive to be used (acceptable range 0-255)
  1008.      where 0=A:, 1=B: etc.
  1009. /c   indicates that drive referenced has door-open detection available
  1010. /f:factor specifies the form factor (drive type) from the list below
  1011.      0 = 160/180/320/360 kbytes      1 = 1.2 Mb
  1012.      2 = 720 kb (3.5")               5 = fixed hard disc
  1013.      6 = tape drive                  7 = 1.44 Mb (3.5")
  1014.      The default values for the following options depend on the value
  1015.      given to /f
  1016. /h:heads -heads is number of heads (1-99)
  1017. /i   specifies an electrically compatible 3.5" drive.  Such a drive is connected
  1018.      to the existing floppy disc controller as drive A: or B:.  Use this
  1019.      switch if the ROM bios does not support 3.5" drives directly
  1020. /n   specifies a none-removable block device
  1021. /s:sectors - sectors is the number of sectors per track (1-9)
  1022. /t:tracks  - tracks is the number of tracks per side (1-999)
  1023.  
  1024. NOTE:  This command can only be used in CONFIG.SYS
  1025.  
  1026. SEE ALSO: DRIVER.SYS
  1027.  
  1028. # ECHO
  1029. ECHO - Control echoing of batch commands to the screen
  1030.  
  1031. Enables or disables the screen display of DOS commands during the
  1032. execution of batch files.
  1033.  
  1034. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1035.  
  1036. USE: ECHO [ON] [OFF] [message]
  1037. or   @ECHO OFF
  1038.  
  1039. ON  turns ECHO on
  1040. OFF turns ECHO off.
  1041. message is a text message that will be displayed on the screen.
  1042.  
  1043. After turning ECHO off, any batch file commands encountered by DOS
  1044. will not be echoed to the screen.
  1045.  
  1046. (DOS 3.3, 4.x)  When the @ symbol is used before a REMark or before an
  1047. ECHO ON or ECHO OFF command, that command will not be displayed.
  1048.  
  1049. # EDLIN
  1050. EDLIN - A line editor.  It can be used to create and edit ascii files.
  1051.  
  1052. COMMAND TYPE: External                  VERSION: 2.0 and up
  1053.  
  1054. USE: EDLIN [d:][path] filename [/B]
  1055.  
  1056. d: path filename specifies the name of the file to create or edit.  If
  1057.    the /B parameter is not used, EDLIN will stop loading the specified
  1058.    file when the first end of file marker (Ctrl-Z) is encountered.  If /B
  1059.    is used, the entire file will be loaded. EDLIN creates a file if the
  1060.    specified file is not found.
  1061.  
  1062. A brief summary of EDLIN commands is given below.  See the MSDOS users
  1063. reference manual for full details.
  1064.  
  1065. Many commands will allow you to specify line numbers.  You may use the
  1066. symbol . in place of the current line number and # in place of the
  1067. line number of the last line in the buffer.
  1068.  
  1069. [n]A  APPEND loads lines from the disk and places them at the end of the
  1070.       input buffer. [n] specifies the number of lines to append to
  1071.       the current file.
  1072.  
  1073. [n],[n],[n][,count]C   COPY copies the contents of a line or range of
  1074.       lines to another location.  The first two [n]'s specify the
  1075.       range of lines to copy.  The third [n] specifies the line to
  1076.       copy to. [count] specifies the number of times that the copy
  1077.       will be performed.
  1078.  
  1079. [n][,n]D   DELETE deletes a line or range of lines. The [n] parameters
  1080.       specify the first and last line to delete.
  1081.  
  1082. [n]   calls up a line of text for editing.
  1083.  
  1084. E     EXIT saves the current file and exits EDLIN.
  1085.  
  1086. [n]I  INSERT inserts lines of text in the current file. [n]
  1087.       specifies the line number where the insert will begin.
  1088.  
  1089. [n][,n]L   LIST displays a line or range of lines. [n][,n] specifies
  1090.       the first and last lines to list.
  1091.  
  1092. [n],[n],n M   MOVE moves a line or range of lines to a specified line.
  1093.       The first two [n]'s specify the first and last lines to
  1094.       move. The third line number specifies  where the text will be
  1095.       moved to.
  1096.  
  1097. [n][,n] P   PAGE allows you to scroll through a file one PAGE (23
  1098.       lines) at a time. [n][,n] specifies the first and last
  1099.       lines to display.
  1100.  
  1101. Q     QUIT exits EDLIN without saving the current file.
  1102.  
  1103. [n][,n][?] R s1^Zs2   REPLACE replaces all occurrences of a specified
  1104.       string with a second string. [n][,n] specify the range of lines
  1105.       to perform the REPLACE on.  The optional ? will request an
  1106.       O.K.?  prompt after each replace.  s1 specifies the string to
  1107.       search for and s2 is the string to replace it with. A control-Z
  1108.       separates the two strings.
  1109.  
  1110. [n][,n][?] Sstring   SEARCH searches for a specified string. [n][,n]
  1111.       specify the range of lines to perform the SEARCH on.  The
  1112.       optional ?  will request an O.K.?  prompt after each replace.
  1113.       string is the string to search for.
  1114.  
  1115. [n] Tfile   TRANSFER loads the contents of a specified file into the file
  1116.       currently being edited. [n] specifies the location where the
  1117.       file being TRANSFERred (merged) will be placed.  file is the
  1118.       file to be TRANSFERred.
  1119.  
  1120. [n]W   WRITE writes lines to disk from the file currently being edited.
  1121.       [n] specifies the number of lines to write to disk. This
  1122.       command is used to free up memory.
  1123.  
  1124. # EXE2BIN
  1125. EXE2BIN - Converts a file from .EXE format to .COM or .BIN formats.
  1126.  
  1127. COMMAND TYPE: External                  VERSION: 2.0 and up
  1128.  
  1129. USE:  EXE2BIN [d:][path]filename [d:][path][filename]
  1130.  
  1131. The first [d:][path]filename specifies the name of the input file
  1132. (.EXE file).
  1133. The second [d:][path][filename] specifies the name of the output file
  1134. (.COM file or .BIN (default) ).
  1135.  
  1136. Not all .EXE files can be converted.  EXE2BIN will report if the file
  1137. cannot be converted.  COM files are smaller and load faster than their
  1138. EXE equivalents.  This command will normally only be used by
  1139. programmers.
  1140.  
  1141. # EXIT #COMMAND
  1142. EXIT - exit the command processor and return to a previous one
  1143.  
  1144. EXIT explicitly quits the command processor and returns to the program
  1145. which called it.  This is usually used to return to programs which
  1146. temporarily created a secondary copy of command.com
  1147.  
  1148. SEE ALSO: COMMAND
  1149.  
  1150. # FASTOPEN #CONFIG.SYS #INSTALL
  1151. FASTOPEN - store location of recently used files for faster access
  1152.  
  1153. COMMAND TYPE: External                  VERSION: 3.3 and up
  1154.  
  1155. DOS locates files by searching each directory in the path to the file
  1156. each time the file is accessed. On fixed disks with complex directory
  1157. structures, this can take a large amount of time.  FASTOPEN stores in
  1158. memory the location of directories and recently opened files, and
  1159. searches this list first when opening a file.  It is most useful for
  1160. applications which open and close many files.
  1161.  
  1162. USE: FASTOPEN [d:[=n][ ... ] [/X]
  1163. or   FASTOPEN [d:[=([n],m)][ ... ] [/X]
  1164.  
  1165. d: to specify the drive to process. Any fixed disk drive may be used.
  1166. n  the number of directories or file entries to remember for the drive
  1167.    given as "d".  The default is 10. (Range is 10-999.)
  1168. m  is the number of file extent entries for the drive named (DOS 4.x only)
  1169.    If not present, the feature is not provided.
  1170. /X indicates the the FASTOPEN cache should be placed in expanded (LIM 4.0)
  1171.    memory (DOS 4.x only)
  1172.  
  1173. Fastopen works only on fixed discs (up to 4) and will not work with networks.
  1174.  
  1175. FASTOPEN can be used only once.  All drives must be defined the first
  1176. time FASTOPEN is used.
  1177. (DOS 4.x)
  1178. FASTOPEN may be executed at boot time using INSTALL in CONFIG.SYS
  1179.  
  1180. # FCBS #CONFIG.SYS
  1181. FCBS - Specifies the number of file control blocks that may be open
  1182.  
  1183. Specifies the number of file control blocks that may be open at one
  1184. time by DOS.
  1185.  
  1186. COMMAND TYPE: System Configuration              VERSION: 3.0 and up
  1187.  
  1188. USE: FCBS = n,m
  1189.  
  1190. n specifies the number of files that File Control Blocks can open at one
  1191.   time. Acceptable range is are 1-255.
  1192. m specifies the number files that DOS cannot automatically close.
  1193.  
  1194. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  1195. normal DOS command.
  1196.  
  1197. File Control Blocks are an outdated method of handling files.  Most
  1198. modern software uses file handles.  This command should only be used
  1199. if older applications require it.
  1200.  
  1201. # FC #COMP #DISKCOMP
  1202. FC - compare files and report differences (ascii or binary)
  1203.  
  1204. COMMAND TYPE: External                  VERSION: 4.0 and up
  1205.  
  1206. FC compares two files, or sets of files, and reports the differences
  1207. between them.  It is more powerful than COMP and may be used with
  1208. binary or ascii (text) files.
  1209.  
  1210. USE:
  1211. (ascii) FC [/a][/c][/L][/Lb n][/n][/t][/w][/nnnn][d:]path1 [d:]path2
  1212. (bin)   FC [/b][/nnnn] [d:]path1 [d:]path2
  1213.  
  1214. d: is an optional drive specified for either path1 or path2.  Path1 and
  1215.    path2 are the path and filenames of the files to compare
  1216. /a abbreviate output of ascii comparison - output only lines that begin
  1217.    and end each set of differences.
  1218. /b binary compare - byte for byte comparison with no attempt to
  1219.    resychronise after a mismatch. This is the default for .exe, .com,
  1220.    .lib, .obj, .sys, or .bin type files.
  1221. /c ignore case in comparing ascii text
  1222. /L compare in ascii mode.  This is default except as noted above.
  1223. /Lb n  sets the internal bufffer to n lines (default is 100).  Files which
  1224.    have more than this number of consecutive mismatched lines will abort
  1225.    the comparison.
  1226. /n display line numbers (ascii only)
  1227. /t do not expand tabs to spaces.  Default is to treat tabs as spaces to 8
  1228.    column positions
  1229. /w compress whitespace (multiple tabs or spaces) into a single space
  1230.    before comparing
  1231. /nnn specified the number of lines that must match after a difference
  1232.    before FC considers the files resynchronised (default is 2).
  1233.  
  1234. SEE ALSO: COMP, DISKCOMP
  1235.  
  1236. # FDISK #FORMAT
  1237. FDISK - Installs a partition on a hard disk drive for MS-DOS
  1238.  
  1239. FDISK partitions a hard disk for use by MS-DOS and prepares it for
  1240. formatting.
  1241.  
  1242. COMMAND TYPE: External                  VERSION: 2.0 and up
  1243.  
  1244. USE: FDISK
  1245.  
  1246. FDISK is a menu driven program.  If you have any questions as to what
  1247. any particular options do, you should refer to your MSDOS reference
  1248. manual.  It should only be neccessary to use FDISK when installing a
  1249. new hard disc, or when modifying the partitions on an existing disc.
  1250.  
  1251. NOTE: Be careful with this command because you will probably destroy
  1252. any data that is on your disk.
  1253.  
  1254. # FILES #CONFIG.SYS
  1255. FILES - Sets the number of open files that DOS can access at any one time.
  1256.  
  1257. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  1258.  
  1259. USE: FILES = nn
  1260.  
  1261. nn specifies the number of files that can be accesssed via DOS system
  1262. calls at one time. The acceptable values are 8 to 255 (default is 8).
  1263. Some programs may open more files by bypassing the DOS system
  1264. services.
  1265.  
  1266. EXAMPLE: FILES = 15
  1267. After this command is placed in the CONFIG.SYS file, up to 15 files may be
  1268. open at one time.
  1269.  
  1270. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  1271. normal DOS command.
  1272.  
  1273. # FIND
  1274. FIND - Searches a file for a specific string of text.
  1275.  
  1276. The FIND command searches for a text string in a file or group of files.
  1277. If no files are given, FIND reads standard input and can be used in a pipe.
  1278.  
  1279. COMMAND TYPE: External                  VERSION: 2.0 and up
  1280.  
  1281. USE:  FIND [/V][/C][/N]"string" [[d:][path]filename...]
  1282.  
  1283. filename is the file to be searched, with optional drive and path.
  1284.    Several files may be listed, but no wildcards are accepted.
  1285. /V displays the lines that don't contain the requested string.
  1286. /C displays the number of lines that contain a match of the string
  1287. /N displays the number of each line that contains a match along with the
  1288.    line of text.
  1289.  
  1290. "string" is the string of text to search for.  It must be enclosed in
  1291. quotes.  To include quotes in the string, use two sets e.g. "this is a
  1292. ""quoted string"" "
  1293.  
  1294. If no parameters are entered, all lines that contain a match of the
  1295. requested string will be displayed. The string must be an exact match
  1296. (i.e the search is case sensitive).
  1297.  
  1298. # FOR
  1299. FOR - Repeats a command for several variables in a batch file.
  1300.  
  1301. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1302.  
  1303. USE:  FOR %%var IN (set) DO command
  1304.  
  1305. %%var represents a variable that will be sequentially set to each value in
  1306. set.  If the FOR command is used in a batch file, %%var must be used, if
  1307. the FOR command is used at the DOS level, only one % is required.
  1308.  
  1309. set contains the actual values that %%var will represent when the command
  1310. is executed.  willdcard file specifiers are allowed in set.
  1311.  
  1312. command is the DOS command that will be repeated.  In the command, %%var
  1313. will be replaced by the value of the variable.
  1314.  
  1315. EXAMPLE: FOR %%g IN(*.TXT) DO TYPE %%g
  1316.  
  1317. when this command is encountered in a batch file, all files with the
  1318. extension .TXT will be TYPEd (displayed on the screen).
  1319.  
  1320. # FORMAT #SYS #LABEL #VOL
  1321. FORMAT - Initializes a disk or partition to accept MSDOS files
  1322.  
  1323. FORMAT checks for any defective tracks, and prepares the disk to
  1324. accept DOS files.  It creates the directory and file allocation tables
  1325. (FAT) and assigns a unique volume serial number.  It may also
  1326. optionally copy the MSDOS system files to the new disc.
  1327.  
  1328. COMMAND TYPE: External                  VERSION: 2.0 and up
  1329.  
  1330. USE:  FORMAT d:[/S][/1][/4][/8][/B] [/n:sectors][/t:tracks][/v:label]
  1331.              [/f:size]
  1332.  
  1333. d:  is the drive to be formatted.
  1334. /S  copies the system files from the source disk to the destination
  1335.     disk and makes the disk bootable.  There are three system files:
  1336.         IBMBIO.COM     IBMDOS.COM   COMMAND.COM
  1337.         (these files may have different names on non-IBM systems)
  1338. /1  formats a diskette on 1 side only making it a single sided
  1339.     diskette regardless of the drive type used.
  1340. /4  formats a 360k (DSDD) diskette in a high capacity drive.  Such disks
  1341.     may not always be read reliably by 360k drives because of the narrower
  1342.     tracks.
  1343. /8  formats a disk using 8 sectors per track.  (Obsolete - required to
  1344.     remain compatible with version 1.1 of DOS)
  1345. /V  will allow you to add a volume label to the diskette being
  1346.     formatted. Volume labels are a way to identify individual
  1347.     diskettes.  The label (up to 11 characters) may be specified after /v
  1348.     or will be prompted for when formatting is complete.
  1349. /B  formats a diskette using 8 sectors per track and allocates space
  1350.     for system files to be transferred later (using the SYS
  1351.     command). Using the /B option will allow you to install any
  1352.     version of the DOS system files.
  1353.  
  1354. (MSDOS 4.x extensions)
  1355. /t:tracks  specifies the number of tracks to place on the disc
  1356. /n:sectors specifies the number of sectors to place on the disc
  1357. /f:size    specifies the size of the diskette.  MSDOS chooses the
  1358.            appropriate number of tracks and sectors.  Allowable values are
  1359.            160k 180k 320k 360k 720k 1200k 1440k (may be specified with
  1360.            "k", "kb" or neither).  This cannot be used the /t or /n
  1361.  
  1362. By default, FORMAT will use the drive specification to determine the type
  1363. of disc according to the the physical drive addressed by that letter.  If
  1364. it is a non-removable hard disc, FORMAT will request confirmation before
  1365. proceeding.
  1366.  
  1367. EXAMPLE: FORMAT C: /S /V
  1368. FORMATS drive C:, copies the SYSTEM files to drive C:, and prompts the
  1369. user for a VOLUME LABEL.
  1370.  
  1371. NOTE: FORMAT destroys any existing data on the disk, and ignores any
  1372. drive reassignments made via the ASSIGN command.
  1373.  
  1374. # GOTO
  1375. GOTO - Transfers control of a batch file to a labelled line
  1376.  
  1377. The command after the line containing the appropriate label is executed.
  1378. The label cannot be on a line with any command.
  1379.  
  1380. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1381.  
  1382. USE: GOTO :label
  1383.  
  1384. In a batch file, a label is a word preceded by a colon (:).  These
  1385. lines are ignored when the batch file is executed.
  1386.  
  1387. EXAMPLE:  :begin
  1388.            format a: /s
  1389.            if errorlevel 0 goto end
  1390.            echo An error occurred during formatting
  1391.           :end
  1392.            echo End of batch file
  1393.  
  1394. # GRAFTABL #COUNTRY #NLSFUNC #CHCP
  1395. GRAFTABL - Loads foreign language characters into memory. (For CGA)
  1396.  
  1397. GRAFTABL enables an extended character set to be displayed in graphics mode
  1398. when using a CGA adaptor.
  1399.  
  1400. COMMAND TYPE: External                  VERSION: 3.0 and up
  1401.  
  1402. USE: GRAFTABL [xxx] [/status] [?]
  1403.  
  1404. The optional parameters apply only to MSDOS 3.3 and later
  1405.  
  1406. xxx  code page number - possible values are 437, 860, 863, 865 where
  1407.      437 United States  860 Portugal  863 Canada (Fr.)   865 Nordic
  1408. /STATUS displays the number of the selected country code page.
  1409. ?    displays instructions on how to use GRAFTABL
  1410.  
  1411. # GRAPHICS
  1412. GRAPHICS - enable graphics screen dump to IBM printers (CGA,EGA and VGA)
  1413.  
  1414. The GRAPHICS command will make it possible to print graphics displays
  1415. to the printer when the SHIFT and PrtScn keys are pressed. To work
  1416. properly, the printer must be a compatible printer type.  The screen
  1417. graphics display must be CGA,EGA, VGA or 8514/A.
  1418.  
  1419. COMMAND TYPE: External                  VERSION: 2.0 and up
  1420.  
  1421. USE: GRAPHICS [type] [profile][/r][/b][/lcd][/printbox:id]
  1422.  
  1423. printer type can be one of five types of printers.
  1424.  
  1425. COLOR1   - IBM Color Printer with a black ribbon.
  1426. COLOR4   - IBM Color Printer with red, green, blue, and black ribbon.
  1427. COLOR8   - IBM Color Printer with cyan, magenta, yellow, and black ribbon.
  1428. GRAPHICS - IBM personal graphics printer, Proprinter or Quietwriter
  1429. COMPACT  - IBM Compact printer. GRAPHICS - IBM Graphics Printer.
  1430. THERMAL  - IBM PC convertible thermal printer
  1431.  
  1432. profile  (DOS 4.x only) is the name of a file containing information on
  1433.          all supported printers.  If not supplied, graphics.pro is used.
  1434. /r to print black and white on the printer as they are seen on the
  1435.    monitor.  If you do not specify /R then black will be printed as white
  1436.    and white will be printed as black.
  1437. /b prints the background in color.  This switch is only valid on
  1438.    multi-color printers.  The default is to not print the background
  1439.    color.
  1440. /lcd will print using the LCD aspect ration rather than the CGA aspect ratio
  1441. /printbox:id selects the print box size.  "id" should be "ST" or "LCD"
  1442.  
  1443. In the high resolution modes the image will be printed on the printer
  1444. sideways.  The default printer type is GRAPHICS if none is supplied on
  1445. the command line
  1446.  
  1447. NOTE: Graphic screen dumps will take longer than text screen dumps.
  1448. Text screen dumps will still be possible after the GRAPHICS command is
  1449. executed.
  1450.  
  1451. # IF
  1452. IF - Performs conditional execution of commands in batch files.
  1453.  
  1454. If the condition is met then the command will be executed.  If the
  1455. condition is not met then the command will be ignored.  If the NOT
  1456. parameter is entered, the command is executed when the condition is
  1457. false.
  1458.  
  1459. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1460.  
  1461. USE: IF [NOT] condition command
  1462.  
  1463. "command" is the DOS command or program to be executed when the condition is
  1464. met. "condition" can be one of the following:
  1465.  
  1466.     errorlevel number
  1467. or  string1 == string2
  1468. or  EXIST filename
  1469.  
  1470. errorlevel number, where number is the exit code of the previously
  1471. executed program.
  1472. Some possible errorlevel numbers are:
  1473. 0 = Normal completion                  1 = No files found
  1474. 3 = Terminated by CTRL-BREAK or ESCAPE 4 = Terminated because of error
  1475.  
  1476. Some programs may return other errorlevel codes than these. The
  1477. errorlevel number condition will be true if the last program executed
  1478. has an exit code equal to or greater than the number specified.
  1479.  
  1480. string1 == string2 is true if string1 and string2 are exactly
  1481. identical after %variable substitution.  The strings may not contain
  1482. separators (,;= or spaces) To test for a null %variable, use IF
  1483. "%var"==""
  1484.  
  1485. EXIST filename is true if the specified file exists.  A drive and path
  1486. may be specified.
  1487.  
  1488. EXAMPLE: IF NOT EXIST DATA.FIL ECHO Cannot find data file
  1489.  
  1490. # INSTALL #CONFIG.SYS #FASTOPEN #KEYB #NSFUNC #SHARE
  1491. INSTALL - Execute FASTOPEN, KEYB, NLSFUNC or SHARE during boot processing
  1492.  
  1493. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  1494.  
  1495. USE:  INSTALL=[d:][path]filename [parameters]
  1496.  
  1497. INSTALL allows certain DOS commands to be executed during system
  1498. initialisation. "filename" must be one of FASTOPEN.EXE, NLSFUNC.EXE,
  1499. KEYB.EXE, SHARE.EXE, followed by any neccessary arguments.  This is
  1500. useful for ensuring that these commands are executed once only.  If
  1501. they were placed in AUTOEXEC.BAT they might be accidentally repeated
  1502. multiple times.
  1503.  
  1504. NOTE: This command must be used only in CONFIG.SYS and is not a normal
  1505. DOS command
  1506.  
  1507. SEE ALSO: CONFIG.SYS, FASTOPEN, KEYB, SHARE, NLSFUNC
  1508.  
  1509. # JOIN #SUBST #ASSIGN
  1510. JOIN - Logically links a disk drive to a directory on another drive.
  1511.  
  1512. COMMAND TYPE: External                  VERSION: 3.1 and up
  1513.  
  1514. USE:  JOIN [d: d:path]
  1515. or    JOIN d: /D
  1516.  
  1517. d:      specifies the drive to be JOINed to a directory on another drive.
  1518. d:path  specifies the directory that the previous drive will be JOINed
  1519.         to. The path must specify a root level directory only, and
  1520.         must be empty.
  1521.  
  1522. /D disconnects a previous JOIN on the specified drive.
  1523.  
  1524. JOIN entered with no parameters will display the drives and
  1525. directories that are currently JOINed.  Commands which only make sense
  1526. on a physical drive will not work on a JOINed drive (e.g. format,
  1527. chkdsk, label)
  1528.  
  1529. EXAMPLE:  JOIN E: C:\RAMDISK
  1530. This will allow a ram disk created as drive E: to be treated as a
  1531. subdirectory of the hard drive C:
  1532.  
  1533. SEE ALSO: SUBST, ASSIGN
  1534.  
  1535. # KEYB #COUNTRY #NLSFUNC #KEYBOARD.SYS #MODE #CHCP #CONFIG.SYS #KEYBUK #KEYBGR #KEYBFR #KEYBIT #KEYBSP
  1536. KEYB - Loads a keyboard handler to support foreign keyboards.
  1537.  
  1538. KEYB is a program that replaces the keyboard program resident in ROM
  1539. BIOS to support non U.S. English keyboards.  It permits you to enter
  1540. characters that are not part of the standard QWERTY keyboard set, such
  1541. as accented and umlauted characters.  The actual keys pressed to
  1542. generate such characters depends on the type of keyboard in use.
  1543.  
  1544. COMMAND TYPE: External                  VERSION: 3.3 and up
  1545.  
  1546. USE: KEYB [xx[,[yyy],[[d:][path]filename]]][/id:nnn]
  1547.  
  1548. xx  specifies the two character country code as shown below:
  1549.     UK - United Kingdom GR - Germany Fr - France IT - Italy SP - Spain
  1550. yyy specifies the numeric code page defining the character set as shown
  1551.     below:
  1552. AUSTRALIA  061  BELGIUM     032 CANADA/FRENCH 002   DENMARK     045
  1553. FINLAND    358  FRANCE      033 GERMANY       049   ITALY       039
  1554. ISRAEL     972  MIDDLE EAST 785 NETHERLANDS   031   NORWAY      047
  1555. PORTUGAL   351  SPAIN       034 SWEDEN        046   SWITZERLAND 041
  1556. U. KINGDOM 044  USA 001
  1557.  
  1558. d: path filename specifies the drive, path, and filename of the
  1559.    keyboard definition file to support a country language. The default is
  1560.    KEYBOARD.SYS
  1561. /id:nnn (DOS 4.x and later) specifies the keyboard type in use. nnn is a
  1562.    3-digit code as shown in the table above
  1563.  
  1564. NOTE: The keyboard programs on versions prior to DOS 3.3 are not
  1565. compatible and should not be executed under DOS 3.3.
  1566. KEYB which is available starting with DOS 3.3 replaces KEYBxx which
  1567. was available with earlier versions.
  1568.  
  1569. After loading a keyboard driver, you may change from the KEYB program
  1570. to the US program by pressing CTRL-ALT-F1.  You may switch back to the
  1571. KEYB program by pressing CTRL-ALT-F2.  KEYB entered without parameters
  1572. will report the current keyboard settings and code pages in use.
  1573.  
  1574. SEE ALSO: COUNTRY, NLSFUNC, KEYBOARD.SYS, MODE, CHCP
  1575.  
  1576. # KEYBOARD, KEYBOARD.SYS #KEYB #COUNTRY #NLSFUNC #CHCP #MODE
  1577. KEYBOARD.SYS - translation table for foreign keyboard codes
  1578.  
  1579. The KEYBOARD.SYS file contains tables which direct the KEYB.COM
  1580. command to convert scan codes to ascii characters. To change a
  1581. keyboard, the new keyboard must support at least one of the currently
  1582. prepared code pages for the CON device.  You can change the keyboard
  1583. without restarting the computer.  (For example, the KEYB command can
  1584. be used multiple times.)
  1585.  
  1586. The MODE command is used to prepare the new code pages required by the
  1587. new keyboard layout; only certain keyboards or code page combinations
  1588. are allowed. If a mismatch is created between keyboard and display,
  1589. character keys may not be correctly translated into the correct code
  1590. page, and incorrect characters may be displayed.
  1591.  
  1592. The following table shows the valid combinations of code pages and
  1593. keyboards:
  1594.  
  1595.           ----------------------------------
  1596.          | CODE  | KEYBOARD                 |
  1597.          | PAGE  |                          |
  1598.          |-------|--------------------------|
  1599.          |       | US, UK, Fr, GR, IT, SP,  |
  1600.          | 437   | LA, SV, SU, NL           |
  1601.          |-------|--------------------------|
  1602.          |       | UK, Fr, GR, IT, SP, DK,  |
  1603.          | 850   | NL, SU, NO, PO, SV, SF,  |
  1604.          |       | SG, CF, BE, LA, US       |
  1605.          |-------|--------------------------|
  1606.          | 860   | PO                       |
  1607.          |-------|--------------------------|
  1608.          | 863   | CF                       |
  1609.          |-------|--------------------------|
  1610.          | 865   | NO, DK                   |
  1611.           ----------------------------------
  1612.  
  1613. The KEYB command creates translation tables for each code page that
  1614. has been prepared at the time KEYB is used.  It will activate the code
  1615. page that has been requested.  If a code page is desired that is not
  1616. in that list of prepared code pages, it must be first prepared and
  1617. then KEYB should be issued again.  Refer to the MODE command for more
  1618. information.
  1619.  
  1620. If a code page has been selected previous to the KEYB command, and no
  1621. code page is specified in KEYB, it will attempt to activate the
  1622. selected code page.
  1623.  
  1624. The KEYB command sets the following errorlevel code:
  1625.  
  1626. 0 - Successful execution and termination.
  1627. 1 - Invalid language, code page, or syntax.
  1628. 2 - Bad or missing keyboard definition file.
  1629. 3 - KEYB could not create a keyboard table in resident memory.
  1630. 4 - An error condition occurred when communicating with the CON
  1631.     device.
  1632. 5 - Code page request has not been prepared.
  1633. 6 - The translation table for selected code page cannot be found in
  1634.     the resident keyboard table.
  1635.  
  1636. # KEYBUK, KEYBGR, KEYBFR, KEYBIT, KEYBSP #KEYB #KEYBOARD #NLSFUNC #MODE
  1637. KEYBxx - replace keyboard handler with support for a foreign keyboard
  1638.  
  1639. Replaces the current keyboard program with a program which will
  1640. support a foreign language keyboard.
  1641.  
  1642. COMMAND TYPE: External                  VERSION: 3.0 to 3.2 only
  1643.  
  1644. USE: KEYBxx
  1645. xx can be any one of the following:
  1646.    UK - United Kingdom GR - Germany Fr - France IT - Italy SP - Spain
  1647.  
  1648. After loading a keyboard driver, you may change from the KEYBxx
  1649. program to the US program by pressing CTRL-ALT-F1.  You may switch
  1650. back to the KEYBxx program by pressing CTRL-ALT-F2.  You can
  1651. automatically load a foreign keyboard driver by using a diskette
  1652. created using the SELECT command.
  1653.  
  1654. This command has been replaced by the KEYB command in DOS 3.3 and higher.
  1655.  
  1656. SEE ALSO: KEYB, KEYBOARD, NLSFUNC, MODE
  1657.  
  1658. # LABEL #DIR #FORMAT #VOL
  1659. LABEL - Creates, modifies, or deletes a diskette's volume label.
  1660.  
  1661. COMMAND TYPE: External                  VERSION: 3.0 and up
  1662.  
  1663. USE: LABEL [d:][volume label]
  1664.  
  1665. d:  specifies the drive which contains the diskette to be labeled.
  1666. volume label specifies the label to be written on the disk.  A volume
  1667.     label can be up to 11 characters long.  If you do not specify a volume
  1668.     label when using the LABEL command you will be prompted for one.
  1669.  
  1670. The volume label is reported by the DIR and VOL commands to show you
  1671. which diskette you are using.  The label may contain spaces, but not
  1672. tabs or any of the following characters "*?/.,;:+=<>[]()&^"
  1673.  
  1674. # LASTDRIVE #CONFIG.SYS
  1675. LASTDRIVE - Specifies the maximum number of drives accessible by DOS.
  1676.  
  1677. COMMAND TYPE: System Configuration              VERSION: 3.0 and up
  1678.  
  1679. USE: LASTDRIVE = x
  1680. x can be any letter from A through Z.
  1681.  
  1682. The letter that you enter will represent the last drive available in
  1683. the system.  If you enter a letter which is less than the total number of
  1684. drives on your system, the LASTDRIVE command will be ignored.
  1685. LASTDRIVE is intended for use in a network environment.
  1686.  
  1687. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  1688. normal DOS command.
  1689.  
  1690. # LINK #EXE2BIN
  1691. LINK - link .obj files and libraries to produce executable programs
  1692.  
  1693. COMMAND TYPE: External                          VERSION: 1.0 and up
  1694.  
  1695. The LINK command is used to combine object module format files (.obj)
  1696. produced by high level language compilers such as FORTRAN, C or
  1697. PASCAL, or from assemblers such as MASM, with libraries of precompiled
  1698. routines, and produce executable program files (.EXE).  LINK is
  1699. intended for use by programmers only.  See the MSDOS TECHNICAL
  1700. REFERENCE for full details
  1701.  
  1702. SEE ALSO: EXE2BIN
  1703.  
  1704. #MEM #CHKDSK
  1705. MEM - display memory use and amount remaining
  1706.  
  1707. MEM displays the amount of memory used (including extended and expanded
  1708. memory if used) and memory available. It also lists all programs loaded
  1709. and how much memory is used by each.
  1710.  
  1711. COMMAND TYPE: External                  VERSION: 4.0 and up
  1712.  
  1713. USE: MEM [/program] [/debug]
  1714. /program  displays programs loaded in memory
  1715. /debug    displays programs and also device drivers
  1716.  
  1717. You cannot specify /program and /debug at the same time.  If memory
  1718. above 1Mb is installed as extended memory, then that is reported.  If
  1719. a LIM 4.0 expanded memory manager is present, then expanded memory is
  1720. reported also.
  1721.  
  1722. # MKDIR, MD #RMDIR #CD
  1723. MKDIR, MD - Creates a subdirectory.
  1724.  
  1725. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  1726.  
  1727. USE: MKDIR [d:]path
  1728.  
  1729. d:path specifies the drive and path where the subdirectory will be
  1730.        located.  Path must be 63 characters long or less.
  1731.  
  1732. NOTE: MKDIR and MD are identical commands
  1733.  
  1734. SEE ALSO: RMDIR, CD
  1735.  
  1736. # MODE #COUNTRY #NLSFUNC #CHCP #KEYB
  1737. MODE - set mode of operation for printers, comm ports, display, keyboard
  1738.  
  1739. MODE is used to display or set the mode of operation for a printer,
  1740. asynchronous adapter, or graphics monitor.  It also can redirect
  1741. parallel printer output to the asynchronous adapter, prepare devices
  1742. for code page switching, and change the keyboard auto-repeat rate.
  1743.  
  1744. COMMAND TYPE: External                  VERSION: 2.0 and up
  1745.  
  1746. The various possible uses of mode will be explained in groups
  1747. depending on the devices affected. NOTE: The exact options available
  1748. for MODE vary with different DOS versions.  Refer to your DOS
  1749. reference manual for more information
  1750.  
  1751. MODE - device status
  1752.  
  1753. USE: MODE [device][/status]
  1754. device  is the device to display status for (CON, PRN, LPT1, COM1 etc.)
  1755. /status is required only for the status of redirected parallel printers
  1756.         If no device is specified, MODE reports the status of all
  1757.         installed devices
  1758.  
  1759. MODE - configure printer
  1760.  
  1761. USE: MODE LPT#[:][n][,[m[,R]]
  1762.  
  1763. LPT# represents the printer (LPT1,LPT2,LPT3)
  1764. n    specifies either 80 or 132 characters per line
  1765. m    specifies 6 or 8 lines per inch
  1766. R    specifies a retry action to take when the printer is not ready.
  1767.      (DOS 3.3 and earlier) only value is "P" - continue trying when
  1768.      printer is busy.
  1769.      (DOS 4.x) Possible values for R are:
  1770.       "E" - return error if printer busy
  1771.       "B" keep trying if busy (same as "P" in earlier versions)
  1772.       "R" returns "ready" even if printer status says not-ready
  1773.  
  1774. Default values are LPT1, 80 columns, 6 lpi
  1775.  
  1776. MODE - Monitor display mode
  1777.  
  1778. USE: MODE display, n
  1779. or   MODE [display],shift
  1780. or   MODE con[:][cols=n][lines=m]
  1781.  
  1782. display is one of the following options describing the monitor attached.
  1783.  
  1784. 40   screen width of 40 characters (CGA only)
  1785. 80   screen width of 80 characters (CGA only)
  1786. BW40 disables color on a color monitor and sets screen width to 40
  1787. BW80 disables color on a color monitor and sets screen width to 80
  1788. CO40 enables color on a color monitor and sets screen width to 40
  1789. CO80 enables color on a color monitor and sets screen width to 80
  1790. MONO selects a monochrome monitor (fixed width of 80 characters)
  1791.  
  1792. shift - set to "L" or "R" shifts the display left or right to align
  1793.         correctly (CGA only)
  1794.  
  1795. (DOS 4.x only)
  1796. n -  number of lines on display (values are 25 (all displays), 43
  1797.      (EGA/VGA) and 50 (VGA only)
  1798. m  - number of columns (values are 40 or 80)
  1799.  
  1800. MODE - Set keyboard repeat rate (DOS 4.x only)
  1801.  
  1802. USE: MODE con[:] rate=r delay=d
  1803. r - autorepeat interval time (1-32)
  1804. d - autorepeat start delay time (1-4, corresponding to 0.25, 0.5, 0.75,
  1805.     1.0 seconds)
  1806.  
  1807. MODE - configure asynchronous adapter (Serial Port)
  1808.  
  1809. USE: MODE COM#[:]b[,p[,d [,s[,r]]]]
  1810. or   (DOS 4.x and later)
  1811.      MODE COM# baud=b[ data=d][stop=s][parity=p][retry=r]
  1812.  
  1813. COM# is the asynchronous adapter to select.  The acceptable values for #
  1814.      are 1,2,3 or 4 (1,2 only for pre DOS 4.x)
  1815. b    selects the speed that the asynchronous adapter will operate at. Only
  1816.      the first two digits are given.  Acceptable values are:
  1817.        110, 150, 300, 600, 1200, 2400, 4800, and 9600.
  1818. p    selects number or parity bits.  Acceptable values for "p" are
  1819.        N(none), O (odd), or E (even).
  1820. d    is the number of data bits (7 or 8)
  1821. s    is number of stop bits (1 or 2)
  1822. r    specifies a retry action to take when the serial device is not ready.
  1823.      (DOS 3.3 and earlier)
  1824.        only value is "P" - continue trying when device is busy.
  1825.      (DOS 4.x) Possible values for r are:
  1826.        "E" - return error if device busy
  1827.        "B" keep trying if busy (same as "P" in earlier versions)
  1828.        "R" returns "ready" even if device status says not-ready
  1829.  
  1830. EXAMPLE: MODE COM1:96,N,8,1,P
  1831. selects asynchronous port #1 and sets it for 9600 baud, no parity, 8
  1832. databits, 1 stopbit, and sets it to be used with a printer with continuous
  1833. retry.
  1834.  
  1835. MODE - Redirect printing to a serial port
  1836.  
  1837. USE: MODE LPT#[:] [= COMn]
  1838.  
  1839. LPT# is the parallel port number to be redirected.
  1840. COMn is the asynchronous adapter that the output will be redirected to.
  1841.      If not given, then any prior redirection of LPT1 is disabled.
  1842.  
  1843. EXAMPLE: MODE LPT1: = COM1
  1844. redirects output from LPT1 to COM1.  Any future attempts to print to
  1845. LPT1 will be automatically routed to COM1.  This example assumes that
  1846. COM1 has been initialised using a previous MODe command.
  1847.  
  1848. MODE - Set device code pages (DOS 3.3 and later)
  1849.  
  1850. USE: MODE device CODEPAGE PREPARE = ((cp) [d:][path]filename)
  1851. or   MODE device CODEPAGE SELECT = cp
  1852. or   MODE device CODEPAGE [/STATUS]
  1853. or   MODE device CODEPAGE REFRESH
  1854.  
  1855. NOTE: The following abbreviations may be used
  1856.  cp  - CODEPAGE     PREP - PREPARE    SEL - SELECT
  1857.  REF - REFRESH      STA  - STATUS
  1858.  
  1859. device specifies one of CON, PRN, LPT1, LPT2, or LPT3.
  1860. cp     specifies one code page number. The code page must be of the
  1861.        following values, 437, 850, 860, 863, 865.
  1862. d: path filename specifies the name of the file containing the code
  1863.        pages. The code page information files provided on the DOS start up
  1864.        diskette have the extension of .CPI
  1865.          4201.CPI - IBM PROPRINTER    5202.CPI - IBM Quietwriter III
  1866.           EGA.CPI - EGA DEVICES        LCD.CPI - IBM CONVERTIBLE LCD
  1867.  
  1868. PREPARE - tells MSDOS to prepare the specified code page for the specified
  1869.           device.  You must prepare a code page before it can be used by
  1870.           the device.
  1871. SELECT -  selects the code page for use by a device.  It must have been
  1872.           PREPAREd first.
  1873. REFRESH - this reinstates prepared code pages which have been lost due to
  1874.           hardware or other errors (such as turning off the printer).
  1875. /STATUS - displays current code pages prepared for a device
  1876.  
  1877. EXAMPLE: MODE LPT1 cp PREP=(850) 4201.cpI
  1878. This example specifies code page of 850 to be prepared for LPT1 and the
  1879. character shapes for IBM Proprinter Model 4201
  1880.  
  1881. SEE ALSO: KEYB, NLSFUN, COUNTRY
  1882.  
  1883. # MORE #TYPE
  1884. MORE - Displays input one screen at a time.
  1885.  
  1886. The message 'MORE' will appear if more data is available.
  1887.  
  1888. COMMAND TYPE: External                  VERSION: 2.0 and up
  1889.  
  1890. USE: MORE <file
  1891. or   command | MORE
  1892.  
  1893. This filter is usually used in conjunction with the | (pipe).  The
  1894. pipe is used to send the output from a command and send it to another
  1895. to be processed.  More ONLY reads standard input (which may be a pipe
  1896. or redirected to come from a file)
  1897.  
  1898. EXAMPLE: DIR | MORE
  1899. The output from DIR will be piped to MORE and will be displayed one screen
  1900. at a time.
  1901.  
  1902. # NLSFUNC #CHCP #COUNTRY #KEYB #MODE #INSTALL
  1903. NLSFUNC -  support for extended country information and code pages
  1904.  
  1905. NLSFUNC allows you to use the CHCP command to select code pages for
  1906. all devices defined as having code page switching support. NLSFUNC
  1907. must be loaded prior to using the CHCP command.
  1908.  
  1909. COMMAND TYPE: External                  VERSION: 3.3 and up
  1910.  
  1911. USE: NLSFUNC [[d:][path]filename]
  1912.  
  1913. d:path filename specifies the location and name of the country
  1914.        information file (COUNTRY.SYS).  If this parameter is omitted,
  1915.        the drive path and filename defined by COUNTRY= command in the
  1916.        CONFIG.SYS file are used.  The file name must be included if
  1917.        drive or path are specified.
  1918.  
  1919. (DOS 4.x)
  1920. NLSFUNC may be executed at boot time using INSTALL in CONFIG.SYS
  1921.  
  1922. EXAMPLE: NLSFUNC C:\DOS\COUNTRY.SYS
  1923. This example loads the NLSFUNC command and specifies the location of
  1924. the COUNTRY.SYS file in a directory called DOS.
  1925.  
  1926. SEE ALSO: CHCP, MODE, COUNTRY, KEYB
  1927.  
  1928. # PATH #APPEND
  1929. PATH - Sets the path of directories that DOS will search for programs
  1930.  
  1931. The current directory is always searched first.
  1932.  
  1933. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  1934.  
  1935. USE:  PATH [[d:]path[[;[d:] path]...]]]
  1936.  
  1937. d: path; d: path;... define the paths that DOS will search for
  1938.      commands and programs. The paths are separated by ";" and the maximum
  1939.      length is 127 characters.
  1940. PATH     with no arguments will report the current path.
  1941. PATH ;   will delete the current path.
  1942.  
  1943. COMMAND.COM uses PATH to search for commands and programs.  The
  1944. current directory is always searched first, followed by the
  1945. directories in the PATH command, in the order specified.  Executable
  1946. files have extensions .COM, .EXE, and .BAT .  Within each directory
  1947. the search order is COM, EXE, BAT.  The path is stored in the
  1948. environment string PATH.
  1949.  
  1950. # PAUSE
  1951. PAUSE - Suspends execution of a batch file until a key is pressed.
  1952.  
  1953. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1954.  
  1955. USE: PAUSE [comment]
  1956.  
  1957. comment is an optional comment that may be entered.  It will be
  1958. displayed when PAUSE is executed.
  1959.  
  1960. EXAMPLE:  PAUSE Insert next disc in drive A
  1961. When this PAUSE command is executed, the following message will appear.
  1962.  
  1963. Insert next disc in drive A
  1964. Strike any key to continue ...
  1965.  
  1966. The message Strike a key when ready is automatically displayed
  1967. whenever the PAUSE command is used.  The comment line will not appear
  1968. if ECHO is off.  At a PAUSE point, a batch file may be terminated by
  1969. pressing CTRL-C or CTRL-BREAK.
  1970.  
  1971. # PRINT #PRINTER
  1972. PRINT - Prints text (ascii) files in the background mode.
  1973.  
  1974. PRINT will place filenames in the queue for background printing
  1975.  
  1976. COMMAND TYPE: External                  VERSION: 2.0 and up
  1977.  
  1978. USE:  PRINT [/D: device] [/B:bufsize] [/U:busy] [/M:maxtick]
  1979.       [/S:timeslice] [/Q:qsize][/C][/T][/P]  [[d:][path][filename]...]
  1980.  
  1981. FIRST USE ONLY:
  1982. /D:device     specifies the device to PRINT to. Default is PRN; other
  1983.               valid devices are LPTx (x=1,2,3) and COMx (x=1-4)
  1984. /B:bufize     specifies the size of the buffer (in bytes). Default is 512,
  1985.               range is 512-1634
  1986. /U:busy       specifies the number of clock ticks that PRINT will wait
  1987.               while the print device is busy or unavailable. Default is 1
  1988. /M:maxtick    specifies the number of ticks that PRINT can have to print
  1989.               to the print device.  Values from 1 to 255 will be accepted.
  1990.               Default is 2
  1991. /S:timeslice  specifies the interval of time used by the MSDOS scheduler
  1992.               for the PRINT command.  Values from 1 to 255 will be
  1993.               accepted. Default is 8.
  1994. /Q:qsize      specifies the number of PRINT files that may be in the queue.
  1995.               Values from 4 to 32 are acceptable. Default is 10
  1996.  
  1997. SUBSEQUENT USE
  1998. /C            selects the cancel mode. Removes preceding filename and all
  1999.               following filenames from the queue.
  2000. /T            terminates the entire PRINT procedure. All files currently
  2001.               being PRINTed will be cancelled.
  2002. /P            sets the print mode. The preceding filename and any files
  2003.               following /P will be added to the PRINT queue.
  2004.  
  2005. d: path filename... is a list of files to PRINT.  wildcards are accepted.
  2006.               The maximum length of a path and filename is 64 characters,
  2007.               hence it may be neccessary to change directories before
  2008.               issuing the command.
  2009.  
  2010. EXAMPLE: PRINT *.DOC /C
  2011. will cancel all files with an extension of DOC from the print queue.
  2012.  
  2013. EXAMPLE: PRINT TEST.DOC /C T.DOC /P
  2014. cancels TEST.DOC and adds T.DOC to the print queue.
  2015.  
  2016. # PRINTER, PRINTER.SYS #CHCP #NLSFUNC #DEVICE #CONFIG.SYS
  2017. PRINTER.SYS - Support for code page switching on IBM printers.
  2018.  
  2019. This is a device driver to support code page switching on certain
  2020. types of printers. Printers supported are Proprinter Model 4201 and
  2021. IBM Quietwriter III Printer Model 5202.
  2022.  
  2023. USE: DEVICE=[d:][path][PRINTER.SYS LPT#[:] = (type[,[hwcp[,...]][,n]])
  2024.  
  2025. LPT# specifies the printer device and can be entered up to three
  2026.      times, one for printers LPT1, LPT2, and LPT3.  The device name PRN
  2027.      may be used in place of LPT1.
  2028. type specifies one of the following printer types:
  2029.        4201 - IBM Proprinter Model 4201 or 4202 XL
  2030.        5202 - IBM Quietwriter III Model 5202
  2031.        4208 - IBM 4207 or 4208, Proprinter X24 or XL24
  2032. hwcp specifies the code page image built into the hardware (437, 850, 860,
  2033.      863, or 865).  For some printers multiple code pages may be
  2034.      specified. For the IBM Quietwriter III Model 5202, the hwcp can be
  2035.      one code page, such as 437, or it can be a pair of code pages, such
  2036.      as (437,850). For the IBM Quietwriter III Model 5202, if two hardware
  2037.      code pages have been specified, then no code pages can be prepared,
  2038.      and the value of n must equal zero.
  2039. n    specifies the number of additional code pages that can be prepared.
  2040.      The value of n determines the number of buffers PRINTER.SYS will set
  2041.      up to hold code pages being prepared.  The maximum number of code
  2042.      pages that can be prepared is 12.  This figure is dependant on the
  2043.      printer hardware
  2044.  
  2045. EXAMPLE: DEVICE=PRINTER.SYS LPT1:= (4201, 437, 1) LPT2:=(5202, 437, 0)
  2046. This example installs the code page switching for the LPT1: and LPT2:
  2047. devices.  It instructs the LPT1: driver that the printer is a IBM
  2048. Proprinter Model 4201 and the LPT2: driver that the printer is an IBM
  2049. Quietwriter III Model 5202.  Both printers have the 437 code page
  2050. built in.  The LPT1: driver is able to hold one code page prepared by
  2051. the MODE command, while the LPT2: driver can have one code page
  2052. prepared.
  2053.  
  2054. # PROMPT #ANSI.SYS
  2055. PROMPT - Changes the DOS prompt.
  2056.  
  2057. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2058.  
  2059. USE: PROMPT [prompt-text]
  2060.  
  2061. prompt-text may be a text message or one of several special
  2062. characters.  The special characters are listed below along with the
  2063. prompt that they will display.
  2064.  
  2065. $t - system time    $d - system date          $p - current directory
  2066. $v - version number $n - default drive letter $g - >
  2067. $l - <              $b - |                    $q - =
  2068. $h - BACKSPACE      $e - ESCAPE               $_ - perform a carriage
  2069.                                                   return and line feed
  2070.  
  2071. If ANSI.SYS has been installed, then ansi sequences may be included to
  2072. use reverse video or other special effects in the prompt
  2073.  
  2074. EXAMPLE: PROMPT $p$g
  2075. will cause the prompt line to display the current directory and the >
  2076. character.
  2077.  
  2078. # RECOVER #CHKDSK
  2079. RECOVER - Recovers a file or complete disk that contains bad sectors.
  2080.  
  2081. COMMAND TYPE: External                  VERSION: 2.0 and up
  2082.  
  2083. USE: RECOVER [d:][path]filename
  2084. or   RECOVER d:
  2085.  
  2086. d: path filename specifies the drive, path, and filename of the file
  2087.       or files that you wish to recover.
  2088.  
  2089. If a filename is specified, only that file will be recovered.  If only
  2090. a drive is specified, all files on that disc will be recovered.
  2091. Individually recovered files will simply be written over the old file
  2092. (without the defective sectors).
  2093.  
  2094. NOTE: When you recover an entire disk, all files will be renamed and
  2095. the files which have been recovered will be named in the following
  2096. manner.
  2097.   FILEnnnn.REC
  2098. where nnnn is a sequential number starting at 001. These files will be
  2099. placed in the root directory.  Since this directory can only hold a
  2100. limited number of files, files may be lost when using this command.
  2101. It is safer to recover the files individually.
  2102.  
  2103. # REM
  2104. REM - Displays a remark during the execution of a batch file.
  2105.  
  2106. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  2107.  
  2108. USE: REM [comment]
  2109.  
  2110. If ECHO is on, the entire line is echoed to the screen during
  2111. execution of the batch file.  A comment is generally used to display
  2112. messages during execution or to remind the programmer what the parts
  2113. of the batch files are for.  Blank REM lines can also be used in a
  2114. batch file to improve readability.
  2115.  
  2116. EXAMPLE: REM This is a test!
  2117. will display the message:
  2118.      REM This is a test!
  2119.  
  2120. (DOS 4.x and later) REM may also be used in CONFIG.SYS
  2121.  
  2122. # REN, RENAME #COPY #REPLACE
  2123. RENAME - Renames a file (or group of files).
  2124.  
  2125. RENAME changes the name of a file or group of files.  REN and RENAME
  2126. are the same command.  willdcard characters ?  and * are allowed in
  2127. the filenames.
  2128.  
  2129. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2130.  
  2131. USE:  REN] [d:][path] filename filename
  2132.  
  2133. d: path filename specifies the file(s) to be RENAMEd.
  2134.  
  2135. The second filename is the new name for the file(s).
  2136.  
  2137. EXAMPLE: REN *.C *.BAK  changes the name of all files ending with .C to
  2138. the same name, but with .BAK as the extension.
  2139.  
  2140. NOTE: RENAME may not move a file into another directory.  There are
  2141. programs available which can do this, without copying the file.
  2142.  
  2143. # REPLACE #RENAME #COPY #XCOPY
  2144. REPLACE - Replaces files on a disk or adds files to a disk.
  2145.  
  2146. REPLACE is very similar to COPY, but several additional options are
  2147. available with REPLACE.  It is used to update sets of files in a
  2148. target directory from those in a source directory.
  2149.  
  2150. COMMAND TYPE: External                  VERSION: 3.2 and up
  2151.  
  2152. USE:  REPLACE [d:][path]sourcefile [d:][targetpath][/A][/P][/R][/S][/W]
  2153.  
  2154. d: path sourcefile specifies the filenames on the source disk that will
  2155.    replace the files on the destination disk.
  2156. d: targetpath specifies the destination drive and directory of the files
  2157.    that are to be replaced.
  2158. /A causes REPLACE to add only the files that do not already exist on
  2159.    the destination disk.  /A cannot be used with /S or /U
  2160. /P causes REPLACE to prompt you whether or not you want to replace each
  2161.    file.
  2162. /R causes REPLACE to replace the read only files as well as unprotected files
  2163. /S causes REPLACE to search all subdirectories on the destination path
  2164.    for matching files.  Matching files found in any subdirectory will
  2165.    be REPLACEd.  /S and /A can not be used together.  subdirectories in the
  2166.    source path are never searched.
  2167. /W causes REPLACE to wait for you to insert a disk before searching for
  2168.    source files.
  2169.  
  2170. EXAMPLE: REPLACE A:TEST.BAS C:\ /S
  2171. REPLACE will replace any copy of the file TEST.DAT in any and all
  2172. directories on drive C: with the copy on drive A:
  2173.  
  2174. SEE ALSO: COPY, XCOPY
  2175.  
  2176. # RESTORE #BACKUP
  2177. RESTORE - Restores backed up files from one disk to another.
  2178.  
  2179. COMMAND TYPE: External                  VERSION: 2.0 and up
  2180.  
  2181. RESTORE is used to restore files that were copied using the BACKUP
  2182. command.  Options control which files are to be restored.
  2183.  
  2184. USE:  RESTORE d: [d:][path]filename [/S][/P] [/B:mm:dd:yy] [/A:mm:dd:yy]
  2185.               [/M][/N] [/L:time] [/E:time]
  2186. d: specifies the drive that contains the backed up files (files
  2187.    created using the BACKUP command).
  2188. d: path filename specifies the names of the files that you want to
  2189.    restore and where you want to put them.
  2190. /S restores the files in all subdirectories.  If /S is not
  2191.    specified, only the current directory is restored.
  2192. /P causes RESTORE to prompt you before restoring files that have
  2193.    changed since they were backed up.  /P will also cause RESTORE to
  2194.    prompt you before it restores a read-only file.
  2195.  
  2196. (DOS 3.3 and later)
  2197. /B:mm-dd-yy restores all files modified on or before the date
  2198.             specified by mm-dd-yy.
  2199. /A:mm-dd-yy restores all files modified on or after the date
  2200.             specified by mm-dd-yy.
  2201. /M          restores files modified or deleted since they were backed up.
  2202. /N          restores files that no longer exist on the target disk.
  2203. /L:time     restores only those files that were modified at or later
  2204.             than the given time.
  2205. /E:time     restores only those files that were modified at or earlier
  2206.             than the given time.
  2207.  
  2208. EXAMPLE: RESTORE A: C:\*.* /S
  2209. will restore all files on drive A: (which had previously been backed
  2210. up using BACKUP) to drive C:.  All subdirectories will be restored.
  2211.  
  2212. SEE ALSO: BACKUP
  2213.  
  2214. # RMDIR,RD #MKDIR #CD
  2215. RMDIR, RD - Remove a subdirectory.
  2216.  
  2217. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2218.  
  2219. USE: RMDIR [d:]path
  2220.  
  2221. d: path specifies the subdirectory to remove.
  2222.  
  2223. The subdirectory to be removed must be empty or RMDIR will not be
  2224. allowed.  RD is identical to RMDIR.
  2225.  
  2226. SEE ALSO: MKDIR, CD
  2227.  
  2228. # SELECT #FORMAT #SYS
  2229. SELECT - Installs DOS on a new disk.
  2230.  
  2231. SELECT also creates a config.sys file and autoexec.bat file and
  2232. installs the keyboard and country codes. CAUTION!!! This command
  2233. formats the disk.
  2234.  
  2235. COMMAND TYPE: External                  VERSION: 3.0 and up
  2236.  
  2237. (DOS 3.x)
  2238. USE:  SELECT [[A:| B:] D:[path]] xxx yy
  2239.  
  2240. [A:| B:] specifies either drive A or drive B as the source drive.  The
  2241.     only valid choices are A or B.  If you do not specify a source drive,
  2242.     drive A will be used.  The source drive should contain a DOS diskette.
  2243. D:path selects the drive and path that the DOS files will be copied to.
  2244.     If no drive is specified, drive B will be used.  If no path is
  2245.     specified, the files will be copied to the root directory.
  2246. xxx specifies the country code.
  2247. yy  selects the keyboard code.
  2248.  
  2249. (DOS 4.x)
  2250. USE:  SELECT MENU
  2251.  
  2252. Insert the install disk in drive A, make it the default drive, then type
  2253. SELECT MENU and follow the directions.  SELECT is completely menu driven
  2254. from this point.
  2255.  
  2256. SEE ALSO: KEYB for complete list of country and keyboard codes
  2257.  
  2258. # SET
  2259. SET - Sets or displays the command processor's environment
  2260.  
  2261. Application programs and commands may inspect the environment string.
  2262.  
  2263. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2264.  
  2265. USE: SET [name=[parameter]]
  2266.  
  2267. If you enter SET with no parameters, the current settings will be
  2268. displayed.  If you enter SET and name with no parameter, then the
  2269. current setting for name will be deleted from the current environment.
  2270.  
  2271. EXAMPLE: SET EDITOR=ZW
  2272. After this command has been executed, an application program could
  2273. examine the environment string and determine that EDITOR has been set
  2274. equal to ZW This information might be used by the application program
  2275. to start up the user's favourite editor on a file.
  2276.  
  2277. # SHARE #INSTALL
  2278. SHARE - Loads extra support for file sharing and locking
  2279.  
  2280. This command is used primarily by network applications.
  2281.  
  2282. COMMAND TYPE: External                  VERSION: 3.0 and up
  2283.  
  2284. USE:  SHARE [/F:space] [/L:locks]
  2285.  
  2286. /F:space allocates file space in bytes for the area used to
  2287.     record information necessary for file sharing (default 2048).
  2288. /L:locks allocates space for the number of locks that you want.
  2289.   (default 20)
  2290.  
  2291. SHARE is used by MSDOS to prevent multiple programs from attempting to
  2292. write to the same file at once.  Once installed, all read and write
  2293. requests are validated.
  2294.  
  2295. (DOS 4.x and later)
  2296. SHARE may be executed at boot time using INSTALL in CONFIG.SYS
  2297.  
  2298. # SHELL #COMMAND #CONFIG.SYS
  2299. SHELL - Allows another command processor (shell) to be used
  2300.  
  2301. The SHELL command specifies the program to be loaded when the system
  2302. is booted.  It allows another program to be used in of COMMAND.COM.
  2303.  
  2304. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  2305.  
  2306. USE:  SHELL = [d:][path]filename [parameters ...]
  2307.  
  2308. d: path filename specifies the file that will be loaded in place of
  2309.    COMMAND.COM.  Any parameters specified will be passed to this file
  2310.    when it is executed.
  2311.  
  2312. MSDOS sets the COMSPEC environment variable to the filename specified
  2313. in SHELL. This is used to reload the command processor whenever it is
  2314. neccessary.
  2315.  
  2316. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  2317. normal DOS command.
  2318.  
  2319. # SHIFT
  2320. SHIFT - Allows use of more than 10 parameters within a batch file.
  2321.  
  2322. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  2323.  
  2324. USE: SHIFT
  2325.  
  2326. When more than one replaceable parameter is used, SHIFT will shift the
  2327. parameter list one position to the left.
  2328.  
  2329. EXAMPLE: Assume that there is a batch file called COPYFILE.BAT that
  2330. copies files from one drive to another. Also assume that it uses 4
  2331. replaceable parameters, %0, %1, %2, and %3. If you invoke COPYFILE.BAT
  2332. using the replaceable parameters:
  2333.  
  2334.      COPYFILE *.DAT *.EXE *.COM *.BAT
  2335.  
  2336. then %0 equals *.DAT, %1 equals *.EXE, %2 equals *.COM, and %3 equals
  2337. *.BAT.  After a SHIFT command is issued, the list of parameters will shift
  2338. one to the left and, %0 will equal *.EXE, %1 will equal *.COM, and %2 will
  2339. equal *.BAT.
  2340.  
  2341. # SMARTDRV, SMARTDRV.SYS #DEVICE #CONFIG.SYS
  2342. SMARTDRV.SYS - a disc cache in extended or expanded memory (for hard discs)
  2343.  
  2344. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  2345.  
  2346. USE: DEVICE=[d:][path]SMARTDRV.SYS [size] [a]
  2347.  
  2348. d:path is an optional path to the SMARTDRV.SYS file
  2349. size   is the amount of memory to use for the cache (in kb).  The default
  2350.        is 256k in extended memory, or all of available expanded memory.
  2351. /a     specifies that the cache should be placed in expanded memory (or in
  2352.        extended memory being used as expanded memory)
  2353.  
  2354. A disc cache is an area of memory used to store recently accessed
  2355. sectors of a hard disc.  If subsequent read requests refer to those
  2356. same sectors, they are simply transferred within memory, which is much
  2357. faster than reading from the disc.  SMARTDRV.SYS provides a cache in
  2358. extended or expanded memory only (it cannot be placed in convenional
  2359. memory).  It will greatly improve performance for applications which
  2360. use many small files, such as some database applications
  2361.  
  2362. NOTE: This command should be placed in CONFIG.SYS and is not a normal DOS
  2363. command
  2364.  
  2365. # SORT
  2366. SORT - Reads data from a device, sorts it and writes it.
  2367.  
  2368. COMMAND TYPE: External                  VERSION: 2.0 and up
  2369.  
  2370. USE: SORT [/R][/+n]
  2371.  
  2372. /R  causes SORT to sort in reverse order.  For example, Z comes before
  2373.     A and 9 comes before 1.
  2374. /+n causes SORT to sort starting with column n.
  2375.  
  2376. This command is usually used in conjunction with a pipe ( | ) or with
  2377. file redirection ( < or > ).
  2378.  
  2379. EXAMPLE: DIR | SORT /+10
  2380. will read a directory, sort the directory using column 10 (the filename
  2381. extension) to sort by, and then display the directory.
  2382.  
  2383. EXAMPLE: SORT < UNSORTED > SORTED
  2384. will read the file UNSORTED, sort it and write the results to the file
  2385. SORTED.
  2386.  
  2387. # STACKS #CONFIG.SYS
  2388. STACKS - supports the dynamic use of data stacks
  2389.  
  2390. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  2391.  
  2392. USE: STACKS=n,s
  2393.  
  2394. n   number of stacks (0-64)
  2395. s   size of each stack (0-512) in bytes
  2396.  
  2397. When there is a hardware interrupt, MSDOS can switch stacks and allocate a
  2398. new one from the number specified in the STACKS command.  If STACKS=0,0 is
  2399. specified, no stack switching occurs at interrupt time.
  2400.  
  2401. DEFAULTS:
  2402.    IBM PC/XT/PC-portable    0,0
  2403.    IBM AT and PS/2 family   9,128
  2404.  
  2405. NOTE: This command should be placed in CONFIG.SYS and is not a normal DOS
  2406. command
  2407.  
  2408. # SUBST #ASSIGN #JOIN
  2409. SUBST - Refer to a directory as a virtual drive
  2410.  
  2411. COMMAND TYPE: External                  VERSION: 3.1 and up
  2412.  
  2413. USE: SUBST [d:] [d:path] [/D]
  2414.  
  2415. d:     specifies the drive letter that you will use as a substitute
  2416.        for a particular drive and path.  This cannot be the default drive.
  2417. d:path specifies the drive letter and path that you will refer to with a
  2418.        the new drive name.
  2419. /D     deletes a substitution.  You must also specify the drive letter of
  2420.        the drive whose substitution you want to delete.
  2421.  
  2422. Without any arguments, SUBST reports all currently SUBSTituted drives.
  2423.  
  2424. EXAMPLE: SUBST J: C:\DOS
  2425. will allow you to treat the directory C:\DOS as a drive.  After
  2426. executing this SUBST command, DIR J: and DIR C:\DOS would give
  2427. identical results.
  2428.  
  2429. EXAMPLE: SUBST J: /D
  2430. will delete the substitution created in the previous example.
  2431.  
  2432. # SYS #FORMAT #SELECT
  2433. SYS - Transfers the operating system to another disk.
  2434.  
  2435. COMMAND TYPE: External                  VERSION: 2.0 and up
  2436.  
  2437. USE: SYS d:
  2438.  
  2439. d: specifies the drive that you wish to transfer the system files to.
  2440.  
  2441. IBMBIO.COM and IBMDOS.COM are the two hidden files that are copied by
  2442. the SYS command. SYS does not copy the command processor COMMAND.COM
  2443.  
  2444. (DOS 3.3 and earlier)
  2445. DOS expects IBMBIO.COM and IBMDOS.COM to be the first two files in the
  2446. directory. If you get an error using the SYS command it is probably
  2447. because one or both of the first two positions are already occupied.
  2448. This restriction does not apply to DOS 4.0 and later.
  2449.  
  2450. With compatible but non-IBM systems, the MSDOS system files may have
  2451. other names.
  2452.  
  2453. # TIME #DATE
  2454. TIME - Displays and sets the system time.
  2455.  
  2456. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2457.  
  2458. USE: TIME [hh:mm[:ss[.xx]]]
  2459.  
  2460. hh  specifies the hours using 24 hour time format (0 to 23).
  2461. mm  specifies minutes.  (0 to 59)
  2462. ss  specifies seconds.  (0 to 59)
  2463. xx  specifies hundredths of a second. (0 to 99) This is optional
  2464.  
  2465. TIME entered with no parameters will display the current time and give
  2466. you the option to either change the time or leave it as it is.
  2467.  
  2468. EXAMPLE: TIME 15:20
  2469. sets the time to 3:15
  2470.  
  2471. # TREE #DIR
  2472. TREE - Displays all directories and subdirectories on a disk
  2473.  
  2474. It can also list all files in each directory and subdirectory, in a
  2475. tree structured diagram.
  2476.  
  2477. COMMAND TYPE: External                  VERSION: 2.0 and up
  2478.  
  2479. USE: TREE [d:][path] [/F] [/A]
  2480.  
  2481. d:  is the drive whose directory paths will be listed.
  2482. /F  causes TREE to list the individual files in each directory as
  2483.     well as the paths
  2484.  
  2485. (DOS 4.x and later)
  2486. path sets a starting path for the TREE command, rather than using the root
  2487.      directory
  2488. /A   tells TREE to use ascii characters instead of the IBM extended
  2489.      graphics characters.  This is useful for printing on a printer which
  2490.      cannot handle the IBM graphics set.  The older versions of tree
  2491.      always used ascii characters only.
  2492.  
  2493. SEE ALSO: DIR
  2494.  
  2495. # TYPE #MORE
  2496. TYPE  - Lists the contents of a file to the screen
  2497.  
  2498. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2499.  
  2500. USE: TYPE [d:][path]filename
  2501.  
  2502. d: path filename specifies the drive, path, and filename of the file
  2503.    to be TYPEd.
  2504.  
  2505. If the file that you TYPE is not readable, it probably is not a text
  2506. or ascii file.  To view a long file, use MORE to pause at the end of each
  2507. screenful
  2508.  
  2509. SEE ALSO: MORE
  2510.  
  2511. # VDISK, RAMDRIVE, VDISK.SYS, RAMDRIVE.SYS #DEVICE #CONFIG.SYS
  2512. VDISK, RAMDRIVE - sets up a virtual (RAM) disk.
  2513.  
  2514. Virtual disks actually make your computers memory act like a disk
  2515. drive.  As a result, a virtual disk will be much faster than an actual
  2516. disk drive.  MSDOS supplies a device driver to create this virtual
  2517. disc.  Versions up to 3.3 were called VDISK.SYS.  Version 4 calls it
  2518. RAMDRIVE.SYS
  2519.  
  2520. COMMAND TYPE: External                  VERSION: 3.0 and up
  2521.  
  2522. (DOS 3.0-3.3)
  2523. USE:  DEVICE=VDISK.SYS[comment][bbb] [comment][sss][comment][ddd] [/E[:m]]
  2524.  
  2525. comment is a message containing normal text characters.
  2526. bbb  is the size of the virtual disk in kbytes.  Values between 1K and
  2527.      the memory available in your machine will be accepted.
  2528. sss  is the sector size in bytes. 128, 256, and 512 are the sizes that
  2529.      will be accepted.  A smaller sector size will utilize space much
  2530.      better, but a larger sector will improve performance.
  2531. ddd  is the number of files that the virtual disk can hold.  Values
  2532.      between 2 and 512 are accepted.
  2533. /E   will force VDISK to use the extended memory (memory above 1
  2534.      megabyte).
  2535. :m   is the maximum number of sectors of data that VDISK will transfer
  2536.      at a time.  The possible numbers for :m are 1 through 8.
  2537.  
  2538. EXAMPLE: DEVICE=VDISK.SYS 200 256 64
  2539. sets up a virtual disk with 200K storage space, 256 bytes per sector,
  2540. and 64 directory entries.
  2541.  
  2542. (DOS 4.0 and later)
  2543. USE: DEVICE=RAMDRIVE.SYS [bbb] [sss] [ddd] [/E] [/A]
  2544.  
  2545. bbb is the size of the virtual disk in kbytes.  Values between 16K and the
  2546.     memory available in your machine will be accepted.  The default is 64k
  2547. sss is the sector size in bytes. 128, 256, 512 and 1024 are accepted. The
  2548.     default is 512.  A smaller sector size will utilize space much better,
  2549.     but a larger sector will improve performance.
  2550. ddd is the number of root directory entries that the virtual disk can
  2551.     hold. Values between 4 and 1024 are accepted. The default is 64
  2552. /E  will place the virtual disc in extended memory (memory above 1
  2553.     megabyte). This  cannot be specified with /A
  2554. /A  will place the virtual disc in LIM expanded memory.  This cannot be
  2555.     specified with /E
  2556.  
  2557. NOTE: The VDISK.SYS or RAMDRIVE.SYS device drivers must be placed in the
  2558. CONFIG.SYS file and be used in conjunction with the DEVICE = DRIVER
  2559. command.
  2560. NOTE: The contents of a virtual disc will be lost when you reset or turn
  2561. off the computer
  2562.  
  2563. # VER
  2564. VER - Displays the version of DOS that you are currently using.
  2565.  
  2566. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2567.  
  2568. USE: VER
  2569.  
  2570. # VERIFY #COPY #XCOPY #DISKCOPY
  2571. VERIFY - Turns disk write verification on or off.
  2572.  
  2573. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2574.  
  2575. USE: VERIFY [ON] [OFF]
  2576.  
  2577. ON  will turn VERIFY ON
  2578. OFF will turn VERIFY OFF.
  2579.  
  2580. With no argument, VERIFY will report the current setting of VERIFY.
  2581. When VERIFY is ON, DOS will check to see if data written was written
  2582. correctly.  With VERIFY ON, all disk operations (copy, xcopy, diskcopy
  2583. etc. will be slower)
  2584.  
  2585. # VOL #LABEL #FORMAT
  2586. VOL - Displays the VOLUME LABEL of the specified diskette.
  2587.  
  2588. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2589.  
  2590. USE: VOL [d:]
  2591.  
  2592. d: is the drive whose VOLume label will be displayed.  The default
  2593. drive is assumed if none is specified.
  2594.  
  2595. SEE ALSO: LABEL
  2596.  
  2597. # XCOPY #COPY #VERIFY #DISKCOPY
  2598. XCOPY - Copies groups of files.  Subdirectories can be included.
  2599.  
  2600. XCOPY copies groups of files based on various switches.  It can copy
  2601. entire subdirectory trees and is much more powerful than COPY.
  2602.  
  2603. COMMAND TYPE: External                  VERSION: 3.2 and up
  2604.  
  2605. USE:  XCOPY [d:][path]filename1 [d:][path][filename2] [/A][/D][/E]
  2606.             [/M][/P][/S][/V][/W]
  2607. or    XCOPY [d:] path [filename1] [d:][path][filename2] [/A][/D][/E]
  2608.             [/M][/P][/S][/V][/W]
  2609. or    XCOPY d:[path] [filename1] [d:][path][filename2] [/A][/D][/E]
  2610.             [/M][/P][/S][/V][/W]
  2611.  
  2612. d: path filename1 specifies the source drive, path, and filename.
  2613. d: path filename2 specifies the destination drive, path, and filename.
  2614. /A   copies only those files that have been modified since the last
  2615.      BACKUP /M or XCOPY /M.
  2616. /D   copies files whose date is equal to or later than the date
  2617.      specified.  If you wish to specify a date, the format is
  2618.      /D:mm-dd-yy or whatever date format you may have selected using
  2619.      the COUNTRY or SELECT commands.
  2620. /E   causes XCOPY to create subdirectories on the destination drive
  2621.      as it copies.
  2622. /M   copies only those files that have been modified since the last
  2623.      BACKUP /M or XCOPY /M.  The /M option is identical to the /A
  2624.      option except XCOPY /M will reset the flags on those files that
  2625.      have been modified since the last backup.
  2626. /P   causes XCOPY to prompt you before copying each file.
  2627. /S   causes XCOPY to copy files in any subdirectories below the
  2628.      directory that XCOPY starts in.
  2629. /V   causes XCOPY to VERIFY that the data recorded was recorded
  2630.      correctly.
  2631. /W   causes XCOPY to wait for you to insert a disk before beginning.
  2632.  
  2633. EXAMPLE: XCOPY C:\ D:\ /S
  2634. will copy all files in all directories from drive C: to drive D:.
  2635.  
  2636. SEE ALSO: COPY
  2637. ZW2.10EΦ
  2638. PRN╕ TXT    p#)0-5:s  ?pp    sfarofwGPcftOcpRHRartaw