home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / other / doshelp.lzh / DOSHELP.DAT next >
Text File  |  1990-03-30  |  90KB  |  1,809 lines

  1.      ═══════════════════ DOS HELP - Version 2.1 ═══════════════════
  2.  
  3.              (c) Copyright 1990 by Richard Guenette
  4.  
  5.        DOSHELP is a guide to MS-DOS that will help you use your PC.  All
  6.        command examples show a prompt for drive C.  Your prompt may vary
  7.        with the drives and Prompt command used.  DOSHELP is based on DOS
  8.        3.2 but will answer most questions about all DOS versions.  Check
  9.        the DOS VERSIONS topic heading if you have another version of DOS
  10.        and can't find a command topic.
  11.  
  12.        You may use, copy, and distribute DOSHELP free of charge.  You may
  13.        not alter the program without permission.  No one may sell DOSHELP,
  14.        or include it as part of a system for sale.  Computer user groups,
  15.        shareware software houses, BBS sysops, and information utilities
  16.        may charge a cost-based fee of no more than $8 to distribute it.
  17.  
  18.        DOSHELP is not meant to replace a complete MS-DOS reference work.
  19.        While this program was prepared with care, it is provided on an
  20.        as-is basis without guarantees of any kind.  The author assumes
  21.        no risk for any consequences arising from its use.
  22. ANSI.SYS is a device driver that comes with DOS.  ANSI.SYS can be used to:
  23.  
  24.        ■ Control cursor position         ■ Set screen colors
  25.        ■ Control character attributes         ■ Reassign Keys
  26.  
  27. Before it can be used, ANSI.SYS must appear in a line of your CONFIG.SYS file
  28. that looks something like: DEVICE=C:\BIN\ANSI.SYS.  In this case the computer
  29. is being told to look for ANSI.SYS in the BIN directory of drive C.  Locate
  30. ANSI.SYS on your drive and tell the computer where to find it.
  31.  
  32. ANSI.SYS works by using ESCAPE SEQUENCES.  Such sequences begin with the ESC
  33. (ASCII 27) character.  The ESC character looks like a left facing arrow ().
  34. See the ESC CODES topic heading to learn how to type ESCAPE.  Most ASCII text
  35. editors can be used to write escape sequences.    Save your escape sequences as
  36. a batch (BAT) file using the technique shown below.  Enter the name of the
  37. file at the DOS prompt to accomplish the desired result.
  38.  
  39.              ECHO  ESCAPE SEQUENCE  >  CON
  40.  
  41. If the line above had been saved as DOG.BAT, entering "DOG" at the DOS prompt
  42. would echo, or send, the escape sequence to the computer console (CON).
  43. APPEND sets the system search path for data files.  The function of APPEND
  44. is complementary to the PATH command, which searches for executable files.
  45. Put a semicolon in the search path of an APPEND command to tell the system
  46. to return to the root directory and begin a new search path.  In this way
  47. an APPEND command can be set to search more than one directory at a time.
  48. Some examples:
  49.  
  50.  
  51. C: APPEND              (Display current search path for data files.)
  52.  
  53. C: APPEND ;              (Set the data file search path to no path.)
  54.  
  55. C: APPEND  C:\TANK\SPEAR;\JUNE      (Search for data files on drive C.  Search
  56.                    the TANK directory off the root and the
  57.                    SPEAR subdirectory of TANK. Return to the
  58.                    root and search the JUNE directory.)
  59. ASSIGN is used to assign a drive designation to a different disk drive.  ASSIGN
  60. is typically used on systems that have acquired a new disk drive with old batch
  61. files that are "hard wired" to deal with an old drive letter.  ASSIGN should
  62. not be used with the BACKUP or PRINT command.  It's not a good idea to make a
  63. habit of using the ASSIGN command since it hides the true device type from
  64. commands that ask for that information.  Some examples:
  65.  
  66.  
  67. C: ASSIGN  B = A      (Assign the B drive designation to drive A so that
  68.                when drive B is asked for, drive A will be called.)
  69.  
  70. C: ASSIGN  A = C      (Assign the A drive designation to drive C so that
  71.                when drive A is asked for, drive C will be called.)
  72.  
  73. C: ASSIGN          (Cancel the effect of previous ASSIGN commands.)
  74. The ATTRIB command is used to display, set, or reset the READ-ONLY and ARCHIVE
  75. attribute of a file.  Each file has these attributes recorded as part of its
  76. directory entry in DOS.  The options for the ATTRIB command are:
  77.  
  78.               +R  =  Set the read-only attribute
  79.               -R  =  Clear the read-only attribute
  80.               +A  =  Set the archive attribute
  81.               -A  =  Clear the archive attribute
  82.  
  83. The archive attribute is automatically set whenever the file is written to or
  84. altered.  This can prove useful.  The BACKUP command, for example, can be
  85. made to work only with files whose archive attribute has been set.  Examples:
  86.  
  87.  
  88. C: ATTRIB  *.*              (Show file attributes in the current directory.)
  89.  
  90. C: ATTRIB  -A  C:\BIN\*.EXE   (Remove the archive attribute from all EXE
  91.                    type files in the BIN directory of drive C.)
  92.  
  93. C: ATTRIB  +R  TEST.C          (Add the read-only attribute to the TEST.C file.)
  94. AUTOEXEC.BAT is a special file that you can use to help customize the way your
  95. PC works.  The system automatically looks for AUTOEXEC.BAT when it starts up
  96. and will execute any commands it contains.  To make certain that AUTOEXEC.BAT
  97. can be found you should place it in the ROOT directory of your boot disk.
  98. AUTOEXEC.BAT is a BATCH file and is governed by the same rules as other batch
  99. files.    Here is a sample AUTOEXEC.BAT with explanations in parentheses:
  100.  
  101.   │  PROMPT $P$G       (Set DOS prompt to show PATH and ">" character)
  102.   │  PATH = C:\WP;\BIN       (Set system search path to C:\WP and C:\BIN)
  103.   │  MOUSE           (Install a mouse by running the mouse program)
  104.   │  MENU           (Run the MENU program)
  105.  
  106. The last line of the AUTOEXEC.BAT file contains the last command the PC will
  107. execute as part of its start up routine.  In this case a MENU program is run
  108. so that the user can select a desired activity from a menu.
  109.  
  110.    NOTE:  Software installation routines sometimes overwrite AUTOEXEC.BAT.
  111.    ════   It's a good idea to keep a copy of the file under another name.
  112. BACKUP is used to back files up from one disk to another.  The first drive
  113. specified is the source drive, the 2nd is the destination.  You should create a
  114. supply of blank formatted diskettes before using BACKUP.  The RESTORE command
  115. is used to restore files backed up with BACKUP.  BACKUP uses these parameters:
  116.  
  117.        /S  - Backup any subdirectories found.
  118.        /M  - Backup only files modified since the last backup.
  119.        /D: - Backup only those files after a certain DATE.
  120.        /T: - Backup only those files after a certain TIME.
  121.        /L: - Make a backup LOG file under a specified filename.
  122.  
  123. C: BACKUP  A:  C:      (Backup drive A into the BACKUP dir of drive C.)
  124.  
  125. C: BACKUP  C:\    A: /S      (Backup all of C, with subdirectories, onto drive A.)
  126.  
  127. C: BACKUP  C:\    A: /D:4-02-88      (Backup files dated since 4/2/88 from the
  128.                    root directory of drive C onto drive A.)
  129.  
  130. C: BACKUP C:\*.TXT A: /L:MAY.LOG  (Backup all TXT type files in the root dir of
  131.                    C onto drive A.  In the process create a
  132.                    backup log file called MAY.LOG on drive C.)
  133. BATCH files are executable files that contain DOS commands.  These commands
  134. are assembled in order to automate tedious processes.  Batch files can include
  135. the use of replaceable parameters, conditional statements, branching and
  136. labels.  No attempt is made here to teach you how to write batch files.  The
  137. best way to learn how to use batch files is to study BAT files written by
  138. other people.  Some BATCH file rules:
  139.  
  140.    ■  Batch files always end with a "BAT" extension.
  141.    ■  Batch files are composed of ASCII text and written in text editors.
  142.    ■  To run a batch file, just type the filename at the DOS prompt.
  143.    ■  BAT, COM, and EXE files are all executable files.  DOS runs COM or EXE
  144.       files of the same name before a BAT file.  Be careful to give your BAT
  145.       files unique names so this doesn't happen.
  146.    ■  Press CONTROL+C to stop a batch file while it is executing.
  147.    ■  A batch file can run another batch file, but the new file won't return
  148.       to the original file.  In most cases COMMAND can be used with the /C
  149.       parameter to circumvent this problem.   (See COMMAND)
  150.    ■  The following DOS commands can only be used in batch files:  IF, GOTO,
  151.       PAUSE, REM, and SHIFT.
  152.    ■  Batch files can be written to work with parameter information entered
  153.       after the batch file name on the DOS command line.
  154. The BREAK command specifies when DOS will check to see if CONTROL+C has been
  155. pressed.  The CONTROL+C combination is used to stop, or break, a program.  The
  156. possible variants of the BREAK command are shown below.
  157.  
  158.  
  159. C: BREAK             (Display the current BREAK checking status.)
  160.  
  161. C: BREAK ON             (Check to see if CONTROL+C has been pressed
  162.                   whenever program requests a DOS function.)
  163.  
  164. C: BREAK OFF             (DOS should check to see if CONTROL+C has been
  165.                   pressed only during keyboard, screen, or
  166.                   asynchronous communications operation.)
  167. BUFFERS is a command line that appears in the CONFIG.SYS file.    The buffer line
  168. determines how much memory is set aside to hold data that is read and written
  169. from disk storage.  You might think of this as the size of a spoon being used
  170. to eat a bowl of soup.    If the spoon is too small, you'll have to use the spoon
  171. a great deal and will only be able to eat the soup SLOWLY!
  172.  
  173.         The BUFFERS line in CONFIG.SYS will look like:
  174.  
  175.                  BUFFERS = nn
  176.  
  177. Where "nn" is some number between 1 and 99.  If there is no BUFFERS line, the
  178. default value is 2.  Each "1" added to this number takes away roughly 500 bytes
  179. of memory from other system uses.
  180.  
  181. Setting BUFFERS correctly can IMPROVE PERFORMANCE DRAMATICALLY!   A slow and
  182. chattering disk drive is the chief symptom indicating that the number of
  183. BUFFERS should be enlarged.  Assigning too many buffers wastes memory and slows
  184. performance as well.  A good range to set buffers for most hard disk systems is
  185. 12 to 24.
  186. The DOS command to change directories is spelled either CD or CHDIR.  This
  187. command is used to change the location of the current directory in the drive
  188. specified.  If no drive is specified the current drive is assumed.  If CD or
  189. CHDIR is used without any trailing information it will show the directory the
  190. system is currently located in.  Some examples:
  191.  
  192.  
  193. C: CHDIR           (Show me the directory I'm in on the C drive.)
  194.  
  195. C: CD \            (Move to the root directory)
  196.  
  197. C: CD..            (Move to the parent directory of the current directory.)
  198.  
  199. C: CD STAMPS           (Move to the STAMPS subdirectory of current directory.)
  200.  
  201. C: CD \STAMPS           (Move to the STAMPS subdirectory of the root directory.)
  202.  
  203. C: CD A:\BOOT           (Change the current directory on drive A to the BOOT
  204.             subdirectory, but remain in drive C.)
  205.     PC characters from 1 to 31 are symbols in some environments, but in DOS
  206.     these characters are CONTROL KEY codes, not symbols. The CARET (^) symbol
  207.     stands for the CONTROL key. Thus  "^C"  means CONTROL+C.  Symbols from 32
  208.     to 126 are standard typewriters characters used on all QWERTY keyboards.
  209.   ─────────────────────────────────────────────────────────────────────────────
  210.    0·(nul)   16·^P     32·space  48·0       64·@      80·P    96·`     112·p
  211.    1·^A      17·^Q     33·!     49·1       65·A      81·Q    97·a     113·q
  212.    2·^B      18·^R     34·"      50·2      66·B      82·R       98·b     114·r
  213.    3·^C      19·^S     35·#     51·3       67·C      83·S    99·c     115·s
  214.    4·^D      20·^T     36·$     52·4       68·D      84·T      100·d     116·t
  215.    5·^E      21·^U     37·%     53·5       69·E      85·U      101·e     117·u
  216.    6·^F      22·^V     38·&     54·6       70·F      86·V      102·f     118·v
  217.    7·^G      23·^W     39·'      55·7      71·G      87·W      103·g     119·w
  218.    8·^H      24·^X     40·(     56·8       72·H      88·X      104·h     120·x
  219.    9·^I      25·^Y     41·)     57·9       73·I      89·Y      105·i     121·y
  220.   10·^J      26·^Z     42·*     58·:       74·J      90·Z      106·j     122·z
  221.   11·^K      27·ESC    43·+     59·;       75·K      91·[      107·k     123·{
  222.   12·^L      28·^\     44·,     60·<       76·L      92·\      108·l     124·|
  223.   13·^M      29·^]     45·-     61·=       77·M      93·]      109·m     125·}
  224.   14·^N      30·^^     46·.     62·>       78·N      94·^      110·n     126·~
  225.   15·^O      31·^_     47·/     63·?       79·O      95·_      111·o     127·
  226. CHKDSK is the DOS command used to check a disk.  CHKDSK analyses disk contents,
  227. checking for inconsistencies between the FAT (File Allocation Table) and
  228. directories.  CHKDSK tells you how many files and directories are on a disk
  229. and how much space they take up.  CHKDSK also reports the amount of memory
  230. available to the system.  CHKDSK uses the following parameters:
  231.  
  232.     /F    - Correct inconsistencies between the FAT and directories.
  233.     /V    - Display all file and directory names as they are being processed.
  234.  
  235.          Here are some examples of the CHKDSK command:
  236.  
  237. C: CHKDSK A:           (Run the Check Disk program on drive A.)
  238.  
  239. C: CHKDSK /F /V        (Run Check Disk on drive C, displaying all files
  240.                 and directories in the process.  Correct any
  241.                 differences between the FAT and directories.)
  242.  
  243. C: CHKDSK *.COM        (Run Check Disk on drive C.    Display fragmentation
  244.                 information on all COM type files.)
  245. 
  246.     The CLS command is used to home the cursor and clear the screen in DOS.
  247.  
  248.  
  249. C: CLS        (Clear the screen and send the cursor to the upper left hand
  250.          corner of the screen.    If ECHO ON is in effect, show the DOS
  251.          prompt.  If ECHO OFF is in effect, show only the cursor.)
  252. COMMAND.COM is the portion of DOS that contains all the internal commands.
  253. Internal commands (such as DIR) are those that do not have separate program
  254. files.    When COMMAND is issued, a "child" version of COMMAND.COM is run under
  255. the original "parent" version.  This consumes about 3K of RAM.  The EXIT
  256. command is used to return to the "parent" version.  COMMAND parameters are:
  257.  
  258.   /P         - Make the new version of COMMAND.COM permanent in memory.
  259.   /C string  - Execute the command specified by the string and return
  260.            to the original version of COMMAND.COM.
  261.   /E:nn      - Set the size of the DOS environment to "nn" number of bytes.
  262.  
  263.                    Some Examples ...
  264.  
  265. C: COMMAND /P           (Run a child version of COMMAND.COM that is
  266.                 permanent in memory.)
  267.  
  268. C: COMMAND /E:2048       (Reserve 2048 bytes for the DOS environment space.)
  269.  
  270. C: COMMAND /C  GO.BAT       (Run a new version of COMMAND.COM, run GO.BAT and
  271.                 then return to the original version of COMMAND.COM.
  272.                 This command returns to a batch file that uses it.)
  273. CONFIG.SYS is a file used to help configure your PC.  CONFIG.SYS consists of a
  274. series of statements that control many aspects of the way the PC works.  When
  275. the PC is started, the system looks for CONFIG.SYS in the root directory of the
  276. boot drive.  CONFIG.SYS can be created or edited in an ASCII text editor.
  277. Changes made in CONFIG.SYS take effect when the PC is rebooted.
  278.  
  279. Commands like BUFFERS and FILES are of general interest while others like
  280. FCBS and DRIVEPARM should only be used by technically expert users.
  281.  
  282.     ────────────── The Following Commands Appear in CONFIG.SYS: ───────────
  283.  
  284.  BREAK       = ON (or) OFF
  285.  BUFFERS   = nn  (where "nn" is a number from 1 to 99)
  286.  COUNTRY   = nnn (where "nnn" is a three digit country code)
  287.  DEVICE    = DRIVE:\PATH\FILENAME  (tell the system where to find the file)
  288.  DRIVEPARM = (various block device parameters)
  289.  FCBS       = m,n (where "m" & "n" are numbers relating to file control blocks)
  290.  FILES       = nn  (where "nn" is a number from 8 to 255.  Default is 8)
  291.  LASTDRIVE = D     (where "D" is the highest drive letter allowed)
  292.  SHELL       = DRIVE:\PATH\FILENAME  (tell the system where to find the file)
  293. COPY may be the most widely used command in DOS.  COPY copies one or more files
  294. from one disk location to another.  COPY can create files, concatenate several
  295. small files into a large one, or transfer data between any of the DOS devices
  296. like the screen and the printer.  COPY uses the following parameters:
  297.  
  298.  /A  - Treat files as ASCII text files.  Data is copied up to the first
  299.        CONTROL+Z character encountered.  A CONTROL+Z end-of-file marker
  300.        will be appended to a destination file created by COPY.
  301.  /B  - Treat files as BINARY files.  Copy the entire file based on
  302.        its directory size.  Ignore CONTROL+Z as an end-of-file marker.
  303.  /V  - Causes DOS to VERIFY if the file was copied properly.  This has the
  304.        same effect as using the VERIFY ON command.
  305.  
  306. COPY can be used to concatenate up to four files into a destination file that
  307. includes them all.  The format for this is shown here:
  308.  
  309.             COPY  FILE1+FILE2+FILE3+FILE4  NEWFILE
  310.  
  311. A plus sign (+) appears between each of the files being joined.  The new file
  312. created appears at the end of the command.
  313. The COUNTRY command lets you set the date & time format, currency symbol, and
  314. decimal separator used in DOS so that they match the usage in a particular
  315. country.  This command appears in the CONFIG.SYS file as follows:
  316.  
  317.                  COUNTRY = nnn
  318.  
  319. Where "nnn" is a three digit country code.  If no COUNTRY command is used the
  320. system is set to the USA by default.  Below is a table of COUNTRY CODES.
  321.  
  322.  
  323.    Australia -- 061        Germany ----- 049           Portugal ------- 351
  324.    Belgium ---- 032        Israel ------ 972           Spain ---------- 034
  325.    Canada ----- 002        Italy ------- 039           Sweden --------- 046
  326.    Denmark ---- 045        Netherlands - 031           Switzerland ---- 041
  327.    Finland ---- 358        Norway ------ 047           United Kingdom - 044
  328.    France ----- 033                       United States -- 001
  329. The CTTY command changes the standard input (keyboard) and output (screen) used
  330. by the system to an auxiliary console.    It is also used to restore the standard
  331. input and output devices.  Some examples:
  332.  
  333.  
  334. C: CTTY AUX    (Transfer the system's standard input (keyboard) and output
  335.          (screen) to the auxiliary, or AUX device.  AUX is typically a
  336.          remote PC accessed through a serial port and telephone line.)
  337.  
  338. C: CTTY CON    (Transfer the system's standard input and output back to the
  339.          original console (CON) from some auxiliary device. NOTE: This
  340.          command must be issued from the AUX device.)
  341. The DATE command sets the date that is stamped on files when they are copied
  342. or altered.  It is important to note that the DATE command doesn't necessarily
  343. permanently alter the real time system clock.  On AT type systems, unless DOS
  344. 3.3 is being used, the SETUP.COM program must be run to change the backup
  345. memory that keeps track of the system clock.  Using a DATE command in such
  346. systems will lose its effect the first time the system is shut off.  On PC/XT
  347. type systems the situation varies, depending on the way the clock has been
  348. implemented.  In some cases time/date clocks have been added as a 3rd party
  349. add-on.  You may have to consult the documentation that came with such a clock
  350. if you have one.  You can test how your system uses DATE and TIME commands by
  351. executing a TIME command and then seeing if it is still in effect after the
  352. computer has been shut off.
  353.  
  354. The format of the DATE command is determined by the COUNTRY statement in effect
  355. in CONFIG.SYS.    An example:
  356.  
  357.  
  358. C: DATE  02-05-88        (Change system date to the 5th of February, 1988
  359.                  using USA format.)
  360. DEL is the command used to delete files.  ERASE can also be used for this
  361. purpose and is functionally identical to DEL.  Simply type DEL followed by
  362. the filename(s) to be deleted.    Wildcard characters can be used with DEL.  The
  363. command "DEL *.*" represents a request to delete all files in the current
  364. directory.  In such cases DOS asks the following question as a safety
  365. precaution:
  366.                  Are you sure? (Y/N)?
  367.  
  368. Typing a "Y" proceeds to delete the files.  Unfortunately, using wildcard
  369. characters with DEL is both dangerous and very convenient.  An easy way to
  370. "reality test" a DEL command with wildcard characters is to issue a DIR
  371. command with the same wildcards first.    Some examples:
  372.  
  373. C: DEL    CONFIG.DOC       (Delete the CONFIG.DOC file from current directory.)
  374.  
  375. C: DEL    \BIN\*.BAT       (Delete all of the files with a BAT extension
  376.                 in the BIN directory of the current drive.)
  377.  
  378. C: DEL    A:\*.*           (Delete all files in the ROOT directory of drive A.)
  379. DEVICE is a command line that appears in the CONFIG.SYS file.  DEVICE lines are
  380. used to implement device drivers when the PC starts up.  Device drivers are
  381. programs that modify the way the PC's operating system works.  Device drivers
  382. are often used to allow a PC to work with a new piece of equipment.  For
  383. example, a device driver might let DOS access a hard disk with a 300 megabyte
  384. partition, use a new scanner, create a "DOS" command to use the PC's internal
  385. speaker, or use RAM memory as a disk - the possibilities are endless.
  386.  
  387. Creating a new DEVICE line in CONFIG.SYS is frequently part of the installation
  388. procedure for a new piece of hardware.    The format for DEVICE is:
  389.  
  390.                DEVICE = DRIVE:\PATH\FILE
  391.  
  392. DEVICE = \HDRIVE.SYS           (Run the HDRIVE.SYS device driver from the
  393.                     root directory of the current disk drive.)
  394.  
  395. DEVICE = D:\BIN\SPEAKER.SYS       (Run the SPEAKER.SYS device driver from
  396.                     from BIN directory of drive D.)
  397.  
  398. DEVICE = C:\VDISK.SYS /2 /9 /L256  (Using various parameters, run VDISK.SYS
  399.                     from drive C to create a virtual disk.)
  400. A handful of device names exist in DOS that identify various system components.
  401. These device names cannot be used to name files.  Device names in DOS include:
  402.  
  403.  ■ AUX:  The AUXiliary device - typically a remote PC through a phone line.
  404.  ■ COMx: Serial communications port. COM1 is the 1st serial port, COM2 the 2nd.
  405.  ■ CON:  The CONsole, refers the screen for output and the keyboard for input.
  406.  ■ LPTx: A parallel port line printer - either LPT1, LPT2, or LPT3.
  407.  ■ PRN:  A generic term for the printer, often used interchangeable with LPTx.
  408.  ■ NUL:  The null device - also known as "the bit bucket", or oblivion.
  409.  
  410. Devices can be treated in DOS command much like files.    Some examples:
  411.  
  412. Copying keystrokes   │ C: COPY    CON  CONSOLE.TXT <RETURN>
  413. to a file on disk    │ These keystrokes will be copied to the console. <RETURN>
  414. through the CONsole  │ <CTRL + Z>  <RETURN>  (Message appears: "1 file copied")
  415.  
  416. Copying keystrokes   │ C: COPY    CON  PRN
  417. to the printer         │ These keystrokes will be copied to the printer. <RETURN>
  418. through the CONsole  │ <CTRL + Z>  <RETURN>
  419.  
  420. Copy file to printer │ C: COPY NOTES.TXT PRN   ..Or..    C: COPY NOTES.TXT LPT1
  421. The DIR command produces directory listings from disk drives.  DIR can be
  422. followed by a filename, directory disk path, or wildcard characters.  The
  423. resulting display will depend on the information requested.  The DIR command
  424. uses the following parameters:
  425.  
  426.           /P -  Displays the directory one screen at a time.
  427.           /W -  Displays the directory in the WIDE format.
  428.  
  429.                 Some examples:
  430.  
  431. C: DIR /P          (Display the current directory one screen at a time.)
  432.  
  433. C: DIR *.          (Display all subdirectories & files without
  434.                filename extensions in the current directory.)
  435.  
  436. C: DIR \BIN          (Display a subdirectory of the ROOT dir called BIN.
  437.                A file called BIN will not respond to this command.)
  438.  
  439. C: DIR *.DOC /W       (Show all the DOC files in the wide format.)
  440. DISKCOMP is used to compare the contents of a source and target disk drive.
  441. Specify the same drive letter twice when you wish to compare two disks when you
  442. only have one drive.  DOS will prompt you to insert and remove both disks as
  443. needed.  Some examples:
  444.  
  445.  
  446. C: DISKCOMP A: B:         (Compare the disks in drive A and B.)
  447.  
  448. C: DISKCOMP A: A:         (Compare two disks in drive A.  Prompt me
  449.                   to insert and remove disks, as necessary.)
  450. DISKCOPY makes a copy of a diskette.  To use DISKCOPY simply follow the command
  451. by a SOURCE and DESTINATION drive letter.  It is important to remember that the
  452. first drive listed will be treated as the source drive.  You can make a copy of
  453. a diskette if you only have one disk drive by specifying the same drive twice.
  454. DOS will prompt you to insert and remove diskettes as needed.  DISKCOPY makes a
  455. complete copy of a disk including all subdirectories.  This makes DISKCOPY
  456. easier to use than the COPY command whenever making copies of diskettes with
  457. subdirectories.  Some examples:
  458.  
  459.  
  460. C: DISKCOPY A: B:      (Copy the disk in drive A onto drive B.)
  461.  
  462. C: DISKCOPY A: A:      (Copy a disk in drive A onto another disk in drive A,
  463.                Prompt me to insert and remove disks, as needed.)
  464.  
  465. Various CONTROL key combinations are available while in DOS.  These key
  466. combinations are literally formed by holding down the CONTROL key while
  467. pressing some other key.  The main set of CONTROL key combinations comes from
  468. pressing CONTROL with the letters of the alphabet, A through Z.  When many of
  469. these keys are pressed, a caret and letter appear.  For example, pressing
  470. CONTROL+R causes "^R" to appear.  CONTROL key combinations with special
  471. control functions in DOS are listed here.
  472.  
  473.        CONTROL + C - Terminate the current command or program.
  474.        CONTROL + J - Insert a physical end to the DOS command line,
  475.              repositioning the cursor on the next line.
  476.        CONTROL + S - Freeze the screen display.
  477.        CONTROL + Q - Resume screen display after pressing CONTROL+S.
  478.        CONTROL + P - Send/stop sending (toggle) screen content to printer.
  479.              Be certain a printer is connected and on before
  480.              pressing CONTROL+P!
  481.        CONTROL + Z - Insert an End-of-file marker in a text file.  CONTROL+Z
  482.              is used with the COPY CON command. (See DEVICE NAMES)
  483.      SHIFT + PrtSc - Dump the screen contents to the printer.
  484.      ALT + Numeric - Display the character associated with the number of the
  485.        Keypad    ASCII value typed on the keypad while holding the ALT key.
  486. DOS functions as a one-line editor, accepting commands one line at a time.
  487. Until the RETURN key is pressed, the command currently being worked on is kept
  488. in a memory space called the COMMAND LINE BUFFER.  The most recently issued
  489. command is kept in another small memory buffer called the TEMPLATE.  The list
  490. below shows the keys used in the DOS "editor".
  491.  
  492.        RETURN - Do It!  Execute the current command!
  493.            F1 - Copy 1 character from the template to the command line.
  494.       F2 char - Copy characters up to "char" from template to command line.
  495.            F3 - Copy template to the command line (recall last command).
  496.       F4 char - Skip characters in template up to "char".  The
  497.             fragment selected can then be recalled with F3.
  498.            F5 - Copy the command line to the template.
  499.            F6 - Place a CONTROL+Z (^Z) in the command line.
  500.        DELETE - Delete a character from the template.
  501.        INSERT - Insert mode toggle.  Typeover is the default.
  502.           ESC - Escape, or void, the current command line input.
  503.     BACKSPACE - Delete character to left of cursor.
  504.        LEFT ARROW - Same as backspace.
  505.       RIGHT ARROW - Same as F1.
  506. This topic details most of the changes that distinguish various versions of
  507. DOS.  If you're having persistent problems using a command you may discover the
  508. cause here.  DOS has evolved and grown in power with each successive release.
  509. Many commands present in the current DOS don't exist in older versions and some
  510. commands have added capabilities along the way.  DOS HELP is based on 3.20, a
  511. version still widely used.  To check the DOS version, type "VER" at the prompt.
  512.  
  513. The original version of DOS has long since fallen into disuse.    DOS 2.0 added
  514. commands to work with hard disks and multi-level directories.  DOS 2.X systems
  515. create disk FAT (File Allocation Table) tables that are incompatible with large
  516. hard disk volumes written under DOS 3.X.  Such volumes are corrupted if written
  517. to by DOS 2.X.    DOS 2.X also lacks commands to support networked environments.
  518. You should upgrade to version 3.20 or higher if you haven't done so already.
  519.  
  520. Differences exist between IBM's PC-DOS and MS-DOS bearing the same version
  521. number.  Commands released in a one are not always present in the other.
  522. Although most of the information here is relevant to both, the following
  523. notes refer to MS-DOS.
  524.  
  525. DOS 2.1 added the PROMPT command and fixed various bugs in version 2.0.  The
  526. following screens list changes made in later versions of DOS.
  527. DRIVEPARM is a command line that appear in the CONFIG.SYS file that lets you
  528. define parameters for block devices when DOS starts up.  DRIVEPARM is not a
  529. command that the average user should need to use.
  530.  
  531. DRIVEPARM might appear in CONFIG.SYS in a line similar to the one shown here:
  532.  
  533.             DRIVEPARM=/D:01 /C /F:1 /H:2 /S:9 /T:80
  534.  
  535.  
  536.             Parameters used with DRIVEPARM Include:
  537.  
  538.  /D:  Indicates a logical drive number from 0 to 255 (0="A", 1="B", etc.)
  539.  /F:  Indicates drive form factor (0=360K/1=1.2meg/2=720K/3=8" single
  540.         density/4=8" double density/5=hard disk/6=tape drive/7=other)
  541.  /H:  Indicates the maximum head number (1 to 99)
  542.  /N:  Indicates nonremoveable block device
  543.  /S:  Indicates the number of sectors per track (1 to 99)
  544.  /T:  Indicates the number of tracks per side (1 to 999)
  545. ECHO is DOS command used in batch files.  ECHO determines whether or not
  546. command displays are sent to the screen.  ECHO is typically used at the start
  547. of batch files to streamline the look of the file as it executes.  Command
  548. output is not affected by ECHO.  DIR and other commands still send their
  549. output to the screen when ECHO is set to OFF.
  550.  
  551. ECHO         - Show ECHO status
  552.  
  553. ECHO ON      - Turn screen commands on
  554.  
  555. ECHO OFF     - Turn screen commands off
  556.  
  557. ECHO String  - Send the String to the screen as a message
  558.  
  559. ECHO.         - Insert a blank line on screen.  The period must immediately
  560.            follow the ECHO command.
  561.  
  562.   NOTE:  In DOS 2.X, blank lines are echoed by typing a space after ECHO and
  563.   ════     pressing RETURN.  For blank lines in DOS 3.0, follow ECHO with CHR 255
  564.      by holding down the ALT key while typing 255 on the numeric keypad.
  565. The DOS environment is a memory space maintained by DOS that contains variable
  566. information.  This information can be referred to by any program running under
  567. DOS.  The DOS environment represents a place where programs and processes can
  568. leave messages for each other.    You can see the contents of the environment by
  569. typing the command "SET" at the prompt.
  570.  
  571. The environment typically contains the COMSPEC, which shows the location of the
  572. command processor, and the PATH, which shows where the system looks for
  573. executable files.  A PROMPT variable may also appear if the system prompt has
  574. been altered.  Any number of user defined variables may also be present.
  575.  
  576. You can use the SET command to place your own variable values into the
  577. environment.  This ability can be used when writing batch files.  "IF"
  578. statements in batch files can check user variables in the environment and
  579. alter the action of the file depending on what is found.
  580.  
  581. The size of the DOS environment can be enlarged by using the /E parameter with
  582. COMMAND.COM.  This be done as part of the PC startup procedure by using COMMAND
  583. in the shell statement of CONFIG.SYS.
  584. Here are some examples of escape sequences that can be used with the ANSI.SYS
  585. device driver.    The ESC character (ASCII 27) can be created in most text
  586. editors by holding down the ALT key, typing 27 on the numeric keypad, and
  587. releasing the ALT key.    Escape sequences start with ESC () followed by the
  588. open square bracket ([).  This is followed by a parameter, which is usually a
  589. number, and a command identifier, typically a letter.  The command identifier
  590. identifies the type of action being performed by the escape sequence.  Consult
  591. a DOS reference work for a complete list of these escape sequences.
  592.  
  593.   ────────────────────────  Video Attributes & Modes  ───────────────────────
  594.          (Set character attributes to normal.)
  595.          (Turn reverse video on.) (Also: 1=Bold, 4=Underscore, 5=Blink)
  596.          (Clear the Screen, home the cursor.)
  597.  40H   (Move the cursor to the 12th row and 40 column.)
  598.  =4h        (Enter the 320 x 200 graphics mode on a color monitor.)
  599.     (Give characters a green foreground and a blue background color.)
  600.  
  601.   ─────────────────────────────  Key Definitions  ───────────────────────────
  602.  113p   ("A" becomes "Q")   │   8;"dir";13p (F10 becomes DIR+<RETURN>
  603.  7;60p  (F9 becomes "<")    │   49p         ("1" is redefined as "1")
  604.  "Hi!"p ("a" becomes "Hi!") │   8;0;68p     (F10 is redefined as F10)
  605. 
  606. EXE2BIN is a DOS utility program that converts files with the .EXE file
  607. extension to a binary (.BIN) or command (.COM) file format.  As shown below,
  608. EXE2BIN is followed by an input and output filename.
  609.  
  610.            EXE2BIN  C:\OLDFILE     C:\PRG\NEWFILE.BIN
  611.  
  612. In this case EXE2BIN will convert a file called OLDFILE.EXE found in the root
  613. directory of drive C into NEWFILE.BIN in the PRG subdirectory of drive C.
  614. 
  615. It is possible to run a "child" version of DOS by using a shell command in an
  616. application program or running COMMAND.COM while at the DOS prompt.  The EXIT
  617. command passes system control back to the previous, or "parent" command
  618. processor, if there is one.  This command processor can be an application
  619. program such as BASIC, which has a shell statement from which a new command
  620. processor can be run, or another version of the DOS command processor itself.
  621.  
  622. To use the EXIT command simply type "EXIT" at the prompt in DOS as shown below
  623.  
  624.                     C: EXIT
  625.  
  626. If you had left an application by shelling out to a new version of COMMAND.COM,
  627. typing EXIT returns you to that application in the state you originally left
  628. it.
  629.  
  630. NOTE: Any changes made to the DOS environment space while in child version of
  631. the DOS command processor are lost when the EXIT command is used.
  632. 
  633. FCBS is a command line that appears in the CONFIG.SYS file.  FCBS lets you
  634. specify the number of File Control Blocks (FCBs) that can be open at one time.
  635. The FCBS line appears in CONFIG.SYS as shown below:
  636.  
  637.                   FCBS = X,Y
  638.  
  639. The "X" represents the number of files that can be opened by FCBs at a time.
  640. This number can range from 1 to 255.  The default value for this factor is 4.
  641. The "Y" tells DOS the number of files opened by FCBs that cannot be closed
  642. automatically when an application tries to open more than the number of files
  643. specified by X.  Thus the command:
  644.  
  645.                   FCBS = 5,2
  646.  
  647. provides for five files to be opened by FCBs at one time.  DOS will not
  648. automatically close the first two of these files opened if an application
  649. tries to open more than five files.
  650. The FC command compares the contents of two files.  The result of this
  651. comparison can be sent to a file, a printer, or the screen.  Some of the
  652. parameter information used with FC is listed here.
  653.  
  654.         /A    - Abbreviate the output of ASCII comparison.
  655.         /B    - Force a byte by byte binary comparison of both files.
  656.         /C    - Make the comparison process case insensitive.
  657.         /L    - Compare the files as ASCII text files.
  658.         /N    - Display line numbers when performing an ASCII comparison.
  659.         /T    - Causes tabs to be compared as tabs rather than spaces.
  660.        /LBn - Set internal line buffer to "n" lines.
  661.  
  662. C: FC  NEW.COM    OLD.COM /L     (Compare NEW.COM to OLD.COM as text files.)
  663.  
  664. C: FC  NEW.TXT    OLD.TXT /B     (Compare NEW.TXT to OLD.TXT as binary files.)
  665.  
  666. C: FC  NEW.DOC    OLD.DOC /L /C     (Compare NEW.DOC to OLD.DOC as ASCII text
  667.                   files, make the comparison case insensitive.)
  668.  
  669. C: FC  NU.DOC    OLD.DOC /L /N     (Compare NU.DOC to OLD.DOC as ASCII text files
  670.                   & show numbers for lines that don't match.)
  671. The optional three character extension at the end of DOS filename is typically
  672. used to indicate what kind of file it is.  The meanings of most file extensions
  673. are determined by individual programs that use them to identify the files they
  674. work with.  Most file extensions other than EXE, COM, and BAT, represent the
  675. use of conventions set by users and programmers, not requirements set by DOS.
  676. For example, two word processing programs might both give their files a "DOC"
  677. extension but still produce incompatible files.  You can make new file
  678. extensions for your own organizational purposes.  Some common file extension
  679. conventions are listed here.
  680.  
  681.  
  682. BAT - Batch File       OVL - Overlay File        ASM - Assembly source code
  683. COM - Command File       HLP - Help File        COB - COBOL Source Code
  684. EXE - Executable File       WK1 - Lotus Worksheet    FOR - FORTRAN source code
  685. TXT - ASCII Text File       DAT - Data file        PAS - PASCAL Source code
  686. SYS - System File       DBF - Database File          C - C Source code
  687. BAK - Backup File       FNT - Font File        BAS - BASIC program/source
  688. DOC - Document           FON - Font File        OBJ - Object Code
  689. ARC - Archive File       DRV - Driver File        CHK - CHKDSK Recovery File
  690.                             CNF - Configuration File
  691. 
  692. FILES is a command line that appears in the CONFIG.SYS file.  FILES lets you
  693. specify the maximum number of files the system can access at the same time.
  694. This line appears in CONFIG.SYS as follows:
  695.  
  696.                   FILES = N
  697.  
  698. Where "N" is a number from 8 to 255.  The default value for FILES, if no
  699. command is given is 8.
  700.  
  701. NOTE:  Individual application programs sometimes require that you increase the
  702. number associated with the FILES command as part of their software installation
  703. procedure.  Some applications may require this number be 20 or even higher.
  704. DOS filenames can be up to eight characters long.  The filename can also be
  705. followed by an optional extension that is up to three characters long.    A
  706. period must appear between the filename and its extension.  Filename extensions
  707. are typically used to identify the type and characteristics of files.  DOS
  708. filenames, like most DOS commands, are case insensitive.
  709.  
  710. Valid DOS filename characters include the letters A to Z,  numbers 0 to 9, and
  711. the following characters: ! @ # $ & _.    The following characters cannot be used
  712. in DOS filenames:  "  /  \  .  [  ]  :  |  <  >  +  =  ,  ;.
  713.  
  714.         ───── DO NOT USE SPACES IN DOS FILENAMES! ─────
  715.  
  716. DOS reserves the following device names:  AUX, COMx, CON, LPTx, PRN, and NUL.
  717.  
  718. Below is a list of valid DOS filenames.  Note how all filenames with extensions
  719. have a period between the filename and the extension.
  720.  
  721.     COMBAT.EXE       @NOTES@.TXT         JUNE      ROGER.WK1      CHAPTER2
  722.   12_22_66.DOC        MYFILE.COM       DOSAID.INI      22$$$.DAT           #56
  723. FILESPEC is short for FILE SPECIFICATION.  The filespec tells DOS everything it
  724. needs to know to locate a file.  A filespec can include:
  725.  
  726.               ■ A disk drive letter
  727.               ■ A path showing directories and subdirectories
  728.               ■ A filename
  729.               ■ A filename extension
  730.  
  731. A filespec can be up to 64 characters long.  The following filespec:
  732.  
  733.                 C:\WORD\MAY\LETTER.DOC
  734.  
  735. Tells DOS that a file named LETTER with a DOC extension can be found in the MAY
  736. subdirectory of the WORD directory on drive C.    The "\" character is called a
  737. path separator.  It is used to separate the various levels shown in the path.
  738. Here are some more filespecs:
  739.  
  740.                   A:\BIN\UTILITY.DAT
  741.                 B:\COMMAND.COM
  742.              D:\WP\UTIL\PRINT\PRINTER.TXT
  743. The FIND filter locates and displays all the lines in the target files that
  744. contain the string specified in the command.  The search string must always be
  745. enclosed in quotes.  FIND used these parameters:
  746.  
  747.  /C  - Display only a count of the number of lines in which the search string
  748.        occurs, not the lines themselves.
  749.  /V  - Display all lines that don't contain the search string.
  750.  /N  - Display the relative line number of each line the string is found in.
  751.  
  752.  
  753. C: FIND "Idaho" ST.TXT             (Display all lines in STATE.TXT which
  754.                     includes "Idaho".)
  755.  
  756. C: FIND /V  "Idaho"  ST.TXT        (Display all lines in ST.TXT that don't
  757.                     include "Idaho".)
  758.  
  759. C: FIND /C  "Idaho"  ST.TXT        (Display the number of lines containing
  760.                     "Idaho" in the ST.TXT file.)
  761.  
  762. C: FIND /N  "Idaho"  ST.TXT        (Display the relative number of each line
  763.                     that contains "Idaho" in ST.TXT.)
  764. FOR..IN..DO is a command used in BATCH files and interactive file processing.
  765. FOR..IN..DO lets DOS execute a command repeatedly for a given set of elements.
  766. There are two formats for this command.  The first format is for use in batch
  767. files, the 2nd format is used at the DOS prompt in interactive file processing.
  768.  
  769.  FORMAT 1         (Batch Files):    FOR  %%variable    IN  (set)  DO  command
  770.  FORMAT 2 (Interactive processing):    FOR   %variable    IN  (set)  DO  command
  771.  
  772. FOR..IN..DO performs a DOS command once for each element present in the set.
  773. Wildcard characters can be used as part of the set.  Some examples:
  774.  
  775.  
  776. C: FOR %A IN (P R S) DO DIR %A*.*     (Do three directory listings - one for
  777.                        all files beginning with the letters
  778.                        "P", "R", and "S".)
  779.  
  780. FOR %%D IN (A.C B.C C.C) DO DEL %%D   (While executing a batch file, delete
  781.                        three files named A.C, B.C, and C.C.)
  782.  
  783. C: FOR %F IN (*.TXT) DO TYPE %F       (Type to screen all of the TXT type
  784.                        files in the current directory.)
  785. The FORMAT command is used to prepare a hard disk or diskette surface for use
  786. by DOS.  FORMAT analyses a disk for bad sectors and creates a DOS boot sector,
  787. FAT tables and root directory.    FORMAT uses the following parameters:
  788.  
  789.       /4  - Format a 360K diskette in a 1.2 meg high density disk drive.
  790.       /V  - Prompt for a VOLUME name after the disk is formatted.
  791.       /S  - Copy the operating system files onto the new disk.
  792.  
  793. C: FORMAT A:              (Format a 360K diskette in drive A,
  794.                    assuming it is a normal 360K drive.
  795.  
  796. C: FORMAT A:              (Format a 1.2 meg diskette in drive A,
  797.                    assuming it is a high density 1.2 meg drive.
  798.  
  799. C: FORMAT A:  /4          (Format a 360K diskette in drive A, assuming
  800.                    it is a high density 1.2 meg drive.)
  801.  
  802. C: FORMAT B:  /V /S          (Format a disk in drive B, prompt me for
  803.                    a Volume label, and transfer the system
  804.                    files, making it a bootable diskette.)
  805. GOTO is a DOS command that can only be used in a batch file.  GOTO is always
  806. used with a label.  A label is a named line in a batch file consisting of a
  807. word preceded by a colon (:MYLABEL).  GOTO transfers the action of the batch
  808. file to the location of the label it names.  GOTO can be used in IF statements
  809. to create conditional branching.  Here is an example:
  810.  
  811. GOTO  DETROIT          (Branch to the routine following the DETROIT label)
  812.  
  813. The short batch file listed below keeps repeating the DIR /W command over and
  814. over again if it finds a file named MYFILE.DOC.  The GOTO statement at the end
  815. of the file sends the action back to the label named LOOP at the beginning.
  816. In such cases the batch file can be stopped by pressing CONTROL+C.
  817.  
  818. :LOOP
  819. DIR /W
  820. IF EXIST MYFILE.DOC GOTO LOOP
  821.  
  822. Spaces are not allowed in labels between the leading colon and the label name.
  823. 
  824. The GRAFTABL command loads additional character data into memory so that a CGA
  825. (Color Graphics Adapter) monitor can display the ASCII characters from 128 to
  826. 255 while in graphics mode.  These characters include various block graphics
  827. and foreign language symbols.  Here is an example of the GRAFTABL command:
  828.  
  829.  
  830. C: GRAFTABL    (Load character data into memory so that ASCII characters with
  831.         values from 128 to 255 can be displayed on a color graphics
  832.         adapter while in graphics mode.)
  833. The GRAPHICS command lets you print a graphic screen on a compatible printer
  834. from a CGA (Color Graphics Adapter) monitor.  The GRAPHICS command has the
  835. following options:
  836.  
  837. COLOR1    - Print on Industry-Standard PC Color Printer with a black ribbon.
  838. COLOR4    - Same as COLOR1 but print with RGB (red, green, blue, black) ribbon.
  839. COLOR8    - Same as COLOR1 but use a CMY (cyan, magenta, yellow, black) ribbon.
  840. COMPACT - Print on Industry-Standard PC Compact Printer.
  841.     /R    - Print "reverse", black and white as seen on monitor.
  842.     /B    - Print background in color with the COLOR4 and COLOR8 options.
  843.     /F    - Rotate the printout 90 degrees.
  844.     /C    - Center the printout on the page.  This works only with 640 x 200
  845.       or with 320 x 200 screens when using the /F parameter.
  846.  
  847. C: GRAPHICS  /R            (Enable graphics screen dumps for a standard
  848.                 graphics printer.  Black and white will
  849.                 be printed as seen on the monitor.)
  850.  
  851. C: GRAPHICS  COLOR4           (Enable graphics screen dumps for a standard
  852.                 graphics printer using an RGB ribbon.)
  853. The IF command is used in BATCH files where it provides conditional control of
  854. program flow.  The general format of the IF command is:
  855.  
  856.              IF  <NOT>  CONDITION  COMMAND
  857.  
  858. If the condition is met, then the command is executed.    Optionally, a "NOT"
  859. clause may be added.  If so, then the condition must NOT be met in order for
  860. the command to be executed.  Three types of conditions can be tested in an IF
  861. statement.  The first condition tests for an ERRORLEVEL number, a number the
  862. system keeps to check on error conditions.  The second condition compares one
  863. string to another.  This comparison is case sensitive.    The third type of
  864. condition tests for the existence of a file.  Some examples:
  865.  
  866. IF  NOT  EXIST TED.DOC    COPY A:\TED.DOC   (If the TED.DOC file doesn't exist in
  867.                        the current drive, copy TED.DOC from
  868.                        drive A to the current drive.)
  869.  
  870. IF %1==GO  GOTO NO    (If the 1st thing placed after the batch file on the DOS
  871.                command line is the word "GO" then goto the "NO" label.)
  872.  
  873. IF ERRORLEVEL 1 ECHO Problem!    (If an ERRORLEVEL of 1 exists, echo "Problem!")
  874. JOIN joins one disk drive to another by treating it as a directory of the
  875. drive being joined to.    When this happens the system accesses the drive that
  876. has been joined whenever the directory it was joined as is being addressed.
  877. The system won't recognize a drive letter that has been joined as a valid drive
  878. until the JOIN command is undone.  The format of the JOIN command is:
  879.  
  880.          JOIN    DRIVE BEING JOINED     AS NEW DRIVE/DIRECTORY
  881.  
  882. The /D parameter is used with JOIN to break the connection formed by a previous
  883. JOIN command.  When JOIN is used by itself without any trailing information, a
  884. list of the current JOIN commands in effect are displayed.  Some examples:
  885.  
  886.  
  887. C: JOIN             (Show me the JOIN commands currently in effect.)
  888.  
  889. C: JOIN B: C:\STORE        (JOIN drive B to drive C so that I can now address
  890.                  drive B as the STORE directory of drive C.)
  891.  
  892. C: JOIN A: /D            (Undo the JOIN command which joined drive A.)
  893. ┌─KEY+──NORMAL───ALT───SHIFT──CTRL─┬──ALT+──┐  Extended key codes include
  894. │ F 1 ··· 59 ··· 104 ··· 84 ··· 94 │ 1··120 │  the various key combinations
  895. │ F 2 ··· 60 ··· 105 ··· 85 ··· 95 │ 2··121 │  shown on this screen.
  896. │ F 3 ··· 61 ··· 106 ··· 86 ··· 96 │ 3··122 │
  897. │ F 4 ··· 62 ··· 107 ··· 87 ··· 97 │ 4··123 │  All extended keys return a 2
  898. │ F 5 ··· 63 ··· 108 ··· 88 ··· 98 │ 5··124 │  BYTE string - a "0" followed
  899. │ F 6 ··· 64 ··· 109 ··· 89 ··· 99 │ 6··125 │  by the number shown here.  For
  900. │ F 7 ··· 65 ··· 110 ··· 90 ·· 100 │ 7··126 │  example the code for F1 is 0,59
  901. │ F 8 ··· 66 ··· 111 ··· 91 ·· 101 │ 8··127 │  and the code for ALT+T is 0,20.
  902. │ F 9 ··· 67 ··· 112 ··· 92 ·· 102 │ 9··128 ├─────────────────────────────────┐
  903. │ F 10 ·· 68 ··· 113 ··· 93 ·· 103 │ 0··129 │     Up······72     Home····71   │
  904. ├──────────────────────────────────┴────────┤     Down····80     End ····79   │
  905. │ ······· ALT+ ····· ALT+ ····· ALT+ ······ │     Left····75     PgUp····73   │
  906. ├──────────┬──────────┬──────────┬──────────┤     Right···77     PgDn····81   │
  907. │  A···30  │  H···35  │  O···24  │  V···47  │     Ins ····82     Shift          │
  908. │  B···48  │  I···23  │  P···25  │  W···17  │     Del ····83       TAB···15   │
  909. │  C···46  │  J···36  │  Q···16  │  X···45  ├─────────────────────────────────┤
  910. │  D···32  │  K···37  │  R···19  │  Y···21  │╔═════════╗ ═ PLUS ═  PgUp·132 │
  911. │  E···18  │  L···38  │  S···31  │  Z···44  │║ CONTROL ║ Left···115  PgDn·118 │
  912. │  F···33  │  M···50  │  T···20  │  -··130  │║     KEY   ║ Right··116  Home·119 │
  913. │  G···34  │  N···49  │  U···22  │  +··131  │╚═════════╝ PrtSc··114  End··117 │
  914. Each disk volume has an optional eleven character label assigned to it.  The
  915. LABEL command is used to display, create, or edit this volume label.  If the
  916. LABEL command is typed without additional information, a short menu appears.
  917. The current volume label is then displayed and an option to change or delete
  918. this label is presented.  Following the LABEL command with a new label on the
  919. command line assigns that label to the disk volume.  Some examples:
  920.  
  921. C: LABEL          (Display the current label on drive C.  Provide the
  922.                option to add, delete, or change the volume label.)
  923.  
  924. C: LABEL  MYDISK      (Change the label on drive C to MYDISK.)
  925.  
  926.  
  927. In batch files, LABELS provide conditional branching of program action when
  928. used with the GOTO command.
  929. 
  930. LASTDRIVE is a command that appears in the CONFIG.SYS file.  LASTDRIVE sets
  931. the last, or highest, logical drive letter the system can access.  Thus if you
  932. wanted to set the last logical drive letter to "K", the following command would
  933. appear in your copy of CONFIG.SYS:
  934.  
  935.                  LASTDRIVE = K
  936.  
  937. There are several factors that affect your system's need to access additional
  938. drive letters.    They are:
  939.  
  940.       ■ The existence of multiple partitions on large hard disks
  941.       ■ The existence of disk volumes provided by a network
  942.       ■ Use of the SUBST command to create virtual drives
  943.  
  944. If no LASTDRIVE command appears in CONFIG.SYS the system assumes a default
  945. value of "E", indicating that access is available for five drives (A to E).
  946. 
  947. The make directory command is spelled as either MD or MKDIR.  MD is used to
  948. create disk directories.  If no disk drive is specified the current drive is
  949. assumed.  Subdirectories within other directories can be created provided disk
  950. space exists and the path leading to any particular directory is no longer than
  951. 64 characters long.  Some examples:
  952.  
  953.  
  954. C: MKDIR \MAIL\NOTE        (Make a directory called NOTE which is a
  955.                  subdirectory of the MAIL directory which
  956.                  itself is a directory in the ROOT directory.)
  957.  
  958. C: MD A:\FILES            (Make a subdirectory in the root directory
  959.                  of drive A called FILES.)
  960. 
  961. The MODE command is used to create settings by which the screen, printers, and
  962. serial communication ports are used.  MODE uses the LPT1, LPT2, LPT3, COM1, and
  963. the COM2 device names to address line printers and serial communications.  The
  964. default printer settings are for LPT1, using 80 characters per line at six
  965. lines per inch.  The MODE command can be used to transfer the active display
  966. between monitors on systems equipped with both a monochrome and color monitor.
  967. Some examples:
  968.  
  969. C: MODE LPT2:132,8         (Activate the 2nd parallel port printer.  Print
  970.                   132 columns to a line and 8 lines to the inch.)
  971.  
  972. C: MODE COM2:1200,n,8,1,p    (Activate the 2nd serial communications port. Set
  973.                   it to 1200 baud, with no parity, 8 stopbits, and
  974.                   1 databit, to work with a serial printer (p).)
  975.  
  976. C: MODE MONO             (Set the video mode to monochrome.)
  977.  
  978. C: MODE CO80             (Set the video mode to 80 columns, color monitor.)
  979.  
  980. C: MODE CO40             (Set the video mode to 40 columns, color monitor.)
  981. 
  982. The MORE filter pages the output of a process or command, displaying it one
  983. screen at a time.  When the screen fills up with material MORE stops the action
  984. and displays the string "--More--" at the bottom of the screen.  Touching any
  985. key brings up the next screen.    MORE is used by piping the output of another
  986. command or process into the MORE filter.  Some examples:
  987.  
  988.  
  989. C: DIR    |  MORE          (Display the contents of the DIR command, sending
  990.                   it to the screen one "page" at a time.)
  991.  
  992. C: TYPE  A.TXT    |  MORE      (Display the contents of the A.TXT file, one
  993.                   screen at a time.)
  994. The PATH command tells the system where to search for executable files.
  995. Whenever DOS is asked to run a program it first searches the current directory.
  996. If DOS doesn't find a file in the current directory, it looks for a PATH to see
  997. what additional directories it should search.  One solution to the error
  998. message "BAD COMMAND OR FILE NAME", is to extend the system search path to
  999. include some often used disk directories.  Writing a PATH command into your
  1000. AUTOEXEC.BAT file will help insure that the system can find the files it seeks.
  1001. Placing a semicolon (;) in a PATH command tells the system to return to the
  1002. root directory and start a new search path.  The APPEND command plays a
  1003. complementary search function for DATA files.  Some examples:
  1004.  
  1005. C: PATH                (Display the current search path for executable
  1006.                 files.)
  1007.  
  1008. C: PATH ;               (Set the program search path to no path.)
  1009.  
  1010. C: PATH  C:\SALT;\TUTOR        (Search the SALT directory of drive C for
  1011.                 executable files (Programs). Return to the ROOT
  1012.                 directory and search the TUTOR directory.)
  1013. 
  1014. PAUSE is a command used in batch files.  The function of PAUSE is to stop the
  1015. action of the file and wait for a key to be pressed by the user.  When the
  1016. command . . .
  1017.                      PAUSE
  1018.  
  1019. . . .appears in a batch file, action stops and the message:
  1020.  
  1021.                Strike a key when ready . . .
  1022.  
  1023. appears.  The file resumes running when ANY KEY is struck.  PAUSE is very
  1024. useful in giving users a chance to read screen instructions before they fly
  1025. off the screen.  Other uses for PAUSE involve giving users chances to insert
  1026. and remove diskettes or to terminate the action of a batch file by pressing
  1027. CONTROL+C.
  1028. PIPING allows one program's output to be used as another program's input.  To
  1029. accomplish this DOS creates temporary files called pipes.  The symbol used to
  1030. accomplish piping is the vertical line (|).  This line appears between the
  1031. input and output process in all piping commands.
  1032.  
  1033. A FILTER is a command that reads data from a file or process and modifies, or
  1034. filters, the data in some way.    SORT, which modifies the content of a file or
  1035. process by sorting it, is an example of a filter.  By using piping you can make
  1036. a filter receive input from another file or command.
  1037.  
  1038. Piping and Filters are often used with another DOS feature called REDIRECTION.
  1039. Examples of piping and filters are listed here and on the next screen.
  1040.  
  1041.  
  1042. C: DIR    |  SORT        (Execute a DIR command.  Use piping with the SORT
  1043.                 filter to make an alphabetically sorted listing.)
  1044.  
  1045. C: DIR    |  SORT  |  MORE   (Execute a DIR command, but use one pipe to SORT
  1046.                 the display and another to page the display one
  1047.                 screen at a time.)
  1048. 
  1049. The PRINT command is used to send files to a printer as a background task so
  1050. that work can continue while printing takes place.  PRINT works by establishing
  1051. a print queue from which files are sent to be printed.    If the PRINT command is
  1052. issued without any additional information, the contents of the print queue will
  1053. be displayed.  PRINT uses the following parameters:
  1054.  
  1055.  
  1056.  /D:  - Set the DOS print device, LPT1, LPT2, COM1, etc. PRN is the default.
  1057.  /B:  - Set the size of the print buffer.  512 bytes is the default.
  1058.  /Q:  - Set the number of files in the print queue (4 to 32). Default is 10.
  1059.  /T   - Delete, or terminate, all files from the print queue.
  1060.  /C   - Cancel specific files listed on the command line from the print queue
  1061.     until a /P parameter is encountered.
  1062.  /P   - Add files on the command line to the print queue until a /C parameter
  1063.     is encountered.
  1064.  
  1065.  
  1066.      The next screen shows several examples of the PRINT command.
  1067. The PROMPT command is used to change the DOS system prompt.  PROMPT can also be
  1068. used to send ANSI.SYS escape sequences to the CONsole.    All the parameters used
  1069. with PROMPT in the list below must be preceded by a dollar sign.  The
  1070. parameters used with the PROMPT command are:
  1071.  
  1072. t - The time            d - The date           p - The current path
  1073. v - DOS version         n - Default drive           g - The ">" character
  1074. b - The "|" character       q - The "=" character      l - The "<" character
  1075. h - A Backspace         s - A leading Space        _ - CR & Line feed
  1076. e - ESCape character. (Always used with "$" and an open square bracket ($e[).)
  1077.  
  1078. C: PROMPT           (Reset the prompt back to the default prompt.)
  1079.  
  1080. C: PROMPT  Monday       (Set the prompt to the word "Monday".)
  1081.  
  1082. C: PROMPT  $P$G        (Set prompt to show the current directory path
  1083.                 followed by ">" character, for example, "C:\BIN>".)
  1084.  
  1085. C: PROMPT  $e[0m       (Send an escape sequence that uses ANSI.SYS to
  1086.                 turn the screen character attributes back to
  1087.                 normal (nonblinking white on black).)
  1088. 
  1089. RECOVER reclaims files or disks that contain bad sectors.  RECOVER is used by
  1090. following the command with the name of the drive or file you wish to recover.
  1091. If no parameters are including, RECOVER recovers the current drive.  When a
  1092. disk is recovered the reclaimed files are named FILE0001, FILE0002, FILE0003,
  1093. and so forth, each with the extension REC.  Some examples:
  1094.  
  1095.  
  1096. C: RECOVER A:            (Recover drive A.  Assign new names to the
  1097.                  files on drive A beginning with FILE0001.REC.)
  1098.  
  1099. C: RECOVER  C:\STORE\YES.DAT    (Recover the YES.DAT file in the STORE direc-
  1100.                  tory of drive C.  Do not rename the file.)
  1101. Redirection allows the output of a process to be sent to a destination other
  1102. than the screen.  Redirection also lets programs receive input from a source
  1103. other than the keyboard.  There are three DOS redirection symbols as follows:
  1104.  
  1105.   >   Assign the output of a process to a file or device.  If the file named
  1106.       in the command exists, overwrite it.
  1107.  
  1108.  >>   Assign the output of a process to a file, but APPEND the output to an
  1109.       existing file, rather than overwriting it.  If need be, create the file.
  1110.  
  1111.   <   Assign input used by a process to a file.  All input for that process
  1112.       will now come from the specified file, rather than the keyboard.
  1113.  
  1114.  
  1115.        ════════════════  Examples: ASSIGNING NEW OUTPUT ═══════════════
  1116.  
  1117. C: DIR > NEWFILE      (Run the DIR command, & send its output to a file named
  1118.                NEWFILE, deleting any existing file called NEWFILE.)
  1119.  
  1120. C: DIR *.BAT > PRN    (Run the DIR command to get a listing of all BAT files.
  1121.                Send the output to a printer, rather than the screen.)
  1122. The REM command is used in batch files to display comments, or REMarks, during
  1123. execution.  A REM line in a batch file might appear as follows:
  1124.  
  1125.      REM   This is a REMARK that will appear when this file is run!
  1126.  
  1127. REM lines are not displayed when ECHO is turned off.  Remarks can be up to 123
  1128. characters long.
  1129.  
  1130. Unlike most programming languages, REM statements in batch files don't act as
  1131. internal remarks.  You can create internal remarks by using labels.  A batch
  1132. file LABEL is any line that starts with a colon (:).  Labels are read only
  1133. until a space is encountered.  Any colon followed by a space and then text
  1134. is therefore an "unreadable" label that can be used as an internal remark.
  1135. Any text separated by a space behind a legitimate label can also be used
  1136. this way.  These two cases are shown here:
  1137.  
  1138.        :     This internal remark is ignored when the batch file is run.
  1139.        :MAY  This is a remark placed after a functional LABEL named MAY.
  1140. 
  1141. The REMOVE DIRECTORY command is spelled as either RD or RMDIR.    The RD command
  1142. is used to remove directories from a disk.  Before a directory can be removed,
  1143. all the files and subdirectories within it must first be deleted.  Some
  1144. examples:
  1145.  
  1146.  
  1147. C: RMDIR TOOLS       (Remove the TOOLS subdirectory from the current directory.)
  1148.  
  1149. C: RD A:\TEMP       (Remove the TEMP directory from root directory of drive A.)
  1150. The RENAME command is used to rename files.  RENAME can be abbreviated as REN.
  1151. Renaming a file does not make a copy of it and the original file name is lost
  1152. once it is renamed.  Wildcard characters (* and ?) can be used with the rename
  1153. command.  As shown below, RENAME is used by following REN with the current
  1154. filename and the new name desired.
  1155.  
  1156.               REN    CURRENTNAME   NEWNAME
  1157.  
  1158.                 Some examples:
  1159.  
  1160. C: REN HELLO GOODBYE       (In the current directory, rename the "HELLO"
  1161.                 file "GOODBYE".)
  1162.  
  1163. C: REN *.AAA  *.ZZZ       (In current directory, renamed all the files with
  1164.                 an AAA extension so that they have ZZZ extensions.)
  1165.  
  1166. C: REN A:\LSA\B*.* G*.*    (Rename all files in the LSA directory of drive A
  1167.                 that begin with a "B" so that they begin with a
  1168.                 "G" instead.)
  1169. The function of the REPLACE command is to allow easy updates of old software
  1170. with new.  REPLACE selectively replaces files on a target disk with files
  1171. bearing the same name from a source disk.  The REPLACE command format is:
  1172.  
  1173.           REPLACE     DRIVE:\PATH\FILES     DRIVE:\PATH\FILES
  1174.              (Source Disk)           (Destination Disk)
  1175.  
  1176.     Here are some of the parameters used with the REPLACE command:
  1177.  
  1178.  /A - Add new files to the target disk rather than replacing old ones.
  1179.       The /A parameter cannot be used with /D or /S.
  1180.  /D - Replace files on target disk only if files on the source disk are newer
  1181.       than files on the target disk.  /D is incompatible with /A.
  1182.  /P - Cause a prompt to be given before replacing a target file.
  1183.  /R - Replace read-only as well as other files.  REPLACE stops if an attempt
  1184.       is made to replace read-only files without the use of this parameter.
  1185.  /S - Search all subdirectories of the target directory.
  1186.  /W - Wait for a key to be pressed before replacing files.
  1187. 
  1188. The RESTORE restores files backed up by the BACKUP command.  The format of the
  1189. RESTORE command is:
  1190.  
  1191.           RESTORE     DRIVE:\PATH\FILES     DRIVE:\PATH\FILES
  1192.              (Source Disk)           (Destination Disk)
  1193.  
  1194. The SOURCE disk contains the files to be restored on the DESTINATION disk.
  1195.  
  1196.        Parameter switches used with the REPLACE command include:
  1197.  
  1198. /M  - Restore only files modified since the last BACKUP.
  1199. /N  - Restore only files that don't exist on the target disk.
  1200. /S  - Restore any subdirectories as well the current directory
  1201. /P  - Prompt for permission to restore any read-only or hidden files.
  1202. /A: - Restore only files modified on the target disk on or AFTER a given DATE.
  1203. /B: - Restore only files modified on the target disk on or BEFORE a given DATE.
  1204. /L: - Restore only files modified on the target disk on or AFTER a given TIME.
  1205. /E: - Restore only files modified on the target disk on or BEFORE a given TIME.
  1206. The SET command creates user defined variables in the DOS environment.    The
  1207. format for SET is:
  1208.  
  1209.                  SET  VARIABLE=STRING
  1210.  
  1211. When the SET command is used by itself, the contents of the DOS environment
  1212. is displayed.  The DOS environment typically contains a COMSPEC showing the
  1213. location of the command processor, a search PATH if one has been set, the
  1214. system PROMPT if it has been redefined, and any variables created by previous
  1215. SET commands.  Variables created by the SET command can be sensed by programs
  1216. and IF statements in batch files.  Testing done for such variable strings is
  1217. case sensitive and must be exact.  SET can be used to remove a variable from
  1218. the environment by setting it equal to nothing.  Some examples:
  1219.  
  1220. C: SET                 (Display the contents of the DOS environment.)
  1221.  
  1222. C: SET BRANCH=YES         (Create a variable called BRANCH in the DOS
  1223.                   environment.  Make it equal to the string "YES".)
  1224.  
  1225. C: SET BRANCH=             (Remove the BRANCH variable from the environment.)
  1226. The SHARE command is used to install file sharing and locking.    SHARE is
  1227. typically used in the AUTOEXEC.BAT file and would be used only when Microsoft
  1228. MSNET is active.  Parameter switches used with SHARE include:
  1229.  
  1230.   /F:nnn   - Where "nnn" is the number of bytes allocated as file space for
  1231.          DOS to record file sharing information.  Default is 2048 bytes.
  1232.   /L:locks - Determines the number files that can be locked.  Default is 20.
  1233.  
  1234. Once SHARE has been used, DOS checks all files for the read-only attribute
  1235. whenever read and write requests are made.  Only read-only files can be shared
  1236. in a network.  The ATTRIB command can be used to control the read-only file
  1237. attribute.  Some examples:
  1238.  
  1239. C: SHARE        (Install file sharing and locking for use with MSNET.)
  1240.  
  1241. C: SHARE /F:4096    (Allocate 4096 bytes of memory for DOS to record
  1242.              file-sharing information.  The default is 2048 bytes.)
  1243.  
  1244. C: SHARE /L:26        (Allocate the number of files that can be locked at
  1245.              one time.  The default is 20.)
  1246. 
  1247. The SHELL command appears in the CONFIG.SYS file.  SHELL lets you specify a
  1248. command processor other than COMMAND.COM, DOS's default command processor.
  1249. The SHELL statement might appear in CONFIG.SYS as follows:
  1250.  
  1251.               SHELL = C:\BIN\FILENAME.COM
  1252.  
  1253. where FILENAME.COM is a program being used as the new command processor.  In
  1254. this case the system is being told to locate this file in the BIN directory on
  1255. drive C.  You must make certain to include the path leading to the file you
  1256. wish to use in any SHELL statement.
  1257.  
  1258. NOTE:  The new program listed in a SHELL statement that replaces COMMAND.COM
  1259. must be able to handle the system's input and output chores.  It's a good
  1260. precaution when altering the CONFIG.SYS file in this way to have a bootable
  1261. diskette handy.  Changes made in CONFIG.SYS can prevent you from booting back
  1262. into your system through a hard disk and you may need a separate bootable
  1263. diskette to regain access to the system so that CONFIG.SYS can be edited.
  1264. The SHIFT command is used in batch files.  SHIFT lets a batch file process more
  1265. than the nine pieces of parameter information (%1 to %9) normally allowed to
  1266. follow a batch file name on the DOS command line.  SHIFT works by shifting
  1267. parameter values down in number each time it is used.  Thus the 10th parameter
  1268. becomes the 9th, the 9th parameter becomes the 8th, and so on.
  1269.  
  1270. In the example below, a batch file called NEW.BAT is executed at the DOS prompt
  1271. with 14 pieces of parameter information behind it - the letters A to M followed
  1272. by the word END.  The SHIFT command shifts the higher numbered parameters into
  1273. place as %1, echoing each one to screen in turn, until %1 is made equal to the
  1274. word "END", which ends the program.
  1275.  
  1276. C:> NEW  A B C D E F G H I J K L M END
  1277.  
  1278. :LOOP
  1279. ECHO %1
  1280. SHIFT
  1281. IF %1==END GOTO FIN
  1282. GOTO LOOP
  1283. :FIN
  1284. The SORT filter sorts the contents of a file or process alphabetically.
  1285. Parameter switches used with SORT include:
  1286.  
  1287.  /R   - Use REVERSE alphabetic order in the SORT.  "Z" will come before "A."
  1288.  /+nn - Where "nn" is the column number SORT uses to sort the file.
  1289.     A "/+9" causes SORT to sort a file in an order determined by the
  1290.     text found in the 9th column onward in each line.
  1291.  
  1292. SORT is typically used with commands that involve piping and redirection.
  1293. Some examples:
  1294.  
  1295. C: SORT  <  OLD.DOC             (Sort OLD.DOC and show result on screen.)
  1296.  
  1297. C: SORT  <  OLD.DOC  >    NEW.DOC      (Sort OLD.DOC and write the result to a
  1298.                       file named NEW.DOC.)
  1299.  
  1300. C: SORT  /R  < OLD.DOC             (Sort OLD.DOC in reverse order so that
  1301.                       Z comes before A.)
  1302.  
  1303. C: DIR | SORT  /+10             (Produce a DIRectory list that is sorted
  1304.                       by the 10th column (file extension).)
  1305. The SUBST command is used to create virtual drives by linking a disk path with
  1306. a drive letter.  The format for the SUBST command is:
  1307.  
  1308.        SUBST    NEW VIRTUAL DRIVE LETTER:     EXISTING DISK PATH
  1309.  
  1310. Using SUBST with no trailing information shows the SUBST commands currently in
  1311. effect.  The "/D" parameter is used to delete a virtual drive created by a
  1312. previous SUBST command.  The next drive letter available must be used when
  1313. issuing a new SUBST command.  Once SUBST is executed you'll be able to use the
  1314. new drive letter to address the disk path it has been linked to.  Certain
  1315. commands, including CHKDSK and LABEL, will not work on drives created by SUBST.
  1316. Some examples:
  1317.  
  1318. C: SUBST             (Show me the SUBST commands currently in effect.)
  1319.  
  1320. C: SUBST  E:  B:\BIN         (Create a virtual drive "E" which corresponds to
  1321.                   the BIN directory on drive B.)
  1322.  
  1323. C: SUBST  E:  /D         (Undo the virtual drive "E" created by a previous
  1324.                   SUBST command.)
  1325. The SYS command is used to copy the DOS system files, IO.SYS and MSDOS.SYS,
  1326. from one disk to another.  This action is necessary when creating a bootable
  1327. diskette or when updating the version of DOS on a disk.  System files are
  1328. hidden and can't be copied by the COPY command.  The SYS command format is:
  1329.  
  1330.                   SYS   TARGET DRIVE:
  1331.  
  1332. In order to make a disk bootable the COMMAND.COM file must also be included.
  1333. SYS doesn't copy COMMAND.COM.  Use the COPY command for this purpose.  If you
  1334. are formatting a new diskette, the "/S" parameter switch of the FORMAT command
  1335. can also be used to transfer system files to the new disk.  Since ordinary
  1336. files may occupy space that needs to be reserved for system files, you should
  1337. use the SYS command with disks that are formatted but still free of files.
  1338. Some examples:
  1339.  
  1340.  
  1341. C: SYS A:           (Transfer the systems files from drive C to drive A.)
  1342.  
  1343. A: SYS C:           (Transfer the systems files from drive A to drive C.)
  1344. There are four DOS system files:  IO.SYS, MSDOS.SYS, COMMAND.COM, & CONFIG.SYS.
  1345. The first two are hidden files that cannot be copied by the COPY command or
  1346. listed with DIR.  These files can only be transferred from one disk to another
  1347. with the SYS command or by using the /S parameter with the FORMAT command when
  1348. formatting a new disk.    The files minimally required to produce a bootable
  1349. diskette are IO.SYS, MSDOS.SYS and COMMAND.COM.  Here is a brief description:
  1350.  
  1351. ■ IO.SYS: This file is the Input/Output system file.  IO.SYS represents a
  1352.   low level of the operating system that performs fundamental and primitive
  1353.   input/output operations similar in function to the ROM BIOS chips.
  1354.  
  1355. ■ MSDOS.SYS: The next step up in the operating system.    MSDOS.SYS contains the
  1356.   DOS service routines - especially those routines that relate to interactions
  1357.   with disk drives.
  1358.  
  1359. ■ COMMAND.COM: Is the most important system file from the user's point of view.
  1360.   This file interprets what we type while at the DOS prompt and processes our
  1361.   commands.  COMMAND.COM contains "internal" commands like DIR, REN, DEL, etc.
  1362.  
  1363. ■ CONFIG.SYS:  Provides the system with configuration information on boot-up.
  1364.   While not needed to start up, it is a functional necessity on most systems.
  1365. 
  1366. The TIME command is used to display or set the current system time.  The
  1367. command is used simply by typing TIME at the DOS prompt.  You are then given a
  1368. chance to enter a new time in the following format:
  1369.  
  1370.        HOURS (0-23) : MINUTES (0-59) : SECONDS (0-59) : HUNDREDTHS (0-99)
  1371.  
  1372. Changing the system time with the TIME command changes the time stamp placed on
  1373. files when they are altered or copied.    It is important to remember that using
  1374. TIME does not permanently change the real time clock in AT style systems,
  1375. unless DOS 3.3 is being used.  For that purpose the SETUP.COM program must be
  1376. run.  The situation with PC/XT systems can also vary.  See the discussion of
  1377. this matter included with the DATE command.  An example:
  1378.  
  1379.  
  1380. C: TIME  17:02:15.00         (Set the system time to zero hundreds of a second,
  1381.                   at 15 seconds past 2 minutes past five PM.)
  1382. TREE displays the paths for all the directories on a disk.  The format for the
  1383. TREE command is:
  1384.  
  1385.                  TREE    DRIVE:
  1386.  
  1387. When the optional /F parameter switch is used, TREE displays the names of the
  1388. files in each directory.  Some examples:
  1389.  
  1390.  
  1391. C: TREE  A:            (Show the directory tree of the disk in the A
  1392.                  drive.)
  1393.  
  1394. C: TREE  /F            (Show the directory tree of C and the contents
  1395.                  of each directory.)
  1396.  
  1397. C: TREE  /F  >    CFILES         (Run TREE using the /F parameter to show the
  1398.                  contents of each directory.  Use redirection to
  1399.                  write the display normally sent to the screen to
  1400.                  a file called CFILES.)
  1401. The TYPE command is used to display the contents of a file to the screen.  The
  1402. format of the TYPE command is:
  1403.  
  1404.               TYPE     DRIVE:\PATH\FILENAME
  1405.  
  1406. TYPE works best with text files.  TYPE can be used to display binary or
  1407. executable files but may produce unpredictable results.  TYPE cannot be used
  1408. with the "?" and "*" wildcard characters.  CONTROL+S can be used to freeze the
  1409. screen display when using TYPE.  Use CONTROL+Q to resume the display after
  1410. pressing CONTROL+S.  The MORE filter can be used to show the contents of a
  1411. TYPEd file one screen at a time.  Some examples:
  1412.  
  1413. C: TYPE A.TXT            (Display to screen the contents of the A.TXT file.)
  1414.  
  1415. C: TYPE A:\22.TXT        (Display to screen the contents of the 22.TXT file
  1416.                  residing on in the root directory of drive A.)
  1417.  
  1418. C: TYPE EDIT.DOC | MORE     (Display the contents of the EDIT.DOC file.  Pipe
  1419.                  the output of this display to the MORE filter so
  1420.                  that each screen pauses as it is displayed.)
  1421. VDISK.SYS is a device driver file that maintains a virtual, or RAM, disk. VDISK
  1422. is used in a DEVICE line in the CONFIG.SYS file.  A RAM disk is an piece of RAM
  1423. memory that is used like a disk drive.    Files can be read and written in a RAM
  1424. disk as if it were an ordinary disk drive.  The advantage of a RAM disk is that
  1425. being memory it is much quicker than a conventional disk drive.  The problem is
  1426. that the contents of a RAM disk disappears when the machine is shut off!
  1427.  
  1428. The VDISK device line must show the drive and path leading to VDISK.SYS. In
  1429. addition, the following parameter information is added to VDISK.SYS:
  1430.  
  1431.  /n    - Where "n" is the # of sides, 1 or 2, for single or double sided drive.
  1432.  /n    - Where "n" is the number of Sectors per track,  either 8, 9, or 15.
  1433.  /Lnnn - Size in kilobytes of memory reserved for virtual disk. 64K is default.
  1434.  /E    - Lets VDISK make use of extended memory above 1 megabyte.
  1435.  
  1436.          DEVICE = C:\BIN\VDISK.SYS  /2    /9  /L256  /E
  1437.  
  1438. The example above shows a line in CONFIG.SYS.  VDISK.SYS is located in the BIN
  1439. directory of drive C.  The virtual drive is double sided, has 9 sectors/track,
  1440. reserves 256K memory, and uses extended memory above the 1 megabyte range.
  1441. 
  1442. VER displays the DOS release version number presently install in the system.
  1443. When troubleshooting software, or writing batch files, it is sometimes useful
  1444. to know what version of DOS is being run.  To use VER, simply type the command
  1445. at the DOS prompt.  A message similar to the one shown below will be displayed.
  1446.  
  1447.                   MS-DOS VERSION 3.20
  1448.  
  1449.  
  1450.                   An example:
  1451.  
  1452. C: VER                (Show me what version of DOS is being run.)
  1453. 
  1454. The VERIFY command tells DOS to verify that data has been written to disk
  1455. correctly.  VERIFY is followed by either the terms "ON" or "OFF" which turn the
  1456. verification function on or off.  The VERIFY command simply shows the current
  1457. verification status if it is used by itself.  VERIFY serves the same purpose as
  1458. using the /V switch with the COPY command.  Because the system pauses to read
  1459. the disk after writing to disk, write operations take more time when VERIFY is
  1460. turn on.  Some examples:
  1461.  
  1462.  
  1463. C: VERIFY        (Show the current state of the VERIFY switch.)
  1464.  
  1465. C: VERIFY ON        (Tell DOS to verify data written to disk.)
  1466.  
  1467. C: VERIFY OFF        (Tell DOS not to verify data written to disk.)
  1468. 
  1469. VOL is used to display the volume label of a disk.  The format for VOL is:
  1470.  
  1471.                 VOL   DRIVE:
  1472.  
  1473. If no drive letter appears in a VOL command, the current drive is assumed.  The
  1474. LABEL command can be used to change the current volume label.  The /V parameter
  1475. switch can also be used with the FORMAT command to prompt for a volume label
  1476. when first formatting a disk.  Some examples:
  1477.  
  1478.  
  1479. C: VOL                (Display the volume label of drive C.)
  1480.  
  1481. C: VOL B:            (Display the volume label of drive B.)
  1482. Wildcard characters are used in DOS commands to stand in for other characters,
  1483. much as a wildcard does in a deck of cards.  This feature of DOS is also called
  1484. PATTERN MATCHING.  With wildcards it is possible for a single DOS command to
  1485. affect many files at the same time.  The two wildcard characters are the
  1486. question mark (?) and the asterisk (*).  The question mark stands for any
  1487. single character.  The command:
  1488.                   DIR  ?able
  1489.  
  1490. brings up a directory display of all files with five character names whose last
  1491. four letters are "able".  This might include TABLE, SABLE, CABLE, etc.  The
  1492. asterisk is used to stand in for multiple characters.  Thus the command:
  1493.  
  1494.                    DIR    S*.*
  1495.  
  1496. shows a directory listing of all files that begin with the letter S.  Note that
  1497. a second asterisk must be used after the period that occurs between the
  1498. filename and the extension.  Some examples:
  1499.  
  1500. *.*       (All files in the current directory)
  1501. A*.BAT       (All batch (BAT) files that begin with the letter "A")
  1502. M??T.*       (All files beginning with an M, ending in T with a 4 character name)
  1503. Like COPY, the XCOPY command is used to copy files.  Unlike COPY, XCOPY is
  1504. capable of copying the subdirectories of a directory being copied in a single
  1505. command.  The format of the XCOPY command is:
  1506.  
  1507.      XCOPY      DRIVE:\PATH\SOURCE FILES    DRIVE:\PATH\TARGET FILES
  1508.  
  1509. If a target location for the source files is omitted, XCOPY will copy into the
  1510. current drive and directory.  XCOPY uses these parameters:
  1511.  
  1512.  /A  - Copy files that have their ARCHIVE bit set, but don't reset the bit.
  1513.  /M  - Copy files that have their ARCHIVE bit set, and turn the bit off.
  1514.  /D: - Copy files modified on or after a specified DATE, eg, /D:3-07-85.
  1515.  /E  - Copy any subdirectories, even if EMPTY.    /E must be used with /S switch.
  1516.  /P  - PROMPT the user before creating each target file.
  1517.  /S  - Copy all SUBdirectories of source directory unless they are empty.
  1518.  /V  - VERIFY each target file as it is created.
  1519.  /W  - WAIT for a key to be pressed before executing the XCOPY command.
  1520.  
  1521. Because it is capable of copying multiple directories and their contents
  1522. with a single command, XCOPY is very powerful.    The next screen contains
  1523. several examples of the XCOPY command.
  1524.       DOSHELP is easy to use.  Simply move to a topic and press RETURN.
  1525.       Press F1 to get HELP.  Press ESCAPE while in help to return to the
  1526.       screen you left.    For help using the PATH, COLOR, & QUIET KEYBOARD
  1527.       (Mouse On/Off) parameters, enter DOSHELP ? at the DOS prompt.
  1528.                        ~~~~~~~~~
  1529.       Suggestions and comments for improving DOSHELP are welcome.  I'm
  1530.       also looking for PC related support, training, documentation, or
  1531.       consulting work and could package company manuals in software like
  1532.       this.  Send correspondence to:  P.O. Box 60231, Florence, MA 01060.
  1533.  
  1534.              Richard Guenette  Spring 1990
  1535.  
  1536.       ┌───────────────────────    MAIN MENU KEYS    ─────────────────────────┐
  1537.       │  ■ RETURN Key    -  Select a menu item and display it.         │
  1538.       │  ■ ARROW Keys    -  Move one menu item UP, DOWN, LEFT, or RIGHT.  │
  1539.       │  ■ LETTER Key    -  Move to an item beginning with that letter.     │
  1540.       │  ■ HOME or PgUp -  Move to the TOP of a menu column.         │
  1541.       │  ■ END or PgDn    -  Move to the BOTTOM of a menu column.      │
  1542.       │  ■ ESCAPE Key    -  EXIT the program and return to DOS.         │
  1543.       │  ■ MOUSE Keys    -  LEFT = Return  ∙∙∙∙∙∙∙∙∙∙∙∙    RIGHT = Escape     │
  1544.       └──────────────────────────────────────────────────────────────────┘
  1545.       ─────────────────────── Copying Text To DOS ───────────────────────
  1546.  
  1547.       DOSHELP can copy text from one of its screens into DOS.  With this
  1548.       feature you can run DOSHELP, select the material you need, and exit
  1549.       to DOS.  The selected text will be displayed above the DOS prompt.
  1550.  
  1551.     ┌─────────────────    To Copy Text From DOSHELP to DOS: ─────────────────┐
  1552.     │                                       │
  1553.     │ 1)  Select a topic and press ALT+C. A blinking cursor appears.       │
  1554.     │                                       │
  1555.     │ 2)  Move the cursor to one end of the text to be copied and press    │
  1556.     │      RETURN.  Then move to the other end of the desired text and       │
  1557.     │      press RETURN.  The selected text will appear in reverse video.   │
  1558.     │                                       │
  1559.     │ 3)  A message appears telling you to press RETURN to copy the text   │
  1560.     │      and EXIT to DOS, or press ESC to escape the copy text process.   │
  1561.     │                                       │
  1562.     │     ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ MOUSE KEYS ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙    │
  1563.     │     LEFT = Return         MIDDLE = Alt+C         RIGHT = Esc    │
  1564.     └──────────────────────────────────────────────────────────────────────┘
  1565.      ┌──────────────────────  Using Topic Sub-Menus  ─────────────────────┐
  1566.      │                                      │
  1567.      │      DOSHELP lets you move directly between related items without      │
  1568.      │      returning to the main menu screen.  Many topics have a menu      │
  1569.      │      at the bottom of the screen consisting of one or more related   │
  1570.      │      topics.  The topic selected appears in reverse video.  When      │
  1571.      │      RETURN is pressed, the currently selected item is displayed.      │
  1572.      │                                      │
  1573.      │        These keys are available from the topic screens:      │
  1574.      │                                      │
  1575.      │     ■ RETURN      - Move to the main menu, topic, or next screen.      │
  1576.      │     ■ RIGHT ARROW - Move RIGHT to the next topic on the sub-menu.      │
  1577.      │     ■ LEFT ARROW  - Move LEFT to the next topic on the sub-menu.      │
  1578.      │     ■ SPACEBAR    - Same as RIGHT ARROW.                  │
  1579.      │     ■ ALT+C       - Initiate procedure to COPY topic text to DOS.      │
  1580.      │     ■ CONTROL+C   - Same as ALT+C.                   │
  1581.      │     ■ F1           - Get HELP.  Press ESC to return from help.      │
  1582.      │     ■ ESC           - Return to the Main Menu.              │
  1583.      │     ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ MOUSE KEYS ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙   │
  1584.      │     LEFT = Return         MIDDLE = Alt+C         RIGHT = Esc   │
  1585.      └────────────────────────────────────────────────────────────────────┘
  1586.     High set characters include block graphics and foreign language
  1587.     characters as well as mathematical and monetary symbols.  These
  1588.     characters can be displayed by holding down the ALT key while
  1589.     typing the number of the desired character on the NUMERIC KEYPAD.
  1590.  ─────────────────────────────────────────────────────────────────────────────
  1591.   128·Ç     144·É     160·á    176·░      192·└     208·╨     224·α    240·≡
  1592.   129·ü     145·æ     161·í    177·▒      193·┴     209·╤     225·ß    241·±
  1593.   130·é     146·Æ     162·ó    178·▓      194·┬     210·╥     226·Γ    242·≥
  1594.   131·â     147·ô     163·ú    179·│      195·├     211·╙     227·π    243·≤
  1595.   132·ä     148·ö     164·ñ    180·┤      196·─     212·╘     228·Σ    244·⌠
  1596.   133·à     149·ò     165·Ñ    181·╡      197·┼     213·╒     229·σ    245·⌡
  1597.   134·å     150·û     166·ª    182·╢      198·╞     214·╓     230·µ    246·÷
  1598.   135·ç     151·ù     167·º    183·╖      199·╟     215·╫     231·τ    247·≈
  1599.   136·ê     152·ÿ     168·¿    184·╕      200·╚     216·╪     232·Φ    248·°
  1600.   137·ë     153·Ö     169·⌐    185·╣      201·╔     217·┘     233·Θ    249·∙
  1601.   138·è     154·Ü     170·¬    186·║      202·╩     218·┌     234·Ω    250 ·
  1602.   139·ï     155·¢     171·½    187·╗      203·╦     219·█     235·δ    251·√
  1603.   140·î     156·£     172·¼    188·╝      204·╠     220·▄     236·∞    252·ⁿ
  1604.   141·ì     157·¥     173·¡    189·╜      205·═     221·▌     237·φ    253·²
  1605.   142·Ä     158·₧     174·«    190·╛      206·╬     222·▐     238·ε    254·■
  1606.   143·Å     159·ƒ     175·»    191·┐      207·╧     223·▀     239·∩    255
  1607.     ══════════════════ Examples: APPENDING OUTPUT ═════════════════
  1608.  
  1609. A:  DIR  >>  C:\FLOPDIR        (Create a directory of drive A and append it
  1610.                 to a file called FLOPDIR on drive C.  NOTE:
  1611.                 This could be used to make a master file of
  1612.                 all your floppy disk directories!)
  1613.  
  1614. C:  CHKDSK >> PRN           (Run CHKDSK, but print the results on a printer
  1615.                 instead of the screen.    In this instance,
  1616.                 using ">" is the same as using ">>".)
  1617.  
  1618.     ══════════════════ Examples: ASSIGNING INPUT ══════════════════
  1619.  
  1620. C:  SORT  <  PHONE.TXT           (Run SORT, using the PHONE.TXT file as input.)
  1621.  
  1622. C:  MORE  <  START.BAT           (Page the output of START.BAT to the screen
  1623.                 using the MORE filter.)
  1624.  
  1625. C:  DEBUG  <  HI.BAT          (Assign the contents of HI.BAT as input to DEBUG.
  1626.                    In other words, use the characters in HI.BAT as
  1627.                    if they were keystrokes typed in DEBUG.)
  1628. Here are more examples of DOS commands involving the use of pipes and filters:
  1629.  
  1630. C: DIR    |  SORT  >  PRN      (Execute a DIR command, SORT it, and send
  1631.                   the results out to a printer.)
  1632.  
  1633. C: DIR    |  FIND "11-86"      (Execute a DIR display of all files that contain
  1634.                   the "11-86" string - Or those that were created
  1635.                   in November 1986.)
  1636.  
  1637. C: SORT  <  LIST  >>  TEXT   (Sort the LIST file in alphabetical order and
  1638.                   append the results onto a file called TEXT.
  1639.                   Create TEXT if it doesn't already exist.)
  1640.  
  1641. C: DIR *.EXE | SORT > TEXT   (Execute a directory of all EXE type files, and
  1642.                   sort the result.    Write these results to a file
  1643.                   named TEXT, deleting any previous file by that
  1644.                   name in the process.)
  1645.  
  1646. C: MORE  <  DIRLIST > PRN    (Display the DIRLIST file one screen at a time
  1647.                   with MORE, but send the results out to the
  1648.                   printer rather than the screen.)
  1649. C: COPY OLD.EXT  NEW.EXT    (Copy OLD.EXT as NEW.EXT in current directory.)
  1650.  
  1651. C: COPY OLD.EXT  A:\        (Copy OLD.EXT from the current directory on
  1652.                  drive C to the ROOT directory of drive A.)
  1653.  
  1654. C: COPY C:\BIN\*.BAT C:\MAY    (Copy all files with a "BAT" extension from the
  1655.                  BIN directory of C to the MAY directory of C.)
  1656.  
  1657. C: COPY A.EXT+B.EXT A:/D.EXT    (Combine A.EXT & B.EXT as ASCII text files from
  1658.                  the current directory in drive C into the
  1659.                  D.EXT file in the ROOT of drive A.)
  1660.  
  1661. C: COPY A:\SEE.COM        (Copy SEE.COM from the ROOT directory of Drive
  1662.                  A into the current directory of drive C.)
  1663.  
  1664. C: COPY AUTOEXEC.BAT CON    (Copy the AUTOEXEC.BAT file to the screen.)
  1665.  
  1666. C: COPY CON NEWTEXT        (Copy keystrokes to the CONsole to make NEWTEXT
  1667.                  file.    Copy the file when CTRL+Z is pressed.)
  1668.  
  1669. C: COPY CONFIG.SYS PRN        (Copy the CONFIG.SYS file to the printer.)
  1670.                 PRINT Command Examples:
  1671.  
  1672. C: PRINT  MY.TXT          (Print MY.TXT as a background task on the default
  1673.                    print device, PRN.)
  1674.  
  1675. C: PRINT  A:\DOC  B:\NEW      (Add the DOC file from drive A and the NEW file
  1676.                    from drive B to the print queue.)
  1677.  
  1678. C: PRINT  /Q:12  /B:2048      (Allow 12 files to sit in the print Queue.  Set
  1679.                    the print Buffer to 2048 bytes.)
  1680.  
  1681. C: PRINT  /D:LPT2  MY.TXT     (Set the print Device to LPT2. Print MY.TXT as
  1682.                    a background task on LPT2.)
  1683.  
  1684. C: PRINT  /C  MY.TXT          (Remove MY.TXT from the print queue.)
  1685.  
  1686. C: PRINT  /T              (Delete all files from the print queue.)
  1687.                REPLACE Command Examples:
  1688.  
  1689. C: REPLACE C:\MODEM\*.BAT  C:\BIN     (Replace all files with a BAT extension
  1690.                        in the BIN directory with files of the
  1691.                        same name from the MODEM directory.)
  1692.  
  1693. C: REPLACE C:\MODEM\*.BAT C:\BIN /D   (Replace files with a BAT extension in
  1694.                        the BIN directory which have newer
  1695.                        versions in the MODEM directory.)
  1696.  
  1697. C: REPLACE *.BAT  C:\BIN /A          (Add all the files with a BAT extension
  1698.                        in the current directory to the BIN dir.
  1699.                        Do not copy over any BAT extension files
  1700.                        already found in the BIN directory.)
  1701.  
  1702. C: REPLACE *.BAT  C:\BIN /S          (Replace all the BAT extension files
  1703.                        found in BIN with files of the same
  1704.                        name from the current directory.
  1705.                        Search any subdirectories of BIN and
  1706.                        do the same thing.)
  1707. C: RESTORE  C:    A: /P           (Restore files from the BACKUP directory of
  1708.                     drive C onto A.  Prompt for permission to
  1709.                     restore hidden or read-only files.)
  1710.  
  1711. C: RESTORE  A:    C:\EDIT /M       (Restore files from drive A to the EDIT
  1712.                     directory on drive C.  Restore only files
  1713.                     that have been modified since last backup.)
  1714.  
  1715. C: RESTORE  A:    C:\EDIT /S       (Restore files from drive A to the EDIT dir
  1716.                     and any subdirectories of EDIT as well.)
  1717.  
  1718. C: RESTORE  A:    C:\*.COM  /B:01-01-87     (Restore files from drive A which have
  1719.                       a COM extension to the root directory
  1720.                       of drive C.  Restore only files
  1721.                       modified on or before Jan 1, 1987.)
  1722.  
  1723. C: RESTORE  A:    C:\  /A:02-01-87  /L:4:00p    (Restore files from drive A to
  1724.                            the root dir of drive C which
  1725.                            have been altered on, or since,
  1726.                            2/1/87, and at a time later than
  1727.                            four PM on any given day.)
  1728. C: XCOPY  123.ASM  STORE      Copy 123.ASM from the current directory. If
  1729.                   STORE doesn't yet exist as a directory,
  1730.                   prompt me to find out if 123.ASM should be
  1731.                   copied as a file called STORE, or copied
  1732.                   into a newly created directory named STORE.)
  1733.  
  1734. C: XCOPY  C:\BIN\*.DOC    A:\TANK\     (Without prompting, copy all files with a
  1735.                       DOC extension in the BIN directory on
  1736.                       drive C into the TANK directory of drive
  1737.                       A.  If necessary, create the TANK
  1738.                       directory on drive A.)
  1739.  
  1740. C: XCOPY  C:\  D:\  /S          (Copy the contents of drive C, including all
  1741.                    directories not empty, into D. Create
  1742.                    similar directories in drive D as needed.)
  1743.  
  1744. C: XCOPY  C:\  C:\BIN\    /A /V      (Copy all files in C's ROOT directory whose
  1745.                    archive bits are set into the BIN directory.
  1746.                    Don't change the archive attribute of the
  1747.                    files copied.  Verify each copy operation.)
  1748.        ───────────────────────  DOS 3.0  ───────────────────────
  1749.  
  1750. This was the first version of DOS that supplied commands designed to support
  1751. networked environments.  These commands were new to this version:
  1752.  
  1753.      ASSIGN         COUNTRY         LASTDRIVE           VDISK.SYS
  1754.      ATTRIBUTE         FCBS             SHARE           KEYB
  1755.  
  1756. The /R and /B parameter switches were added to the GRAPHICS command.  Three new
  1757. parameters were added to the PRINT command:  /D, /B, and /Q.
  1758.  
  1759.  
  1760.  
  1761.        ───────────────────────  DOS 3.1  ───────────────────────
  1762.  
  1763.      The new commands in version 3.1 were:    JOIN     LABEL         SUBST
  1764.  
  1765. The BACKUP and RESTORE commands in 3.1 were made to support any combination of
  1766. diskette media, single or double-sided, 320K, 360K, 720K, or 1.2 meg.  The
  1767. FILECOMP command added these new parameters:  /A, /L, /Lb n, /N, and /T.
  1768.        ───────────────────────  DOS 3.2  ───────────────────────
  1769.  
  1770.         DOS 3.2 was a major upgrade which added these commands:
  1771.  
  1772.     DISKCOMP            FDISK            STACKS
  1773.     DRIVEPARM            GRAFTABL            TREE
  1774.     DRIVER.SYS            RAMDRIVE.SYS        XCOPY
  1775.                     REPLACE
  1776.  
  1777. The ATTRIB command was given the ability to set the file archive bit for use by
  1778. the BACKUP and XCOPY commands.    The /E parameter was added to COMMAND to allow
  1779. the size of the DOS environment to be changed.    DISKCOPY was made to work with
  1780. unformatted disks and format only the first side of a disk.  FORMAT acquired
  1781. the /1, /4, and /8 parameters.
  1782.  
  1783. GRAPHICS could now use /C to center a printout, /F to rotate it 90 degrees, and
  1784. /P to assign the printer port it used.    A Dvorak keyboard could be assigned by
  1785. typing KEYBDV at the prompt (3.2 only).  Finally, the MODE command was allowed
  1786. to redirect printer output with the command:  MODE LPTn=COMn, where "n"
  1787. specified the parallel and serial port numbers used.
  1788.        ───────────────────────  DOS 3.3  ───────────────────────
  1789.  
  1790.              DOS 3.3 added these features:
  1791.  
  1792. CHMP           CALL DOG.BAT --- Returns to original BAT file after running DOG.
  1793. COMPARE        @dos command --- Turns ECHO OFF when specified command runs.
  1794. FASTOPEN       SELECT        DISPLAY.SYS
  1795.  
  1796. In 3.3, TIME and DATE make permanent changes in the system clock.  The /LCD
  1797. switch was added to let GRAPHICS print screens from a laptop liquid crystal
  1798. display.  /X and /E were added to APPEND.  The maximum BUFFERS assignable in
  1799. CONFIG.SYS was reset from 99 to 255.  KEYB was modified to support two letter
  1800. keyboard codes.  Several CODEPAGE clauses were added to the MODE command which
  1801. also now supports a speed of 19200 BAUD in the serial communication ports.
  1802.  
  1803.        ───────────────────────  DOS 4.0  ───────────────────────
  1804.  
  1805. The big new feature of 4.0 is the DOSSHELL command which creates an optional
  1806. visual interface to replace the DOS prompt.  SMARTDRV.SYS, SWITCHES, and MEMORY
  1807. are new commands.  MODE supports COM3 and COM4 ports, assigns columns and lines
  1808. on some displays and has a /STATUS switch.  REM lines can appear in CONFIG.SYS.
  1809.