home *** CD-ROM | disk | FTP | other *** search
/ The Don Maslin Archive / maslin_archive.zip / AARDVARK_Tape_Backups / maslin_c_d_3oct95 / ddrive / sydex / sanyo / helpdex.td0 / MS-DOS2.HDX < prev    next >
Text File  |  1990-02-15  |  46KB  |  1,645 lines

  1. 80/F0/07/F0/F0/F0/07
  2. Standard MS-DOS/PC-DOS 2.XX Commands
  3. Index
  4. 12
  5.              15 February 1990
  6.  
  7. SYNTAX     Understanding the syntax.      APPENDIX
  8. KEYS       Editing and function keys.     APPENDIX
  9. WILDCARDS  Wild card characters ? and *.  APPENDIX
  10. IN/OUTPUT  Redirection and piping.        APPENDIX
  11. CREDITS    References and trademarks.     HELP
  12. -----------------------------------------
  13. ASSIGN     Assign logical drive.
  14. BACKUP     Backup hard disk.
  15. BASIC      Run GW-BASIC interpreter.
  16. BASICA     Run GW-BASIC interpreter.
  17. BELL       Install and ring system bell.
  18. BLANKCGA   Blank the CGA display.
  19. BREAK      Toggle BREAK switch.
  20. BW         Set video mode to BW80.
  21. CD         Change directory.
  22. CHDIR      Change directory.
  23. CHKDSK     Check diskette.
  24. CLS        Clear console screen.
  25. COMMAND    Load secondary COMMAND.
  26. COMP       Compare files.
  27. COLOR      Set video mode to C80.
  28. COPY       Copy files.
  29. CTTY       Change I/O device.
  30. DATE       Display and/or set date.
  31. DEL        Delete file.
  32. DIR        Display directory.
  33. DISKCOMP   Compare diskettes.
  34. DISKCOPY   Copy diskette.
  35. ECHO       Toggle console ECHO switch.
  36. ERASE      Delete a file.
  37. EXE2BIN    Convert EXE file to binary.
  38. EXIT       Terminate secondary COMMAND.
  39. FC         Compare files.
  40. FDISK      Configure the hard disk.
  41. FIND       Search file for text string.
  42. FOR        Iteration command.
  43. FORMAT     Format a diskette.
  44. GOTO       Go to a label.
  45. GRAPHICS   Enable graphics screen print.
  46. HELP       Run DOS help program.
  47. IF         Execute command on condition.
  48. MD         Make a new directory.
  49. MKDIR      Make a new directory.
  50. MODE       Set video mode and I/O ports.
  51. MORE       Output one screen at a time.
  52. PATH       Set directory path.
  53. PAUSE      Pause batch file execution.
  54. PRINT      Send file to print device.
  55. PROMPT     Change DOS command prompt.
  56. PRTSC      Enable/disable the PRTSC key.
  57. RD         Remove a directory.
  58. RECOVER    Recover the deleted file.
  59. REM        Display remark.
  60. REN        Rename a file.
  61. RENAME     Rename a file.
  62. RESTORE    Load backup to hard disk.
  63. RMDIR      Remove a directory.
  64. SCOPY      Single drive file copy.
  65. SCREEN     Set the display mode.
  66. SET        Set string value.
  67. SHIFT      Shift parameter.
  68. SORT       Sort output to terminal.
  69. SWCHR      Change the switch character.
  70. SYS        Transfer DOS system files.
  71. TIME       Display and/or set time.
  72. TIMEPARK   Park hard disk while inactive.
  73. TREE       Display the directory tree.
  74. TYPE       List file to screen.
  75. TYPEF      List file to screen.
  76. VER        Display DOS version number.
  77. VERIFY     Toggle VERIFY switch.
  78. VOL        Display the volume label.
  79. VOLUME     Label/relabel the disk.
  80. !DOCUMENT
  81. !ASSIGN
  82. COMMAND:  ASSIGN                                           MS-DOS 2.XX and 3.XX
  83.  
  84. TYPE:     External DOS command.
  85.  
  86. PURPOSE:  Route requests to a different drive.
  87.  
  88. SYNTAX:
  89.  
  90.   ASSIGN [drive1=drive2] [...]
  91.  
  92. EXAMPLE 1:
  93.  
  94.   ASSIGN A=C B=C         routes all requests for drives A: and B: to drive C.
  95.  
  96. EXAMPLE 2:
  97.  
  98.   ASSIGN                 restores all drive assignments to normal.
  99. !BACKUP
  100. COMMAND:  BACKUP                                           MS-DOS 2.XX and 3.XX
  101.  
  102. TYPE:     External DOS command.
  103.  
  104. PURPOSE:  Back up fixed disk files.
  105.  
  106. SYNTAX:
  107.  
  108.   BACKUP [drive1][path][filename][.ext] <drive2>[/S][/M][/A][/D:mm-dd-yy]
  109.  
  110.   where   /S causes all files in all subdirectories will also be backed up,
  111.  
  112.           /M requests backup for only those files that have changed since
  113.           last backup,
  114.  
  115.           /A requests backup files to be added to the diskette in the specified
  116.           drive, and
  117.  
  118.           /D:mm-dd-yy requests backup of files modified on or after the
  119.           specified date.
  120.  
  121. EXAMPLE:
  122.  
  123.   BACKUP C:\ A: /S       backs up all files on C to A.
  124. !BASIC
  125. COMMAND:  BASIC                                            MS-DOS 2.XX and 3.XX
  126.  
  127. TYPE:     External DOS command.
  128.  
  129. PURPOSE:  Run the GW-BASIC interpreter.  Optionally executes the program name
  130.           given as a parameter.  Same as BASICA.
  131.  
  132. SYNTAX:
  133.  
  134.   BASIC [drive][filename]
  135.  
  136. EXAMPLE:
  137.  
  138.   BASICA TEST       loads the GW-BASIC interpreter and executes TEST.BAS.
  139. !BASICA
  140. COMMAND:  BASICA                                           MS-DOS 2.XX and 3.XX
  141.  
  142. TYPE:     External DOS command.
  143.  
  144. PURPOSE:  Run the GW-BASIC interpreter.  Optionally executes the program name
  145.           given as a parameter.  Same as BASIC.
  146.  
  147. SYNTAX:
  148.  
  149.   BASICA [drive][filename]
  150.  
  151. EXAMPLE:
  152.  
  153.   BASICA TEST       loads the GW-BASIC interpreter and executes TEST.BAS.
  154. !BELL
  155. COMMAND:  BELL                          author unknown for MS-DOS 2.XX and 3.XX
  156.  
  157. TYPE:     External DOS command.
  158.  
  159. PURPOSE:  Replace the standard beep of MS-DOS with more a pleasant sounding
  160.           bell.
  161.  
  162. SYNTAX:
  163.  
  164.   BELL
  165.  
  166. EXAMPLE:
  167.  
  168.   BELL    replaces the MS-DOS beep and sounds the bell.  Place this command
  169.           in the AUTOEXEC.BAT file to install BELL at the time the system
  170.           is loaded.
  171. !BLANKCGA
  172. COMMAND:  BLANKCGA                      by Rich Winkel for MS-DOS 2.XX and 3.XX
  173.  
  174. TYPE:     External DOS command.
  175.  
  176. PURPOSE:  Blank the CGA display after approximately 5 minutes of inactivity to
  177.           prevent permanent damage to the phospher of the CRT.
  178.  
  179. SYNTAX:
  180.  
  181.   BLANKCGA
  182.  
  183. EXAMPLE:
  184.  
  185.   BLANKCGA      installs the memory resident program BLANKCGA to blank
  186.                 the CGA display after approximately 5 minutes of
  187.                 inactivity.  Place this command in the AUTOEXEC.BAT file
  188.                 to install BLANKCGA at the time the system is loaded.
  189.  
  190. The time delay of 5 minutes can be changed to a longer or shorter period of
  191. time by using DEBUG to modify the byte value at locations xxxx:0131 and
  192. xxxx:0160.  The delay in seconds is 14 times the byte value.  The standard
  193. value is 15H for a delay of 14 x 21 = 294 seconds or 4 minutes 54 seconds.
  194. Replacing 15H with 0BH would change the delay to 14 x 11 = 154 seconds or 2
  195. minutes 34 seconds.
  196. !BREAK
  197. COMMAND:  BREAK                                            MS-DOS 2.XX and 3.XX
  198.  
  199. TYPE:     Internal DOS command.
  200.  
  201. PURPOSE:  Toggle the BREAK switch ON or OFF.
  202.  
  203. SYNTAX:
  204.  
  205.   BREAK [ON|OFF]
  206.  
  207. EXAMPLE 1:
  208.  
  209.   BREAK ON          CTRL-C and CTRL-BREAK are intercepted by DOS.
  210.  
  211. EXAMPLE 2:
  212.  
  213.   BREAK OFF         CTRL-C and CTRL-BREAK are ignored by DOS.
  214.  
  215. EXAMPLE 3:
  216.  
  217.   BREAK             responds with current status of the BREAK
  218.                     switch, i.e., ON or OFF.
  219. !BW
  220. COMMAND:  BW                       by Kent L. Schepler for MS-DOS 2.XX and 3.XX
  221.  
  222. TYPE:     External DOS command.
  223.  
  224. PURPOSE:  Set video mode and clear the console display.  The video mode is set
  225.           to BW80, the display is cleared, and the cursor positioned in the
  226.           upper left corner of the display.
  227.  
  228. SYNTAX:
  229.  
  230.   BW
  231.  
  232. EXAMPLE:
  233.  
  234.   BW      sets video mode to BW80 and clears the console display.
  235. !CD
  236. COMMAND:  CD                                               MS-DOS 2.XX and 3.XX
  237.  
  238. TYPE:     Internal DOS command.
  239.  
  240. PURPOSE:  Change the current directory.  Same as CHDIR.
  241.  
  242. SYNTAX:
  243.  
  244.   CD [drive][path]
  245.  
  246.   where   drive is the drive on which the directory is to be changed, and
  247.           path is the path to specify the new directory.
  248.  
  249.   If drive is omitted, the current drive is assumed.  If path is omitted, the
  250.   current path is displayed.
  251.  
  252. EXAMPLE 1:
  253.  
  254.   CD \              changes the directory of the current drive to the root
  255.                     directory.
  256.  
  257. EXAMPLE 2:
  258.  
  259.   CD \LEVEL1\LEVEL2
  260.  
  261.                     changes the directory of the current drive to LEVEL2.
  262. !CHDIR
  263. COMMAND:  CHDIR                                            MS-DOS 2.XX and 3.XX
  264.  
  265. TYPE:     Internal DOS command.
  266.  
  267. PURPOSE:  Change current directory.  Same as CD.
  268.  
  269. SYNTAX:
  270.  
  271.   CHDIR [drive][path]
  272.  
  273.   where   drive is the drive on which the directory is to be changed, and
  274.           path is the path to specify the new directory.
  275.  
  276.   If drive is omitted, the current drive is assumed.  If path is omitted, the
  277.   current path is displayed.
  278.  
  279. EXAMPLE 1:
  280.  
  281.   CHDIR \           changes the directory of the current drive to the root
  282.                     directory.
  283.  
  284. EXAMPLE 2:
  285.  
  286.   CHDIR \LEVEL1\LEVEL2
  287.  
  288.                     changes the directory of the current drive to LEVEL2.
  289. !CHKDSK
  290. COMMAND:  CHKDSK                                           MS-DOS 2.XX and 3.XX
  291.  
  292. TYPE:     Internal DOS command.
  293.  
  294. PURPOSE:  Check the disk and report status.
  295.  
  296. SYNTAX:
  297.  
  298.   CHKDSK [drive][filename] [/F][/V]
  299.  
  300.   where   /F requests CHKDSK to attempt to fix errors in the File Allocation
  301.           Table (FAT), and
  302.  
  303.           /V is the switch to request report of progress during execution of
  304.           CHKDSK (verbose).
  305.  
  306. EXAMPLE:
  307.  
  308.   CHKDSK B:/F       checks drive B and attempts to fix all allocation errors.
  309. !CLS
  310. COMMAND:  CLS                                              MS-DOS 2.XX and 3.XX
  311.  
  312. TYPE:     Internal DOS command.
  313.  
  314. PURPOSE:  Clear console display.  Causes MS-DOS to send the ANSI escape
  315.           sequence, ESC[2J, to the console.  The display is cleared and the
  316.           cursor is positioned in the upper left corner of the display.  If the
  317.           ANSI driver is not installed the display will not clear but instead
  318.           display the ANSI escape sequence.
  319.  
  320. SYNTAX:
  321.  
  322.   CLS
  323.  
  324. EXAMPLE:
  325.  
  326.   CLS     clears the console display.
  327. !COLOR
  328. COMMAND:  COLOR                    by Kent L. Schepler for MS-DOS 2.XX and 3.XX
  329.  
  330. TYPE:     External DOS command.
  331.  
  332. PURPOSE:  Set video mode and clear the console display.  The video mode is set
  333.           to C80, the display is cleared, and the cursor positioned in the
  334.           upper left corner of the display.
  335.  
  336. SYNTAX:
  337.  
  338.   COLOR
  339.  
  340. EXAMPLE:
  341.  
  342.   COLOR   sets video mode to C80 and clears the console display.
  343. !COMMAND
  344. COMMAND:  COMMAND                                          MS-DOS 2.XX and 3.XX
  345.  
  346. TYPE:     External DOS command.
  347.  
  348. PURPOSE:  Invoke a secondary COMMAND processor.
  349.  
  350. SYNTAX:
  351.  
  352.   COMMAND [drive][path] [device][/P][/C string]
  353.  
  354.   where   drive and path specify the drive on which and directory in which
  355.           COMMAND.COM is to be found,
  356.  
  357.           device specifies the device to be used for input and output instead
  358.           of the keyboard (not available in PC-DOS),
  359.  
  360.           /P directs MS-DOS to keep the secondary COMMAND processor permanently
  361.           in memory even if the EXIT command is entered, and
  362.  
  363.           /C directs MS-DOS to load COMMAND.COM as a transient secondary
  364.           processor and execute the command or program specified by string.
  365.  
  366.   The /C switch must be the last switch on the command line.  When the /C
  367.   switch is not used the secondary COMMAND processor remains in memory until
  368.   the EXIT command is entered.
  369.  
  370. EXAMPLE:
  371.  
  372.   COMMAND /C FILE1        when issued from a batch file to run the batch file
  373.                           module FILE1.BAT, executes FILE1 and then returns
  374.                           control to the main batch file.
  375. !COMP
  376. COMMAND:  COMP                                             MS-DOS 2.XX and 3.XX
  377.  
  378. TYPE:     External DOS command.
  379.  
  380. PURPOSE:  Compare files.
  381.  
  382. SYNTAX:
  383.  
  384.   COMP [drive][path][filespec[.ext]] [drive][path][filename[.ext]]
  385.  
  386. EXAMPLE 1:
  387.  
  388.   COMP A:FILE1 B:FILE2        compares FILE1 on drive A to FILE2 on drive B.
  389.  
  390. EXAMPLE 2:
  391.  
  392.   COMP A:*.ASM C:             compares all files with the extension .ASM on
  393.                               drive A to the files with the same name on C.
  394.  
  395. EXAMPLE 3:
  396.  
  397.   COMP A:\LEVEL1 A:\LEVEL2    compares all files in subdirectory LEVEL1 to
  398.                               to the corresponding files in LEVEL2.
  399. !COPY
  400. COMMAND:  COPY                                             MS-DOS 2.XX and 3.XX
  401.  
  402. TYPE:     Internal DOS command.
  403.  
  404. PURPOSE:  Copy files.
  405.  
  406. SYNTAX:
  407.  
  408.   COPY <filespec1>[/A][/B] [filespec2][/A][/B][/V]
  409.  
  410.   where   /A causes the file to be treated as an ASCII file.  When used with
  411.           filespec1, copies up to but not including the first CTRL-Z (EOF
  412.           marker).  When used with filename2, causes a CTRL-Z to be added as
  413.           the last character of the file.
  414.  
  415.           /B causes the file to be treated as a binary file.  When used with
  416.           filespec1, the entire file based on directory size is copied.  When
  417.           used with filename2, no CTRL-Z will be added to the file.
  418.  
  419.           /V is the switch to turn on verification to ensure that target
  420.           sectors are written correctly.
  421.  
  422. EXAMPLE 1:
  423.  
  424.   COPY A:APPLE.DOC B:              copies the file APPLE.DOC to drive B.
  425.  
  426. EXAMPLE 2:
  427.  
  428.   COPY A:APPLE.DOC PEAR.DOC        creates the file PEAR.DOC on the default
  429.                                    drive and copies the file APPLE.COM to it.
  430.  
  431. EXAMPLE 3:
  432.  
  433.   COPY B:*.* C:                    copies all files on drive B to drive C.
  434.  
  435. EXAMPLE 4:
  436.  
  437.   COPY A:FILE1+B:FILE2 C:FILE3     copies A:FILE1 and B:FILE2 to C:FILE3.
  438. !CTTY
  439. COMMAND:  CTTY                                             MS-DOS 2.XX and 3.XX
  440.  
  441. TYPE:     Internal DOS command.
  442.  
  443. PURPOSE:  Change to an auxiliary console.
  444.  
  445. SYNTAX:
  446.  
  447.   CTTY device
  448.  
  449. EXAMPLE:
  450.  
  451.   CTTY AUX     assigns AUX for the system I/O.  The terminal attached to the
  452.                serial port becomes the system I/O (keyboard and display)
  453.                device.
  454. !DATE
  455. COMMAND:  DATE                                             MS-DOS 2.XX and 3.XX
  456.  
  457. TYPE:     Internal DOS command.
  458.  
  459. PURPOSE:  Set or read the current date.
  460.  
  461. SYNTAX:
  462.  
  463.   DATE [mm-dd-yy]
  464.  
  465.   or
  466.  
  467.   DATE [mm/dd/yy]
  468.  
  469. EXAMPLE:
  470.  
  471.   DATE 7/4/90         sets the date to July 4, 1990.
  472. !DEL
  473. COMMAND:  DEL                                              MS-DOS 2.XX and 3.XX
  474.  
  475. TYPE:     Internal DOS command.
  476.  
  477. PURPOSE:  Delete/erase files from diskette.
  478.  
  479. SYNTAX:
  480.  
  481.   DEL <filespec>
  482.  
  483.   or
  484.  
  485.   ERASE <filespec>
  486.  
  487. EXAMPLE:
  488.  
  489.   DEL B:*.BAS       deletes all files on B with the extension .BAS.
  490. !DIR
  491. COMMAND:  DIR                                              MS-DOS 2.XX and 3.XX
  492.  
  493. TYPE:     Internal DOS command.
  494.  
  495. PURPOSE:  List filenames on diskette.
  496.  
  497. SYNTAX:
  498.  
  499.   DIR [drive][path][filename][/P][/W]
  500.  
  501.   where   /P pauses the display when the screen is full, and
  502.  
  503.           /W generates a wide display, 5 file names per line.
  504.  
  505. EXAMPLE 1:
  506.  
  507.   DIR /P            displays all files on the current drive, the display
  508.                     pauses when the screen is full.
  509.  
  510. EXAMPLE 2:
  511.  
  512.   DIR B:*.LST       displays all files on B with extension .LST.
  513.  
  514. Special shorthand notation is provided for the working directory and its parent
  515. directory (one level up from the working directory):
  516.  
  517.                .    indicates the name of the working directory in
  518.                     hierarchical directory listings, and
  519.  
  520.                ..   indicates the name of the working directory's
  521.                     parent directory.
  522.  
  523. These directory entries are automatically made when a directory is created.
  524.  
  525. EXAMPLE 3:
  526.  
  527.   DIR ..\..         displays the files in the parent's parent directory.
  528. !DISKCOMP
  529. COMMAND:  DISKCOMP                                         MS-DOS 2.XX and 3.XX
  530.  
  531. TYPE:     External DOS command.
  532.  
  533. PURPOSE:  Compare diskettes.
  534.  
  535. SYNTAX:
  536.  
  537.   DISKCOMP [drive1[drive2]] [/1][/8]
  538.  
  539.   where   drive1 and drive2 are the drives containing the diskettes to be
  540.           compared,
  541.  
  542.           /1 specifies only side 1 is to be compared (default is 2 sides), and
  543.  
  544.           /8 specifies only the first 8 sectors are to be compared (default
  545.           is 9 sectors).
  546.  
  547. EXAMPLE:
  548.  
  549.   DISKCOMP A: B:    compares the double sided 9 sector diskettes in A and B.
  550. !DISKCOPY
  551. COMMAND:  DISKCOPY                                         MS-DOS 2.XX and 3.XX
  552.  
  553. TYPE:     External DOS command.
  554.  
  555. PURPOSE:  Copy a diskette.
  556.  
  557. SYNTAX:
  558.  
  559.   DISKCOPY [drive1] [drive2][/1]
  560.  
  561.   where /1 is the switch to copy one side only.
  562.  
  563.   The first drive [drive1] is the source drive (copy from).  The second drive
  564.   [drive2] is the target drive (copy to).
  565.  
  566. EXAMPLE:
  567.  
  568.   DISKCOPY A: B:    copies the diskette in A to B.
  569. !ECHO
  570. COMMAND:  ECHO                                             MS-DOS 2.XX and 3.XX
  571.  
  572. TYPE:     Internal DOS command.
  573.  
  574. PURPOSE:  Inhibit screen display.
  575.  
  576. SYNTAX:
  577.  
  578.   ECHO [ON|OFF|message]
  579.  
  580.    where  ON causes batch file commands to be displayed on the screen.  This
  581.           is the default setting,
  582.  
  583.           OFF prevents further display of batch file commands except message
  584.           following the ECHO command,
  585.  
  586.           message is a string of text to be displayed on the console display
  587.           device.
  588.  
  589.   The ECHO command is used primarly in batch files.
  590.  
  591. EXAMPLE 1:
  592.  
  593.   ECHO OFF                    stops the display of batch file commands.
  594.  
  595. EXAMPLE 2:
  596.  
  597.   ECHO THIS IS A MESSAGE      displays THIS IS A MESSAGE on the screen even if
  598.                               ECHO is OFF.
  599.  
  600. EXAMPLE 3:
  601.  
  602.   ECHO                        system responds with current status of the ECHO
  603.                               switch, i.e. ON or OFF.
  604. !ERASE
  605. COMMAND:  ERASE                                            MS-DOS 2.XX and 3.XX
  606.  
  607. TYPE:     Internal DOS command.
  608.  
  609. PURPOSE:  Erase/delete files from diskette.
  610.  
  611. SYNTAX:
  612.  
  613.   ERASE <filespec>
  614.  
  615.   or
  616.  
  617.   DEL <filespec>
  618.  
  619. EXAMPLE:
  620.  
  621.   ERASE B:*.BAS     deletes all files on B with the extension .BAS.
  622. !EXE2BIN
  623. COMMAND:  EXE2BIN                                          MS-DOS 2.XX and 3.XX
  624.  
  625. TYPE:     Internal DOS command.
  626.  
  627. PURPOSE:  Convert .EXE file to .COM format.
  628.  
  629. SYNTAX:
  630.  
  631.   EXE2BIN <filespec1> [filespec2]
  632. !EXIT                                                      MS-DOS 2.XX and 3.XX
  633. COMMAND:  EXIT
  634.  
  635. TYPE:     Internal DOS command.
  636.  
  637. PURPOSE:  Exit COMMAND.COM and return to a previous level if one exists.
  638.  
  639. SYNTAX:
  640.  
  641.   EXIT
  642.  
  643. EXAMPLE:
  644.  
  645.   EXIT    exits current COMMAND.COM and returns to previous level if one
  646.           exists.
  647.  
  648. This command is used when you have shelled to the DOS level from an application
  649. program and want to exit DOS and return to the application program.
  650. !FC
  651. COMMAND:  FC                                               MS-DOS 2.XX and 3.XX
  652.  
  653. TYPE:     External DOS command.
  654.  
  655. PURPOSE:  Compare two files.
  656.  
  657. SYNTAX:
  658.  
  659.   FC [/B][/#][/C][/W] <filespec1> <filespec2>
  660.  
  661.   where   /B causes byte by byte (binary) comparison,
  662.  
  663.           /# is the number of lines that must match to resynchronize during
  664.           an ASCII file comparison (default is 2),
  665.  
  666.           /C causes case to be ignored when comparing ASCII files, and
  667.  
  668.           /W causes leading and trailing spaces and tabs in text lines to be
  669.           ignored and consecutive spaces and tabs within a line to be
  670.           compressed to a single space when comparing ASCII files.
  671.  
  672. EXAMPLE:
  673.  
  674.   FC FILE1.TXT FILE2.TXT      compares ASCII files FILE1.TXT and FILE2.TXT
  675.  
  676. An enhanced version of the FC program is supplied with MS-DOS 3.XX.  See the
  677. standard MS-DOS/PC-DOS 3.XX index for more information.
  678. !FDISK
  679. COMMAND:  FDISK                                            MS-DOS 2.XX and 3.XX
  680.  
  681. TYPE:     External DOS command.
  682.  
  683. PURPOSE:  Configure the hard disk.
  684.  
  685. SYNTAX:
  686.  
  687.   FDISK
  688.  
  689. EXAMPLE:
  690.  
  691.   FDISK        runs the utility program to configure the hard disk.
  692. !FIND
  693. COMMAND:  FIND                                             MS-DOS 2.XX and 3.XX
  694.  
  695. TYPE:     External DOS command.
  696.  
  697. PURPOSE:  Search files for strings of text.
  698.  
  699. SYNTAX:
  700.  
  701.   FIND [/V][/C][/N] <string> [[drive][path]filename ...]
  702.  
  703.   where   string is a string of characters enclosed in quotation marks,
  704.  
  705.           /V causes all lines NOT containing string to be displayed,
  706.  
  707.           /C is the switch to display a count of the number of matches in the
  708.           file, and
  709.  
  710.           /N is the switch to display the relative line number of each
  711.           matching line to be displayed before the line from the file.
  712.  
  713. EXAMPLE 1:
  714.  
  715.   FIND "George Washington" FILE1.TXT FILE2.TXT FILE3
  716.  
  717.   outputs all lines from FILE1.TXT, FILE2.TXT, and FILE3.TXT (in that order)
  718.   that contain the string "George Washington".
  719.  
  720. EXAMPLE 2:
  721.  
  722.   DIR B: | FIND /V "George Washington"
  723.  
  724.   outputs the names of all files on B that do not contain the string "George
  725.   Washington".
  726. !FOR
  727. COMMAND:  FOR                                              MS-DOS 2.XX and 3.XX
  728.  
  729. TYPE:     Internal DOS batch file command.
  730.  
  731. PURPOSE:  Iterative execution of command.
  732.  
  733. SYNTAX:
  734.  
  735.   FOR %%<variable> IN <set> DO <command>
  736.  
  737.   where   variable is a dummy variable to represent a parameter in the set,
  738.  
  739.           set is (<list of parameters separated by spaces>), and
  740.  
  741.           command is any DOS command other than the FOR command.
  742.  
  743. EXAMPLE 1:
  744.  
  745.   FOR %%X IN (*.PAS) DO COPY %%X B:     copies all files with the extension
  746.                                         .PAS to drive B.
  747.  
  748. EXAMPLE 2:
  749.  
  750.   FOR %%a IN (FILE1 FILE2) DO DIR %%a   lists the directory information for
  751.                                         FILE1 and FILE2.
  752. !FORMAT
  753. COMMAND:  FORMAT                                           MS-DOS 2.XX and 3.XX
  754.  
  755. TYPE:     External DOS command.
  756.  
  757. PURPOSE:  Format a diskette.
  758.  
  759. SYNTAX:
  760.  
  761.   FORMAT [drive][/S][/1][/8][/V][/B]
  762.  
  763.   where   /S is the switch to transfer the operating system to the diskette
  764.           after formatting it,
  765.  
  766.           /1 formats the diskette as single sided (default is double sided),
  767.  
  768.           /8 formats with eight sectors per track (default is nine),
  769.  
  770.           /V requests the volume name to be entered, and
  771.  
  772.           /B leaves space on the diskette for an operating system to be
  773.           installed with the SYS command.
  774.  
  775. EXAMPLE:
  776.  
  777.   FORMAT B:         formats the diskette in drive B.
  778.  
  779. WARNING:       The FORMAT command destroys all files on the diskette.
  780.  
  781. Enhanced versions of the FORMAT program are supplied with MS-DOS 3.2X and 3.3X.
  782. See the standard MS-DOS/PC-DOS 3.XX index for more information.
  783. !GOTO
  784. COMMAND:  GOTO                                             MS-DOS 2.XX and 3.XX
  785.  
  786. TYPE:     Internal DOS batch file command.
  787.  
  788. PURPOSE:  Transfer control to the line following the label.
  789.  
  790. SYNTAX
  791.  
  792.   GOTO label
  793.  
  794.   where label is a line in the batch file containing a label that begins with
  795.   a colon.
  796.  
  797. EXAMPLE:
  798.  
  799.   GOTO ABORT   transfers control to the line following the label :ABORT in the
  800.                batch file.
  801. !GRAPHICS
  802. COMMAND:  GRAPHICS                                         MS-DOS 2.XX and 3.XX
  803.  
  804. TYPE:     External DOS command.  Requires printer with IBM/Epson compatible
  805.           graphics.
  806.  
  807. PURPOSE:  Enable graphics screen dump to printer.
  808.  
  809. SYNTAX:
  810.  
  811.   GRAPHICS
  812.  
  813. EXAMPLE:
  814.  
  815.   GRAPHICS     installs the graphics print routine.  After this has been
  816.                done, the print screen key, PRTSC, will work when the display
  817.                is in the graphics mode.  Once GRAPHICS has been executed it
  818.                need not be executed again unless the system is reset.
  819.  
  820. Enhanced versions of the GRAPHICS program are supplied with MS-DOS 3.XX.  See
  821. the standard MS-DOS/PC-DOS 3.XX index for more information.
  822. !HELP
  823. COMMAND:  HELP             HELPDEX by Kent L. Schepler for MS-DOS 2.XX and 3.XX
  824.  
  825. TYPE:     External DOS command.
  826.  
  827. PURPOSE:  Provide help with MS-DOS/PC-DOS 2.XX for IBM PC/XT/AT compatible
  828.           computer systems.
  829.  
  830. SYNTAX:
  831.  
  832.   HELP [drive][path][hdxfilename][.ext] [command]
  833.  
  834.   or, using the batch file, HELP2.BAT,
  835.  
  836.   HELP2 [command]
  837.  
  838.   where   drive specifies the drive on which the HELPDEX data file is found,
  839.  
  840.           path specifies the directory in which the HELPDEX data file is found,
  841.  
  842.           hdxfilename specifies the name of the HELPDEX data file (default is
  843.           HELP),
  844.  
  845.           .ext is the extension of the HELPDEX data file name (default is
  846.           HDX) and,
  847.  
  848.           command is the name of a MS-DOS command.
  849.  
  850.   With the HELP command, HELP.COM and all of the .HDX files are required.  With
  851.   the HELP2 command, only the files HELP.COM, HELP.HDX, APPENDIX.HDX, and
  852.   MS-DOS2.HDX are required.
  853.  
  854. EXAMPLE 1:
  855.  
  856.   HELP MS-DOS2 HELP      displays this screen.
  857.  
  858. EXAMPLE 2:
  859.  
  860.   HELP2 HELP             displays this screen.
  861.  
  862. EXAMPLE 3:
  863.  
  864.   HELP MS-DOS2.HDX       displays index of MS-DOS/PC-DOS 2.XX commands for
  865.                          IBM PC/XT/AT and compatible computer systems.
  866.  
  867. EXAMPLE 4:
  868.  
  869.   HELP2                  displays index of MS-DOS/PC-DOS 2.XX commands for
  870.                          IBM PC/XT/AT and compatible computer systems.
  871.  
  872. EXAMPLE 5:
  873.  
  874.   HELP                   displays directory of HELPDEX selections.
  875. !IF
  876. COMMAND:  IF                                               MS-DOS 2.XX and 3.XX
  877.  
  878. TYPE:     Internal DOS batch file command.
  879.  
  880. PURPOSE:  Conditional execution of commands.
  881.  
  882. SYNTAX:
  883.  
  884.   IF [NOT] <condition>
  885.  
  886.   where the condition parameter is one of the following:
  887.  
  888.                           ERRORLEVEL number
  889.                           string1==string2
  890.                           EXIST filespec
  891.  
  892. EXAMPLE 1:
  893.  
  894.   IF EXIST FILE1 GOTO ABC      transfers control to label :ABC if FILE1 exists
  895.                                on the default drive.
  896.  
  897. EXAMPLE 2:
  898.  
  899.   IF %1==DOUG ECHO HI DOUG     displays the message HI DOUG on the screen if
  900.                                parameter 1 was DOUG.
  901.  
  902. EXAMPLE 3:
  903.  
  904.   MYPROG
  905.   IF ERRORLEVEL 2 GOTO ABORT   transfers control to label :ABORT if the program
  906.                                MYPROG set the ERRORLEVEL to 2 or more before
  907.                                terminating.
  908.  
  909. EXAMPLE 4:
  910.  
  911.   IF NOT EXIST FILE2 ECHO FILE2 NOT FOUND
  912.  
  913.                                displays the message, FILE2 NOT FOUND, if FILE2
  914.                                does not exist on the default drive.
  915. !MD
  916. COMMAND:  MD                                               MS-DOS 2.XX and 3.XX
  917.  
  918. TYPE:     Internal DOS command.
  919.  
  920. PURPOSE:  Create (make) a subdirectory - same as MKDIR.
  921.  
  922. SYNTAX:
  923.  
  924.   MD [drive]<path>
  925.  
  926. EXAMPLE 1:
  927.  
  928.   MD LEVEL1              creates subdirectory LEVEL1 under the current
  929.                          directory.
  930.  
  931. EXAMPLE 2:
  932.  
  933.   MD \LEVEL1\LEVEL2      creates subdirectory LEVEL2 under subdirectory
  934.                          LEVEL1 when the current directory is the root.
  935. !MKDIR
  936. COMMAND:  MKDIR                                            MS-DOS 2.XX and 3.XX
  937.  
  938. TYPE:     Internal DOS command.
  939.  
  940. PURPOSE:  Create (make) a subdirectory - Same as MD.
  941.  
  942. SYNTAX:
  943.  
  944.   MKDIR [drive]<path>
  945.  
  946. EXAMPLE 1:
  947.  
  948.   MKDIR LEVEL1           creates subdirectory LEVEL1 under the current
  949.                          directory.
  950.  
  951. EXAMPLE 2:
  952.  
  953.   MKDIR \LEVEL1\LEVEL2   creates subdirectory LEVEL2 under subdirectory
  954.                          LEVEL1 when the current directory is the root.
  955. !MODE
  956. COMMAND:  MODE                                             MS-DOS 2.XX and 3.XX
  957.  
  958. TYPE:     External DOS command.
  959.  
  960. PURPOSE:  Set the video mode of the display adaptor, configure printer,
  961.           configure serial port, or redirect output for printer.
  962.  
  963. SYNTAX:
  964.  
  965.   MODE <n>
  966.  
  967.   or
  968.  
  969.   MODE [n],<m[,T]>
  970.  
  971.   sets video display parameters, where
  972.  
  973.                n         = 40, 80, BW40, BW80, CO40, CO80, or MONO
  974.                m         = L or R to shift the display left or right
  975.                T         = test pattern requested to align the display.
  976.  
  977.   MODE LPT<n>[:][width][,[lines][,p]]
  978.  
  979.   sets width and line spacing of printer, where
  980.  
  981.                n         = 1, 2, or 3
  982.                width     = 80 or 132 column print format
  983.                lines     = 6 or 8 lines per inch
  984.                p         = causes DOS to continually retry to send output
  985.                            to printer if it is not ready (press CTRL+BREAK
  986.                            to abort).
  987.  
  988.   MODE COM<n>[:]<baud>[,parity[,databits[,stopbits[,p]]]]
  989.  
  990.   sets serial port parameters, where
  991.  
  992.                n         = 1, 2, 3, or 4
  993.                baud      = baud rate, e.g., 1200 or 2400
  994.                parity    = o(dd), e(ven), or n(one) (default = e)
  995.                databits  = 7 or 8 (default = 7)
  996.                stopbits  = 1 or 2 (default = 2 if baud = 110, otherwise 1)
  997.                p         = causes DOS to continually retry to send
  998.                            output if device is not ready (press CTRL+BREAK
  999.                            to abort).
  1000.  
  1001.   MODE LPT<n>[:][=COM<m>[:]]
  1002.  
  1003.   redirects output from printer port to serial port, where
  1004.  
  1005.                n         = 1, 2, or 3
  1006.                m         = 1, 2, 3, or 4
  1007.  
  1008. EXAMPLE 1:
  1009.  
  1010.   MODE BW80               sets the CGA display adaptor to the 80 column
  1011.                           black and white mode for use with a composite
  1012.                           monochrome monitor.
  1013.  
  1014. EXAMPLE 2:
  1015.  
  1016.   MODE LPT2:80            sets printer connected to LPT2 to 80 column mode,
  1017.                           6 lines per inch.
  1018.  
  1019. EXAMPLE 3:
  1020.  
  1021.   MODE COM1:2400,n,8,1    sets serial port COM1 to 2400 baud, no parity, 8
  1022.                           data bits, and one stop bit (a common setting for
  1023.                           many BBS systems).
  1024.  
  1025. EXAMPLE 4:
  1026.  
  1027.   MODE LPT1:=COM2:        redirects output for LPT1 to COM2.
  1028.  
  1029. EXAMPLE 5:
  1030.  
  1031.   MODE LPT1:              cancels redirection of output for LPT1.
  1032.  
  1033. An enhanced version of the MODE program is supplied with MS-DOS 3.3X.  See the
  1034. standard MS-DOS/PC-DOS 3.XX index for more information.
  1035. !MORE
  1036. COMMAND:  MORE                                             MS-DOS 2.XX and 3.XX
  1037.  
  1038. TYPE:     External DOS command.
  1039.  
  1040. PURPOSE:  Display ASCII file data one screen at a time.
  1041.  
  1042. SYNTAX:
  1043.  
  1044.   MORE <filename
  1045.  
  1046.   or
  1047.  
  1048.   TYPE filename| MORE
  1049.  
  1050.   where filename is an ASCII text file.
  1051.  
  1052. EXAMPLE:
  1053.  
  1054.   MORE <JAN.TXT     passes the file JAN.TXT to the screen 23 lines at a time,
  1055.                     displaying the message "-- More --" at the end of each
  1056.                     screen, and waits for a key to be pressed before sending
  1057.                     the next 23 lines to the screen.
  1058. !PATH
  1059. COMMAND:  PATH                                             MS-DOS 2.XX and 3.XX
  1060.  
  1061. TYPE:     Internal DOS command.
  1062.  
  1063. PURPOSE:  Set the PATH variable in the environment block.
  1064.  
  1065. SYNTAX:
  1066.  
  1067.   PATH [[drive]path[[;[drive]path...]]
  1068.  
  1069.   The PATH variable directs MS-DOS to search for the executable file in the
  1070.   specified drive(s) and directory(s).  When PATH is followed only by a
  1071.   semicolon the previous PATH variable is removed from the environment block.
  1072.   When no parameters follow PATH the current PATH variable will be displayed.
  1073.  
  1074. EXAMPLE:
  1075.  
  1076.   PATH C:\;A:\      causes MS-DOS to search the root directory of drive C
  1077.                     and then the root directory of drive A for the file.
  1078. !PAUSE
  1079. COMMAND:  PAUSE                                            MS-DOS 2.XX and 3.XX
  1080.  
  1081. TYPE:     Internal DOS batch file command.
  1082.  
  1083. PURPOSE:  Cause execution of batch file to display a string, pause, and wait
  1084.           for a key to be pressed.
  1085.  
  1086. SYNTAX:
  1087.  
  1088.   PAUSE [message]
  1089.  
  1090.   where message is any string of text and is displayed only if ECHO is ON
  1091.   (see ECHO command).  If the message is  omitted then the message "Strike a
  1092.   key when ready..." is displayed on the console display device.
  1093.  
  1094. EXAMPLE:
  1095.  
  1096.   PAUSE THIS IS MY MESSAGE    displays the message THIS IS MY MESSAGE on the
  1097.                               screen and waits for a key to be pressed.
  1098. !PRINT
  1099. COMMAND:  PRINT                                            MS-DOS 2.XX and 3.XX
  1100.  
  1101. TYPE:     External DOS command.
  1102.  
  1103. PURPOSE:  Queue and print data files.
  1104.  
  1105. SYNTAX:
  1106.  
  1107.   PRINT [[filespec][/T][/C][/P] ...]
  1108.  
  1109.   where   filespec specifies the file on which the PRINT command is to take
  1110.           action,
  1111.  
  1112.           /T is the switch to terminate printing and delete all file names
  1113.           from the print queue,
  1114.  
  1115.           /C is the cancel switch to remove a file and subsequent files from
  1116.           the print queue, and
  1117.  
  1118.           /P is the print switch to add a file and subsequent files to the
  1119.           print queue.
  1120.  
  1121.   When PRINT is entered without any parameters following the contents of the
  1122.   print queue will be displayed.
  1123.  
  1124. The first time PRINT is run during a session, the operator will be prompted for
  1125. the print device.  For the default device, PRN, press <RETURN>.
  1126.  
  1127. EXAMPLE 1:
  1128.  
  1129.   PRINT FILE1 FILE2               adds FILE1 and FILE2 to the print queue.
  1130.  
  1131. EXAMPLE 2:
  1132.  
  1133.   PRINT FILE1/C FILE2 FILE3/P     seletes FILE1 and FILE2 from the print queue
  1134.                                   and adds FILE3 to the print queue.
  1135.  
  1136. An enhanced version of the PRINT program is supplied with MS-DOS 3.XX.  See the
  1137. standard MS-DOS/PC-DOS 3.XX index for more information.
  1138. !PROMPT
  1139. COMMAND:  PROMPT                                           MS-DOS 2.XX and 3.XX
  1140.  
  1141. TYPE:     Internal DOS command.
  1142.  
  1143. PURPOSE:  Set new prompt.
  1144.  
  1145. SYNTAX:
  1146.  
  1147.   PROMPT [prompt string]
  1148.  
  1149.   The following special strings may also be included in the prompt string.
  1150.  
  1151.           $$ = the $ character          $t = the time
  1152.           $d = the date                 $p = the current directory
  1153.           $v = DOS version number       $n = the default drive letter
  1154.           $g = the > character          $l = the < character
  1155.           $b = the | character          $q = the = character
  1156.           $h = backspace and erase      $e = the escape character
  1157.                the previous character   $_ = carriage return line feed
  1158.  
  1159. EXAMPLE 1:
  1160.  
  1161.   PROMPT $n:             changes the MS-DOS prompt to the default drive letter
  1162.                          followed by a colon.
  1163.  
  1164. EXAMPLE 2:
  1165.  
  1166.   PROMPT $n:$p  $h       changes the MS-DOS prompt the default drive letter,
  1167.                          a colon, the current directory, 2 spaces, and a
  1168.                          backspace.
  1169. !PRTSC
  1170. COMMAND:  PRTSC                    by Kent L. Schepler for MS-DOS 2.XX and 3.XX
  1171.  
  1172. TYPE:     External DOS command.
  1173.  
  1174. PURPOSE:  Enable/disable the PRTSC key.
  1175.  
  1176. SYNTAX:
  1177.  
  1178.   PRTSC [ON|OFF|?]
  1179.  
  1180.   where   ON enables the PRTSC key,
  1181.  
  1182.           OFF disables the PRTSC key, and
  1183.  
  1184.           ? returns the PRTSC key status.
  1185.  
  1186.   When no parameter is specified or syntax is incorrect no action is taken and
  1187.   the PRTSC document text is displayed on the console display device.
  1188.  
  1189. EXAMPLE:
  1190.  
  1191.   PRTSC ON     enables the PRTSC key.
  1192. !RD
  1193. COMMAND:  RD                                               MS-DOS 2.XX and 3.XX
  1194.  
  1195. TYPE:     Internal DOS command.
  1196.  
  1197. PURPOSE:  Remove a subdirectory.  Same as RMDIR.
  1198.  
  1199. SYNTAX:
  1200.  
  1201.   RD [drive]<path>
  1202.  
  1203. EXAMPLE:
  1204.  
  1205.   RD B:\LEVEL2\LEVEL3    removes the subdirectory LEVEL3 from LEVEL2.
  1206. !RECOVER
  1207. COMMAND:  RECOVER                                          MS-DOS 2.XX and 3.XX
  1208.  
  1209. TYPE:     External DOS command.
  1210.  
  1211. PURPOSE:  Reconstruct a file from a disk that has bad sectors or a damaged
  1212.           directory.
  1213.  
  1214. SYNTAX:
  1215.  
  1216.   RECOVER <drive>
  1217.  
  1218.   or
  1219.  
  1220.   RECOVER <filespec>
  1221.  
  1222. EXAMPLE 1:
  1223.  
  1224.   RECOVER A:APPLE.DOC    reconstructs the file APPLE.DOC that has been lost
  1225.                          from the diskette in drive A:.
  1226.  
  1227. EXAMPLE 2:
  1228.  
  1229.   RECOVER A:             recovers the files on diskette in drive A:
  1230. !REM
  1231. COMMAND:  REM                                              MS-DOS 2.XX and 3.XX
  1232.  
  1233. TYPE:     Internal DOS batch file command.
  1234.  
  1235. PURPOSE:  Display a remark during execution of a batch file.
  1236.  
  1237. SYNTAX:
  1238.  
  1239.   REM [string]
  1240.  
  1241. EXAMPLE:
  1242.  
  1243.   REM Put disk in drive B:.   displays the message "Put disk in drive B:." on
  1244.                               the screen if ECHO is ON (see ECHO command).
  1245. !REN
  1246. COMMAND:  REN                                              MS-DOS 2.XX and 3.XX
  1247.  
  1248. TYPE:     Internal DOS command.
  1249.  
  1250. PURPOSE:  Rename a file on a diskette.  Same as RENAME.
  1251.  
  1252. SYNTAX:
  1253.  
  1254.   REN[AME] <filespec1> <filename2>
  1255.  
  1256. EXAMPLE:
  1257.  
  1258.   RENAME APPLE.DOC PEAR.DOC   changes the name of the file APPLE.DOC to
  1259.                               PEAR.DOC.
  1260. !RENAME
  1261. COMMAND:  RENAME                                           MS-DOS 2.XX and 3.XX
  1262.  
  1263. TYPE:     Internal DOS command.
  1264.  
  1265. PURPOSE:  Rename a file on a diskette.  Same as REN.
  1266.  
  1267. SYNTAX:
  1268.  
  1269.   REN[AME] <filespec1> <filename2>
  1270.  
  1271. EXAMPLE:
  1272.  
  1273.   RENAME APPLE.DOC PEAR.DOC   changes the name of the file APPLE.DOC to
  1274.                               PEAR.DOC.
  1275. !RESTORE
  1276. COMMAND:  RESTORE                                          MS-DOS 2.XX and 3.XX
  1277.  
  1278. TYPE:     External DOS command.
  1279.  
  1280. PURPOSE:  Restore files to hard disk from diskette.
  1281.  
  1282. SYNTAX:
  1283.  
  1284.   RESTORE <drive1> [drive2][path][filename][/S][/P]
  1285.  
  1286.   where   /S is the switch to restore all files in all subdirectories of the
  1287.           specified directory, and
  1288.  
  1289.           /P requests prompt before restoring files that have been modified
  1290.           since the last backup.
  1291.  
  1292.   The files must have been saved to diskette with the BACKUP command.
  1293.  
  1294. EXAMPLE:
  1295.  
  1296.   RESTORE A: C:*.DAT     restores all files with the extension .DAT that were
  1297.                          backed up from the current directory.
  1298.  
  1299. An enhanced version of the RESTORE program is supplied with MS-DOS 3.3X.  See
  1300. the standard MS-DOS/PC-DOS 3.XX index for more information.
  1301. !RMDIR
  1302. COMMAND:  RMDIR                                            MS-DOS 2.XX and 3.XX
  1303.  
  1304. TYPE:     Internal DOS command.
  1305.  
  1306. PURPOSE:  Remove a subdirectory.  Same as RD.
  1307.  
  1308. SYNTAX:
  1309.  
  1310.   RMDIR [drive]<path>
  1311.  
  1312. EXAMPLE:
  1313.  
  1314.   RMDIR B:\LEVEL2\LEVEL3      removes the subdirectory LEVEL3 from LEVEL2.
  1315. !SCOPY
  1316. COMMAND:  SCOPY                         by Mark Zeiger for MS-DOS 2.XX and 3.XX
  1317.  
  1318. TYPE      External DOS command.
  1319.  
  1320. PURPOSE:  Copy files from diskette to diskette in a single drive system.
  1321.  
  1322. SYNTAX:
  1323.  
  1324.   SCOPY <filespec1> [filespec2]
  1325.  
  1326. EXAMPLE 1:
  1327.  
  1328.   SCOPY FILE1            copies FILE1 from source diskette to FILE1 on
  1329.                          destination diskette.
  1330.  
  1331. EXAMPLE 2:
  1332.  
  1333.   SCOPY FILE1 FILE2      copies FILE1 from source diskette to FILE2 on
  1334.                          destination diskette.
  1335. !SCREEN
  1336. COMMAND:  SCREEN                        by Mark Zeiger for MS-DOS 2.XX and 3.XX
  1337.  
  1338. TYPE:     External DOS command.
  1339.  
  1340. PURPOSE:  Set the video mode.
  1341.  
  1342. SYNTAX:
  1343.  
  1344.   SCREEN <n>
  1345.  
  1346.   where   n=0 to select the 40x25 B/W text mode,
  1347.           n=1 to select the 40x25 color text mode,
  1348.           n=2 to select the 80x25 B/W text mode,
  1349.           n=3 to select the 80x25 color text mode,
  1350.           n=4 to select the 320x200 color graphics mode,
  1351.           n=5 to select the 320x200 B/W graphics mode, and
  1352.           n=6 to select the 640x200 B/W graphics mode.
  1353.  
  1354. EXAMPLE:
  1355.  
  1356.   SCREEN 2    sets the display adaptor to the 80x25 B/W text mode.
  1357.  
  1358. Use the B/W modes for composite monochrome monitors, and the color modes for
  1359. color monitors.
  1360. !SET
  1361. COMMAND:  SET                                              MS-DOS 2.XX and 3.XX
  1362.  
  1363. TYPE:     Internal DOS command.
  1364.  
  1365. PURPOSE:  Set one string equal to another in the MS-DOS environment table.
  1366.  
  1367. SYNTAX:
  1368.  
  1369.   SET [string1[=string2]]
  1370.  
  1371.   If SET is followed by only string1 then string1 is deleted from the
  1372.   environment table.
  1373.  
  1374.   SET can also be used in batch file processing to define the replaceable
  1375.   parameters with names rather than numbers.
  1376. !SHIFT
  1377. COMMAND:  SHIFT                                            MS-DOS 2.XX and 3.XX
  1378.  
  1379. TYPE:     Internal DOS batch file command.
  1380.  
  1381. PURPOSE:  Shift command line parameters left.
  1382.  
  1383. SYNTAX:
  1384.  
  1385.   SHIFT
  1386.  
  1387.   SHIFT allows use of more than 10 parameters on batch file command lines and
  1388.   also use of succesive parameters in a loop in a batch file.
  1389.  
  1390. EXAMPLE:
  1391.  
  1392.   If the file TEST.BAT is invoked with the command TEST A B C and contains the
  1393.   the commands
  1394.  
  1395.                                    SHIFT
  1396.                                    ECHO %1
  1397.                                    SHIFT
  1398.                                    ECHO %1
  1399.  
  1400.   the first ECHO command will display B and the second will display C.
  1401. !SORT
  1402. COMMAND:  SORT                                             MS-DOS 2.XX and 3.XX
  1403.  
  1404. TYPE:     External DOS command.
  1405.  
  1406. PURPOSE:  Sort text data.
  1407.  
  1408. SYNTAX:
  1409.  
  1410.   SORT [/R][/+n]
  1411.  
  1412.   where   /R requests reverse order sort, and
  1413.  
  1414.           /+n starts the sort on column n.
  1415.  
  1416. EXAMPLE 1:
  1417.  
  1418.   SORT /R <UNSORT.TXT >SORT.TXT    reads the file UNSORT.TXT, sorts the
  1419.                                    records, and writes them to SORT.TXT.
  1420.  
  1421. EXAMPLE 2:
  1422.  
  1423.   DIR | SORT /+14                  produces a directory listing sorted by file
  1424.                                    size (size starts in column 14).
  1425. !SWCHR
  1426. COMMAND:  SWCHR                    by Kent L. Schepler for MS-DOS 2.XX and 3.XX
  1427.  
  1428. TYPE:     External DOS command.
  1429.  
  1430. PURPOSE:  Change the MS-DOS switch character, /, to another character.
  1431.  
  1432. SYNTAX:
  1433.  
  1434.   SWCHR [chr|"chr"|?]
  1435.  
  1436.   where   chr specifies the new switch character, and
  1437.  
  1438.           ? returns the switch character status.
  1439.  
  1440.   When no parameter is specified or syntax is incorrect no action is taken and
  1441.   the SWCHR document text is displayed on the console display device.
  1442.  
  1443. EXAMPLE:
  1444.  
  1445.   SWCHR -      changes the MS-DOS switch character to -.
  1446.  
  1447. To make the question mark the switch character, enclose it in quotation marks,
  1448. e.g., SWCHR "?".
  1449.  
  1450. The switch character is the character that is used to precede MS-DOS command
  1451. line switches as in DIR/W.  The / character is the default switch character for
  1452. MS-DOS.  Since the UNIX operating system, after which the MS-DOS directory
  1453. structure was patterned, uses the - character for the switch character, many
  1454. MS-DOS users prefer to have the - character as the switch character.
  1455.  
  1456. The \ character is the character normally used by MS-DOS as the file separator
  1457. because the / character, used as the file separator character by UNIX, was
  1458. already used as the switch character in MS-DOS.  When the MS-DOS switch
  1459. character is changed to a character other than the / character, either the /
  1460. character or the \ character can be used as a MS-DOS file separator character
  1461. when specifying a path.
  1462. !SYS
  1463. COMMAND:  SYS                                              MS-DOS 2.XX and 3.XX
  1464.  
  1465. TYPE:     External DOS command.
  1466.  
  1467. PURPOSE:  Transfer the MS-DOS system files from one diskette to another.
  1468.  
  1469. SYNTAX:
  1470.  
  1471.   SYS drive1 drive2
  1472.  
  1473.   or
  1474.  
  1475.   SYS drive
  1476.  
  1477. EXAMPLE:
  1478.  
  1479.   SYS B:       transfers the system files from the diskette in the default
  1480.                drive to the diskette in drive B:.
  1481. !TIME
  1482. COMMAND:  TIME                                             MS-DOS 2.XX and 3.XX
  1483.  
  1484. TYPE:     Internal DOS command.
  1485.  
  1486. PURPOSE:  Set or read the system clock.
  1487.  
  1488. SYNTAX:
  1489.  
  1490.   TIME [hh:mm[:ss[.xx]]]
  1491.  
  1492. EXAMPLE:
  1493.  
  1494.   TIME 14:30   sets the system clock to 14:30 hours or 2:30 PM.
  1495. !TIMEPARK
  1496. COMMAND:  TIMEPARK             by Sanford J. Zelkovitz for MS-DOS 2.XX and 3.XX
  1497.  
  1498. TYPE:     External DOS command.
  1499.  
  1500. PURPOSE:  Park the hard disk drive C and, if it exists, drive D during periods
  1501.           of inactivity to protect surface of the hard disk(s).
  1502.  
  1503. SYNTAX:
  1504.  
  1505.   TIMEPARK <n>
  1506.  
  1507.   where n is an integer ranging in value from 1 to 9 specifying delay time in
  1508.   minutes.
  1509.  
  1510. EXAMPLE:
  1511.  
  1512.   TIMEPARK 2        parks the hard disk(s) after two minutes of inactivity.
  1513.                     Place this command in the AUTOEXEC.BAT file to install
  1514.                     TIMEPARK at the time the system is loaded.
  1515.  
  1516. !TREE
  1517. COMMAND:  TREE                                             MS-DOS 2.XX and 3.XX
  1518.  
  1519. TYPE:     External DOS command.
  1520.  
  1521. PURPOSE:  Display all directory paths.
  1522.  
  1523. SYNTAX:
  1524.  
  1525.   TREE [drive][/F]
  1526.  
  1527.   where /F requests the display of the names of all files in each path.
  1528.  
  1529. EXAMPLE:
  1530.  
  1531.   TREE C:/F    displays the directory paths on drive C: and the names of all
  1532.                files in each path.
  1533. !TYPE
  1534. COMMAND:  TYPE                                             MS-DOS 2.XX and 3.XX
  1535.  
  1536. TYPE:     Internal DOS command.
  1537.  
  1538. PURPOSE:  List ASCII file to the screen.
  1539.  
  1540. SYNTAX:
  1541.  
  1542.   TYPE <filespec>
  1543.  
  1544. EXAMPLE:
  1545.  
  1546.   TYPE A:APPLE.DOC      sends the file APPLE.DOC on drive A to the screen.
  1547. !TYPEF
  1548. COMMAND:  TYPEF                         by Mark Zeiger for MS-DOS 2.XX and 3.XX
  1549.  
  1550. TYPE:     External DOS command.
  1551.  
  1552. PURPOSE:  List ASCII file to the screen.  The listing pauses when any key is
  1553.           pressed and starts again when any key is pressed.  The listing may
  1554.           also be sent to the PRN print device (printer).  The listing may be
  1555.           aborted by pressing the <CTRL> plus <C> key sequence or the <BREAK>
  1556.           key.
  1557.  
  1558. SYNTAX:
  1559.  
  1560.   TYPEF <filespec> [P[n]]
  1561.  
  1562.   where   P causes the file to be sent to the PRN device, and
  1563.  
  1564.           n is an integer 1 through 9 to make the PRN device skip to top of
  1565.           form after printing 66-n lines.
  1566.  
  1567. EXAMPLE:
  1568.  
  1569.   TYPEF A:APPLE.DOC     lists the file APPLE.DOC on drive A to the screen.
  1570. !VER
  1571. COMMAND:  VER                                              MS-DOS 2.XX and 3.XX
  1572.  
  1573. TYPE:     Internal DOS command.
  1574.  
  1575. PURPOSE:  Display DOS version number.
  1576.  
  1577. SYNTAX:
  1578.  
  1579.   VER
  1580.  
  1581. EXAMPLE:
  1582.  
  1583.   VER     displays DOS version number.
  1584. !VERIFY
  1585. COMMAND:  VERIFY                                           MS-DOS 2.XX and 3.XX
  1586.  
  1587. TYPE:     Internal DOS command.
  1588.  
  1589. PURPOSE:  Toggle the VERIFY switch ON or OFF.
  1590.  
  1591. SYNTAX:
  1592.  
  1593.   VERIFY [ON|OFF]
  1594.  
  1595. EXAMPLE 1:
  1596.  
  1597.   VERIFY       displays the current status of the verify switch.
  1598.  
  1599. EXAMPLE 2:
  1600.  
  1601.   VERIFY ON    turns verify switch ON.  All data written to disk is verified.
  1602.  
  1603. EXAMPLE 3:
  1604.  
  1605.   VERIFY OFF   turns verify switch OFF.  Data written to disk will not
  1606.                be verified.
  1607. !VOL
  1608. COMMAND:  VOL                                              MS-DOS 2.XX and 3.XX
  1609.  
  1610. TYPE:     Internal DOS command.
  1611.  
  1612. PURPOSE:  Display volume identification label.
  1613.  
  1614. SYNTAX:
  1615.  
  1616.   VOL [drive]
  1617.  
  1618. EXAMPLE:
  1619.  
  1620.   VOL A:  displays volume label of disk in drive A.
  1621. !VOLUME
  1622. COMMAND:  VOLUME                        by Mark Zeiger for MS-DOS 2.XX and 3.XX
  1623.  
  1624. TYPE:     External DOS command.
  1625.  
  1626. PURPOSE:  Change, delete, or add the volume label of a disk.
  1627.  
  1628. SYNTAX:
  1629.  
  1630.   VOLUME [drive][label]
  1631.  
  1632.   where label is string with a length of 11 characters or less.
  1633.  
  1634. EXAMPLE:
  1635.  
  1636.   VOLUME B:WORKDISK      lables the disk in drive B: as "WORKDISK".
  1637.  
  1638. The original volume label will be detected and a new one created.  If the drive
  1639. is not specified, the default drive is assumed.
  1640.  
  1641. To erase a volume label without replacing it with a new one, enter the VOLUME
  1642. command followed by the drive name and nothing else.  To delete the volume
  1643. label on the default drive, enter the VOLUME command followed by a space and
  1644. nothing else.
  1645.