home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 197 / DOS50DOC.ZIP / DOS50.DOC
Encoding:
Text File  |  1991-09-25  |  43.8 KB  |  1,201 lines

  1.              MS-DOS 5.0 COMMANDS
  2.            =======================
  3.  
  4. APPEND   Allows programs to open data files in specified directories as if 
  5.          they were in the current directory.
  6. ASSIGN   Redirects requests for disk operations on one drive to a different 
  7.          drive.
  8. ATTRIB   Displays or changes file attributes.
  9. BACKUP   Backs up one or more files from one disk to another.
  10. BREAK    Sets or clears extended CTRL+C checking.
  11. CALL     Calls one batch program from another.
  12. CD       Displays the name of or changes the current directory.
  13. CHCP     Displays or sets the active code page number.
  14. CHDIR    Displays the name of or changes the current directory.
  15. CHKDSK   Checks a disk and displays a status report.
  16. CLS      Clears the screen.
  17. COMMAND  Starts a new instance of the MS-DOS command interpreter.
  18. COMP     Compares the contents of two files or sets of files.
  19. COPY     Copies one or more files to another location.
  20. CTTY     Changes the terminal device used to control your system.
  21. DATE     Displays or sets the date.
  22. DEBUG    Runs Debug, a program testing and editing tool.
  23. DEL      Deletes one or more files.
  24. DIR      Displays a list of files and subdirectories in a directory.
  25. DISKCOMP Compares the contents of two floppy disks.
  26. DISKCOPY Copies the contents of one floppy disk to another.
  27. DOSKEY   Edits command lines, recalls MS-DOS commands, and creates macros.
  28. DOSSHELL Starts MS-DOS Shell.
  29. ECHO     Displays messages, or turns command echoing on or off.
  30. EDIT     Starts MS-DOS Editor, which creates and changes ASCII files.
  31. EDLIN    Starts Edlin, a line-oriented text editor.
  32. EMM386   Turns on or off EMM386 expanded memory support.
  33. ERASE    Deletes one or more files.
  34. EXE2BIN  Converts .EXE (executable) files to binary format.
  35. EXIT     Quits the COMMAND.COM program (command interpreter).
  36. EXPAND   Expands one or more compressed files.
  37. FASTOPEN Decreases the amount of time needed to open frequently used files 
  38.          and directories.
  39. FC       Compares two files or sets of files, and displays the differences 
  40.          between them.
  41. FDISK    Configures a hard disk for use with MS-DOS.
  42. FIND     Searches for a text string in a file or files.
  43. FOR      Runs a specified command for each file in a set of files.
  44. FORMAT   Formats a disk for use with MS-DOS.
  45. GOTO     Directs MS-DOS to a labelled line in a batch program.
  46. GRAFTABL Enables MS-DOS to display an extended character set in graphics mode.
  47. GRAPHICS Loads a program that can print graphics.
  48. HELP     Provides Help information for MS-DOS commands.
  49. IF       Performs conditional processing in batch programs.
  50. JOIN     Joins a disk drive to a directory on another drive.
  51. KEYB     Configures a keyboard for a specific language.
  52. LABEL    Creates, changes, or deletes the volume label of a disk.
  53. LH       Loads a program into the upper memory area.
  54. LOADFIX  Loads a program above the first 64K of memory, and runs the program.
  55. LOADHIGH Loads a program into the upper memory area.
  56. MD       Creates a directory.
  57. MEM      Displays the amount of used and free memory in your system.
  58. MIRROR   Records information about one or more disks.
  59. MKDIR    Creates a directory.
  60. MODE     Configures a system device.
  61. MORE     Displays output one screen at a time.
  62. NLSFUNC  Loads country-specific information.
  63. PATH     Displays or sets a search path for executable files.
  64. PAUSE    Suspends processing of a batch file and displays a message.
  65. PRINT    Prints a text file while you are using other MS-DOS commands.
  66. PROMPT   Changes the MS-DOS command prompt.
  67. QBASIC   Starts the MS-DOS QBasic programming environment.
  68. RD       Removes a directory.
  69. RECOVER  Recovers readable information from a bad or defective disk.
  70. REM      Records comments (remarks) in batch files or CONFIG.SYS.
  71. REN      Renames a file or files.
  72. RENAME   Renames a file or files.
  73. REPLACE  Replaces files.
  74. RESTORE  Restores files that were backed up by using the BACKUP command.
  75. RMDIR    Removes a directory.
  76. SET      Displays, sets, or removes MS-DOS environment variables.
  77. SETVER   Sets the version number that MS-DOS reports to a program.
  78. SHARE    Installs file-sharing and locking capabilities on your hard disk.
  79. SHIFT    Shifts the position of replaceable parameters in batch files.
  80. SORT     Sorts input.
  81. SUBST    Associates a path with a drive letter.
  82. SYS      Copies MS-DOS system files and command interpreter to a disk you 
  83.          specify.
  84. TIME     Displays or sets the system time.
  85. TREE     Graphically displays the directory structure of a drive or path.
  86. TYPE     Displays the contents of a text file.
  87. UNDELETE Recovers files which have been deleted.
  88. UNFORMAT Restores a disk erased by the FORMAT command or restructured by the 
  89.          RECOVER command.
  90. VER      Displays the MS-DOS version.
  91. VERIFY   Tells MS-DOS whether to verify that your files are written correctly 
  92.          to a disk.
  93. VOL      Displays a disk volume label and serial number.
  94. XCOPY    Copies files (except hidden and system files) and directory trees.
  95.  
  96. --------------------------------------------------------------------------
  97.  
  98. APPEND
  99.  
  100. Allows programs to open data files in specified directories as if they were in
  101. the current directory.
  102.  
  103. APPEND [[drive:]path[;...]] [/X[:ON | :OFF]] [/PATH:ON | /PATH:OFF] [/E]
  104. APPEND ;
  105.  
  106.   [drive:]path Specifies a drive and directory to append.
  107.   /X:ON        Applies appended directories to file searches and
  108.                application execution.
  109.   /X:OFF       Applies appended directories only to requests to open files.
  110.                /X:OFF is the default setting.
  111.   /PATH:ON     Applies appended directories to file requests that already
  112.                specify a path.  /PATH:ON is the default setting.
  113.   /PATH:OFF    Turns off the effect of /PATH:ON.
  114.   /E           Stores a copy of the appended directory list in an environment
  115.                variable named APPEND.  /E may be used only the first time
  116.                you use APPEND after starting your system.
  117.  
  118. Type APPEND ; to clear the appended directory list.
  119. Type APPEND without parameters to display the appended directory list.
  120. ----------------------------------------------------------------------------
  121.  
  122. ASSIGN
  123.  
  124. Redirects requests for disk operations on one drive to a different drive.
  125.  
  126. ASSIGN [x[:]=y[:][...]]
  127. ASSIGN /STATUS
  128.  
  129.   x        Specifies the drive letter to reassign.
  130.   y        Specifies the drive that x: will be assigned to.
  131.   /STATUS  Displays current drive assignments.
  132.  
  133. Type ASSIGN without parameters to reset all drive letters to original
  134. assignments.
  135. ----------------------------------------------------------------------------
  136.  
  137. ATTRIB
  138.  
  139. Displays or changes file attributes.
  140.  
  141. ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:][path]filename] [/S]
  142.  
  143.   +   Sets an attribute.
  144.   -   Clears an attribute.
  145.   R   Read-only file attribute.
  146.   A   Archive file attribute.
  147.   S   System file attribute.
  148.   H   Hidden file attribute.
  149.   /S  Processes files in all directories in the specified path.
  150. ----------------------------------------------------------------------------
  151.  
  152. BACKUP
  153.  
  154. Backs up one or more files from one disk to another.
  155.  
  156. BACKUP source destination-drive: [/S] [/M] [/A] [/F[:size]]
  157.   [/D:date[/T:time]] [/L[:[drive:][path]logfile]]
  158.  
  159.   source             Specifies the file(s), drive, or directory to back up.
  160.   destination-drive: Specifies the drive to save backup copies onto.
  161.   /S                 Backs up contents of subdirectories.
  162.   /M                 Backs up only files that have changed since the last
  163.                      backup.
  164.   /A                 Adds backup files to an existing backup disk.
  165.   /F:[size]          Specifies the size of the disk to be formatted.
  166.   /D:date            Backs up only files changed on or after the specified
  167.                      date.
  168.   /T:time            Backs up only files changed at or after the specified
  169.                      time.
  170.   /L[:[drive:][path]logfile]
  171.                      Creates a log file and entry to record the backup
  172.                      operation.
  173. ----------------------------------------------------------------------------
  174.  
  175. BREAK
  176.  
  177. Sets or clears extended CTRL+C checking.
  178.  
  179. BREAK [ON | OFF]
  180.  
  181. Type BREAK without a parameter to display the current BREAK setting.
  182. ----------------------------------------------------------------------------
  183.  
  184. CALL
  185.  
  186. Calls one batch program from another.
  187.  
  188. CALL [drive:][path]filename [batch-parameters]
  189.  
  190.   batch-parameters   Specifies any command-line information required by the
  191.                      batch program.
  192. ----------------------------------------------------------------------------
  193.  
  194. CHDIR
  195. CD
  196.  
  197. Displays the name of or changes the current directory.
  198.  
  199. CHDIR [drive:][path]
  200. CHDIR[..]
  201. CD [drive:][path]
  202. CD[..]
  203.  
  204.   ..   Specifies that you want to change to the parent directory.
  205.  
  206. Type CD drive: to display the current directory in the specified drive.
  207. Type CD without parameters to display the current drive and directory.
  208.  
  209. ----------------------------------------------------------------------------
  210.  
  211. CHCP
  212.  
  213. Displays or sets the active code page number.
  214.  
  215. CHCP [nnn]
  216.  
  217.   nnn   Specifies a code page number.
  218.  
  219. Type CHCP without a parameter to display the active code page number.
  220. ----------------------------------------------------------------------------
  221.  
  222. CHKDSK
  223.  
  224. Checks a disk and displays a status report.
  225.  
  226. CHKDSK [drive:][[path]filename] [/F] [/V]
  227.  
  228.   [drive:][path]  Specifies the drive and directory to check.
  229.   filename        Specifies the file(s) to check for fragmentation.
  230.   /F              Fixes errors on the disk.
  231.   /V              Displays the full path and name of every file on the disk.
  232.  
  233. Type CHKDSK without parameters to check the current disk.
  234. ----------------------------------------------------------------------------
  235.  
  236. CLS
  237.  
  238. Clears the screen.
  239. ----------------------------------------------------------------------------
  240.  
  241. COMMAND
  242.  
  243. Starts a new instance of the MS-DOS command interpreter.
  244.  
  245. COMMAND [[drive:]path] [device] [/E:nnnnn] [/P] [/C string] [/MSG]
  246.  
  247.   [drive:]path    Specifies the directory containing COMMAND.COM file.
  248.   device          Specifies the device to use for command input and output.
  249.   /E:nnnnn        Sets the initial environment size to nnnnn bytes.
  250.   /P              Makes the new command interpreter permanent (can't exit).
  251.   /C string       Carries out the command specified by string, and then stops.
  252.   /MSG            Specifies that all error messages be stored in memory. You
  253.                   need to specify /P with this switch.
  254. ----------------------------------------------------------------------------
  255.  
  256. COMP
  257.  
  258. Compares the contents of two files or sets of files.
  259.  
  260. COMP [data1] [data2] [/D] [/A] [/L] [/N=number] [/C]
  261.  
  262.   data1     Specifies location and name(s) of first file(s) to compare.
  263.   data2     Specifies location and name(s) of second files to compare.
  264.   /D        Displays differences in decimal format. This is the default
  265.             setting.
  266.   /A        Displays differences in ASCII characters.
  267.   /L        Displays line numbers for differences.
  268.   /N=number Compares only the first specified number of lines in each file.
  269.   /C        Disregards case of ASCII letters when comparing files.
  270.  
  271. To compare sets of files, use wildcards in data1 and data2 parameters.
  272. ----------------------------------------------------------------------------
  273.  
  274. COPY
  275.  
  276. Copies one or more files to another location.
  277.  
  278. COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination
  279.   [/A | /B]] [/V]
  280.  
  281.   source       Specifies the file or files to be copied.
  282.   /A           Indicates an ASCII text file.
  283.   /B           Indicates a binary file.
  284.   destination  Specifies the directory and/or filename for the new file(s).
  285.   /V           Verifies that new files are written correctly.
  286.  
  287. To append files, specify a single file for destination, but multiple files
  288. for source (using wildcards or file1+file2+file3 format).
  289. ----------------------------------------------------------------------------
  290.  
  291. CTTY
  292.  
  293. Changes the terminal device used to control your system.
  294.  
  295. CTTY device
  296.  
  297.   device   The terminal device you want to use, such as COM1.
  298. ----------------------------------------------------------------------------
  299.  
  300. DATE
  301.  
  302. Displays or sets the date.
  303.  
  304. DATE [date]
  305.  
  306. Type DATE without parameters to display the current date setting and
  307. a prompt for a new one.  Press ENTER to keep the same date.
  308. ----------------------------------------------------------------------------
  309.  
  310. DEBUG
  311.  
  312. Runs Debug, a program testing and editing tool.
  313.  
  314. DEBUG [[drive:][path]filename [testfile-parameters]]
  315.  
  316.   [drive:][path]filename  Specifies the file you want to test.
  317.   testfile-parameters     Specifies command-line information required by
  318.                           the file you want to test.
  319.  
  320. After Debug starts, type ? to display a list of debugging commands.
  321. ----------------------------------------------------------------------------
  322.  
  323. DEL
  324. ERASE
  325.  
  326. Deletes one or more files.
  327.  
  328. DEL [drive:][path]filename [/P]
  329. ERASE [drive:][path]filename [/P]
  330.  
  331.   [drive:][path]filename  Specifies the file(s) to delete.  Specify multiple
  332.                           files by using wildcards.
  333.   /P                      Prompts for confirmation before deleting each file.
  334. ----------------------------------------------------------------------------
  335.  
  336. DIR
  337.  
  338. Displays a list of files and subdirectories in a directory.
  339.  
  340. DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]]
  341.   [/O[[:]sortorder]] [/S] [/B] [/L]
  342.  
  343.   [drive:][path][filename]
  344.               Specifies drive, directory, and/or files to list.
  345.   /P          Pauses after each screenful of information.
  346.   /W          Uses wide list format.
  347.   /A          Displays files with specified attributes.
  348.   attributes   D  Directories                R  Read-only files
  349.                H  Hidden files               A  Files ready for archiving
  350.                S  System files               -  Prefix meaning "not"
  351.   /O          List by files in sorted order.
  352.   sortorder    N  By name (alphabetic)       S  By size (smallest first)
  353.                E  By extension (alphabetic)  D  By date & time (earliest first)
  354.                G  Group directories first    -  Prefix to reverse order
  355.   /S          Displays files in specified directory and all subdirectories.
  356.   /B          Uses bare format (no heading information or summary).
  357.   /L          Uses lowercase.
  358.  
  359. Switches may be preset in the DIRCMD environment variable.  Override
  360. preset switches by prefixing any switch with - (hyphen)--for example, /-W.
  361. ----------------------------------------------------------------------------
  362.  
  363. DISKCOMP
  364.  
  365. Compares the contents of two floppy disks.
  366.  
  367. DISKCOMP [drive1: [drive2:]] [/1] [/8]
  368.  
  369.   /1   Compares the first side of the disks.
  370.   /8   Compares only the first eight sectors of each track.
  371. ----------------------------------------------------------------------------
  372.  
  373. DISKCOPY
  374.  
  375. Copies the contents of one floppy disk to another.
  376.  
  377. DISKCOPY [drive1: [drive2:]] [/1] [/V]
  378.  
  379.   /1   Copies only the first side of the disk.
  380.   /V   Verifies that the information is copied correctly.
  381.  
  382. The two floppy disks must be the same type.
  383. You may specify the same drive for drive1 and drive2.
  384. ----------------------------------------------------------------------------
  385.  
  386. DOSKEY
  387.  
  388. Edits command lines, recalls MS-DOS commands, and creates macros.
  389.  
  390. DOSKEY [/REINSTALL] [/BUFSIZE=size] [/MACROS] [/HISTORY]
  391.   [/INSERT | /OVERSTRIKE] [macroname=[text]]
  392.  
  393.   /REINSTALL    Installs a new copy of Doskey.
  394.   /BUFSIZE=size Sets size of command history buffer.
  395.   /MACROS       Displays all Doskey macros.
  396.   /HISTORY      Displays all commands stored in memory.
  397.   /INSERT       Specifies that new text you type is inserted in old text.
  398.   /OVERSTRIKE   Specifies that new text overwrites old text.
  399.   macroname     Specifies a name for a macro you create.
  400.   text          Specifies commands you want to record.
  401.  
  402. UP and DOWN ARROWS recall commands; ESC clears command line; F7 displays
  403. command history; ALT+F7 clears command history; F8 searches command
  404. history; F9 selects a command by number; ALT+F10 clears macro definitions.
  405.  
  406. The following are some special codes in Doskey macro definitions:
  407. $T     Command separator.  Allows multiple commands in a macro.
  408. $1-$9  Batch parameters.  Equivalent to %1-%9 in batch programs.
  409. $*     Symbol replaced by everything following macro name on command line.
  410.  
  411. ----------------------------------------------------------------------------
  412.  
  413. DOSSHELL
  414.  
  415. Microsoft (R) DOS Version 5.0  MS-DOS Shell
  416. Copyright (c) Microsoft Corp 1991. All rights reserved.
  417.  
  418. Starts MS-DOS Shell.
  419.  
  420. DOSSHELL [/T[:res[n]]] [/B]
  421. DOSSHELL [/G[:res[n]]] [/B]
  422.  
  423.   /T        Starts MS-DOS Shell in text mode.
  424.   :res[n]   A letter (L, M, H) and number indicating screen resolution.
  425.   /B        Starts MS-DOS Shell using black-and-white color scheme.
  426.   /G        Starts MS-DOS Shell in graphics mode.
  427. ----------------------------------------------------------------------------
  428.  
  429. ECHO
  430.  
  431. Displays messages, or turns command-echoing on or off.
  432.  
  433.   ECHO [ON | OFF]
  434.   ECHO [message]
  435.  
  436. Type ECHO without parameters to display the current echo setting.
  437. ----------------------------------------------------------------------------
  438.  
  439. EDIT
  440.  
  441. Starts the MS-DOS Editor, which creates and changes ASCII files.
  442.  
  443. EDIT [[drive:][path]filename] [/B] [/G] [/H] [/NOHI]
  444.  
  445.   [drive:][path]filename  Specifies the ASCII file to edit.
  446.   /B          Allows use of a monochrome monitor with a color graphics card.
  447.   /G          Provides the fastest update of a CGA screen.
  448.   /H          Displays the maximum number of lines possible for your hardware.
  449.   /NOHI       Allows the use of a monitor without high-intensity support.
  450. ----------------------------------------------------------------------------
  451.  
  452. EDLIN
  453.  
  454. Starts Edlin, a line-oriented text editor.
  455.  
  456. EDLIN [drive:][path]filename [/B]
  457.  
  458.   /B   Ignores end-of-file (CTRL+Z) characters.
  459. ----------------------------------------------------------------------------
  460.  
  461. EMM386
  462.  
  463. Turns on or off EMM386 expanded memory support.
  464.  
  465. EMM386 [ON | OFF | AUTO] [W=ON | W=OFF]
  466.  
  467.   ON | OFF | AUTO       Activates or suspends EMM386.EXE device driver,
  468.                         or places it in auto mode.
  469.   W=ON | OFF            Turns on or off Weitek coprocessor support.
  470. ----------------------------------------------------------------------------
  471.  
  472. DEL
  473. ERASE
  474.  
  475. Deletes one or more files.
  476.  
  477. DEL [drive:][path]filename [/P]
  478. ERASE [drive:][path]filename [/P]
  479.  
  480.   [drive:][path]filename  Specifies the file(s) to delete.  Specify multiple
  481.                           files by using wildcards.
  482.   /P                      Prompts for confirmation before deleting each file.
  483. ----------------------------------------------------------------------------
  484.  
  485. EXE2BIN
  486.  
  487. Converts .EXE (executable) files to binary format.
  488.  
  489. EXE2BIN [drive1:][path1]input-file [[drive2:][path2]output-file]
  490.  
  491.   input-file   Specifies the .EXE file to be converted.
  492.   output-file  Specifies the binary file to be created.
  493. ----------------------------------------------------------------------------
  494.  
  495. EXIT
  496.  
  497. Quits the COMMAND.COM program (command interpreter).
  498.  
  499. EXIT
  500. ----------------------------------------------------------------------------
  501.  
  502. EXPAND
  503.  
  504. Expands one or more compressed files.
  505.  
  506. EXPAND [drive:][path]filename [[drive1:][path1]filename[ ...]] destination
  507.  
  508.   [drive:][path]filename  Specifies the location and/or name of a file or
  509.                           set of files to be expanded. You cannot use
  510.                           wildcards.
  511.   destination             Specifies the new location and/or name of an
  512.                           expanded file or set of files. Destination can be
  513.                           a drive letter and colon, directory name,
  514.                           filename, or combination.
  515.  
  516. The destination can only be a filename if you have specified a single
  517. filename for the source filename parameter. To expand multiple files to a
  518. different directory and keep the original filenames, specify only a
  519. directory as the destination.
  520. ----------------------------------------------------------------------------
  521.  
  522. FASTOPEN
  523.  
  524. Decreases the amount of time needed to open frequently used files
  525. and directories.
  526.  
  527. FASTOPEN drive:[[=]n] [drive:[[=]n][ ...]] [/X]
  528.  
  529.   drive:  Specifies the hard disk drive you want Fastopen to work with.
  530.   n       Specifies the maximum number of file locations Fastopen retains
  531.           in its filename cache.
  532.   /X      Creates the filename cache in expanded memory.
  533. ----------------------------------------------------------------------------
  534.  
  535. FC
  536.  
  537. Compares two files or sets of files and displays the differences between
  538. them.
  539.  
  540. FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/W] [/nnnn] [drive1:][path1]filename1
  541.   [drive2:][path2]filename2
  542. FC /B [drive1:][path1]filename1 [drive2:][path2]filename2
  543.  
  544.   /A     Displays only first and last lines for each set of differences.
  545.   /B     Performs a binary comparison.
  546.   /C     Disregards the case of letters.
  547.   /L     Compares files as ASCII text.
  548.   /LBn   Sets the maximum consecutive mismatches to the specified number of
  549.          lines.
  550.   /N     Displays the line numbers on an ASCII comparison.
  551.   /T     Does not expand tabs to spaces.
  552.   /W     Compresses white space (tabs and spaces) for comparison.
  553.   /nnnn  Specifies the number of consecutive lines that must match after a
  554.          mismatch.
  555. ----------------------------------------------------------------------------
  556.  
  557. FDISK
  558.  
  559. Configures a hard disk for use with MS-DOS.
  560.  
  561. FDISK
  562. ----------------------------------------------------------------------------
  563.  
  564. FIND
  565.  
  566. Searches for a text string in a file or files.
  567.  
  568. FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[ ...]]
  569.  
  570.   /V        Displays all lines NOT containing the specified string.
  571.   /C        Displays only the count of lines containing the string.
  572.   /N        Displays line numbers with the displayed lines.
  573.   /I        Ignores the case of characters when searching for the string.
  574.   "string"  Specifies the text string to find.
  575.   [drive:][path]filename
  576.             Specifies a file or files to search.
  577.  
  578. If a pathname is not specified, FIND searches the text typed at the prompt
  579. or piped from another command.
  580. ----------------------------------------------------------------------------
  581.  
  582. FOR
  583.  
  584. Runs a specified command for each file in a set of files.
  585.  
  586. FOR %variable IN (set) DO command [command-parameters]
  587.  
  588.   %variable  Specifies a replaceable parameter.
  589.   (set)      Specifies a set of one or more files.  Wildcards may be used.
  590.   command    Specifies the command to carry out for each file.
  591.   command-parameters
  592.              Specifies parameters or switches for the specified command.
  593.  
  594. To use the FOR command in a batch program, specify %%variable instead of
  595. %variable.
  596. ----------------------------------------------------------------------------
  597.  
  598. FORMAT
  599.  
  600. Formats a disk for use with MS-DOS.
  601.  
  602. FORMAT drive: [/V[:label]] [/Q] [/U] [/F:size] [/B | /S]
  603. FORMAT drive: [/V[:label]] [/Q] [/U] [/T:tracks /N:sectors] [/B | /S]
  604. FORMAT drive: [/V[:label]] [/Q] [/U] [/1] [/4] [/B | /S]
  605. FORMAT drive: [/Q] [/U] [/1] [/4] [/8] [/B | /S]
  606.  
  607.   /V[:label]  Specifies the volume label.
  608.   /Q          Performs a quick format.
  609.   /U          Performs an unconditional format.
  610.   /F:size     Specifies the size of the floppy disk to format (such 
  611.               as 160, 180, 320, 360, 720, 1.2, 1.44, 2.88).
  612.   /B          Allocates space on the formatted disk for system files.
  613.   /S          Copies system files to the formatted disk.
  614.   /T:tracks   Specifies the number of tracks per disk side.
  615.   /N:sectors  Specifies the number of sectors per track.
  616.   /1          Formats a single side of a floppy disk.
  617.   /4          Formats a 5.25-inch 360K floppy disk in a high-density drive.
  618.   /8          Formats eight sectors per track.
  619. ----------------------------------------------------------------------------
  620.  
  621. GOTO
  622.  
  623. Directs MS-DOS to a labelled line in a batch program.
  624.  
  625. GOTO label
  626.  
  627.   label   Specifies a text string used in the batch program as a label.
  628.  
  629. You type a label on a line by itself, beginning with a colon.
  630. ----------------------------------------------------------------------------
  631.  
  632. GRAFTABL
  633.  
  634. Enables MS-DOS to display an extended character set in graphics mode.
  635.  
  636. GRAFTABL [xxx]
  637. GRAFTABL /STATUS
  638.  
  639.   xxx      Specifies a code page number.
  640.   /STATUS  Displays the current code page selected for use with GRAFTABL.
  641. ----------------------------------------------------------------------------
  642.  
  643. GRAPHICS
  644.  
  645. Loads a program that can print graphics.
  646.  
  647. GRAPHICS [type] [[drive:][path]filename] [/R] [/B] [/LCD]
  648.   [/PRINTBOX:STD | /PRINTBOX:LCD]
  649.  
  650.   type         Specifies a printer type (see User's Guide and Reference).
  651.   [drive:][path]filename
  652.                Specifies the file containing information on supported printers.
  653.   /R           Prints white on black as seen on the screen.
  654.   /B           Prints the background in color for COLOR4 and COLOR8 printers.
  655.   /LCD         Prints using LCD aspect ratio.
  656.   /PRINTBOX:STD | /PRINTBOX:LCD
  657.                Specifies the print-box size, either STD or LCD.
  658. ----------------------------------------------------------------------------
  659.  
  660. HELP
  661.  
  662. Provides help information for MS-DOS commands.
  663.  
  664. HELP [command]
  665.  
  666.   command - displays help information on that command.
  667. ----------------------------------------------------------------------------
  668.  
  669. IF
  670.  
  671. Performs conditional processing in batch programs.
  672.  
  673. IF [NOT] ERRORLEVEL number command
  674. IF [NOT] string1==string2 command
  675. IF [NOT] EXIST filename command
  676.  
  677.   NOT               Specifies that MS-DOS should carry out the command only
  678.                     if the condition is false.
  679.   ERRORLEVEL number Specifies a true condition if the last program run returned
  680.                     an exit code equal to or greater than the number specified.
  681.   command           Specifies the command to carry out if the condition is
  682.                     met.
  683.   string1==string2  Specifies a true condition if the specified text strings
  684.                     match.
  685.   EXIST filename    Specifies a true condition if the specified filename
  686.                     exists.
  687. ----------------------------------------------------------------------------
  688.  
  689. JOIN
  690.  
  691. Joins a disk drive to a directory on another drive.
  692.  
  693. JOIN [drive1: [drive2:]path]
  694. JOIN drive1: /D
  695.  
  696.   drive1:        Specifies a disk drive that will appear as a directory on
  697.                  drive2.
  698.   drive2:        Specifies a drive to which you want to join drive1.
  699.   path           Specifies the directory to which you want to join drive1. It
  700.                  must be empty and cannot be the root directory.
  701.   /D             Cancels any previous JOIN commands for the specified drive.
  702.  
  703. Type JOIN without parameters to list currently joined drives.
  704. ----------------------------------------------------------------------------
  705.  
  706. KEYB
  707.  
  708. Configures a keyboard for a specific language.
  709.  
  710. KEYB [xx[,[yyy][,[drive:][path]filename]]] [/E] [/ID:nnn]
  711.  
  712.   xx                      Specifies a two-letter keyboard code.
  713.   yyy                     Specifies the code page for the character set.
  714.   [drive:][path]filename  Specifies the keyboard definition file.
  715.   /E                      Specifies that an enhanced keyboard is installed.
  716.   /ID:nnn                 Specifies the keyboard in use.
  717. ----------------------------------------------------------------------------
  718.  
  719. LABEL
  720.  
  721. Creates, changes, or deletes the volume label of a disk.
  722.  
  723. LABEL [drive:][label]
  724. ----------------------------------------------------------------------------
  725.  
  726. LOADHIGH
  727.  
  728. Loads a program into the upper memory area.
  729.  
  730. LOADHIGH [drive:][path]filename [parameters]
  731. LH [drive:][path]filename [parameters]
  732.  
  733.   parameters   Specifies any command-line information required by the
  734.                program you want to load.
  735. ----------------------------------------------------------------------------
  736.  
  737. LOADFIX
  738.  
  739. Loads a program above the first 64K of memory, and runs the program.
  740.  
  741. LOADFIX [drive:][path]filename
  742.  
  743. Use LOADFIX to load a program if you have received the message
  744. "Packed file corrupt" when trying to load it in low memory.
  745. ----------------------------------------------------------------------------
  746.  
  747. MD
  748. MKDIR
  749.  
  750. Creates a directory.
  751.  
  752. MKDIR [drive:]path
  753. MD [drive:]path
  754. ----------------------------------------------------------------------------
  755.  
  756. MEM
  757.  
  758. Displays the amount of used and free memory in your system.
  759.  
  760. MEM [/PROGRAM | /DEBUG | /CLASSIFY]
  761.  
  762.   /PROGRAM or /P   Displays status of programs currently loaded in memory.
  763.   /DEBUG or /D     Displays status of programs, internal drivers, and other
  764.                    information.
  765.   /CLASSIFY or /C  Classifies programs by memory usage. Lists the size of
  766.                    programs, provides a summary of memory in use, and lists
  767.                    largest memory block available.
  768.  
  769. ----------------------------------------------------------------------------
  770.  
  771. MIRROR
  772.  
  773. Records information about one or more disks.
  774.  
  775. MIRROR [drive:[ ...]] [/1] [/Tdrive[-entries][ ...]]
  776. MIRROR [/U]
  777. MIRROR [/PARTN]
  778.  
  779.   drive:       Specifies the drive for which you want to save information.
  780.   /1           Saves only the latest disk information (does not back up
  781.                previous information).
  782.   /Tdrive      Loads the deletion-tracking program for the specified drive.
  783.   -entries     Specifies maximum number of entries in the deletion-tracking
  784.                file.
  785.   /U           Unloads the deletion-tracking program.
  786.   /PARTN       Saves hard disk partition information to a floppy diskette.
  787.  
  788. MIRROR, UNDELETE, and UNFORMAT Copyright (C) 1987-1991 Central Point Software,
  789. Inc.
  790. ----------------------------------------------------------------------------
  791.  
  792. MODE
  793.  
  794. Configures system devices.
  795.  
  796. Printer port:      MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
  797. Serial port:       MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
  798. Device Status:     MODE [device] [/STATUS]
  799. Redirect printing: MODE LPTn[:]=COMm[:]
  800. Prepare code page: MODE device CP PREPARE=((yyy[...]) [drive:][path]filename)
  801. Select code page:  MODE device CP SELECT=yyy
  802. Refresh code page: MODE device CP REFRESH
  803. Code page status:  MODE device CP [/STATUS]
  804. Display mode:      MODE [display-adapter][,n]
  805.                    MODE CON[:] [COLS=c] [LINES=n]  LINES=43  LINES=25
  806. Typematic rate:    MODE CON[:] [RATE=r DELAY=d]
  807. ----------------------------------------------------------------------------
  808.  
  809. MORE
  810.  
  811. Displays output one screen at a time.
  812.  
  813. MORE < [drive:][path]filename
  814. command-name | MORE
  815.  
  816.   [drive:][path]filename  Specifies a file to display one screen at a time.
  817.   command-name            Specifies a command whose output will be displayed.
  818. ----------------------------------------------------------------------------
  819.  
  820. NLSFUNC
  821.  
  822. Loads country-specific information.
  823.  
  824. NLSFUNC [[drive:][path]filename]
  825.  
  826.   [drive:][path]filename   Specifies the file containing country-specific
  827.                            information.
  828. ----------------------------------------------------------------------------
  829.  
  830. PATH
  831.  
  832. Displays or sets a search path for executable files.
  833.  
  834. PATH [[drive:]path[;...]]
  835. PATH ;
  836.  
  837. Type PATH ; to clear all search-path settings and direct MS-DOS to search
  838. only in the current directory.
  839. Type PATH without parameters to display the current path.
  840. ----------------------------------------------------------------------------
  841.  
  842. PAUSE
  843.  
  844. Suspends processing of a batch program and displays the message "Press any
  845. key to continue...."
  846.  
  847. PAUSE
  848. ----------------------------------------------------------------------------
  849.  
  850. PRINT
  851.  
  852. Prints a text file while you are using other MS-DOS commands.
  853.  
  854. PRINT [/D:device] [/B:size] [/U:ticks1] [/M:ticks2] [/S:ticks3]
  855.       [/Q:qsize] [/T] [[drive:][path]filename[ ...]] [/C] [/P]
  856.  
  857.   /D:device   Specifies a print device.
  858.   /B:size     Sets the internal buffer size, in bytes.
  859.   /U:ticks1   Waits the specified maximum number of clock ticks for the printer
  860.               to be available.
  861.   /M:ticks2   Specifies the maximum number of clock ticks it takes to print a
  862.               character.
  863.   /S:ticks3   Allocates the scheduler the specified number of clock ticks for
  864.               background printing.
  865.   /Q:qsize    Specifies the maximum number of files allowed in the print queue.
  866.   /T          Removes all files from the print queue.
  867.   /C          Cancels printing of the preceding filename and subsequent
  868.               filenames.
  869.   /P          Adds the preceding filename and subsequent filenames to the print
  870.               queue.
  871.  
  872. Type PRINT without parameters to display the contents of the print queue.
  873. ----------------------------------------------------------------------------
  874.  
  875. PROMPT
  876.  
  877. Changes the MS-DOS command prompt.
  878.  
  879. PROMPT [text]
  880.  
  881.   text    Specifies a new command prompt.
  882.  
  883. Prompt can be made up of normal characters and the following special codes:
  884.  
  885.   $Q   = (equal sign)
  886.   $$   $ (dollar sign)
  887.   $T   Current time
  888.   $D   Current date
  889.   $P   Current drive and path
  890.   $V   MS-DOS version number
  891.   $N   Current drive
  892.   $G   > (greater-than sign)
  893.   $L   < (less-than sign)
  894.   $B   | (pipe)
  895.   $H   Backspace (erases previous character)
  896.   $E   Escape code (ASCII code 27)
  897.   $_   Carriage return and linefeed
  898.  
  899. Type PROMPT without parameters to reset the prompt to the default setting.
  900. ----------------------------------------------------------------------------
  901.  
  902. QBASIC
  903.  
  904. Starts the MS-DOS QBasic programming environment.
  905.  
  906. QBASIC [/B] [/EDITOR] [/G] [/H] [/MBF] [/NOHI] [[/RUN] [drive:][path]filename]
  907.  
  908.   /B          Allows use of a monochrome monitor with a color graphics card.
  909.   /EDITOR     Starts the MS-DOS Editor.
  910.   /G          Provides the fastest update of a CGA screen.
  911.   /H          Displays the maximum number of lines possible for your hardware.
  912.   /MBF        Converts the built-in functions MKS$, MKD$, CVS, and CVD to
  913.               MKSMBF$, MKDMBF$, CVSMBF, and CVDMBF, respectively.
  914.   /NOHI       Allows the use of a monitor without high-intensity support.
  915.   /RUN        Runs the specified Basic program before displaying it.
  916.   [[drive:][path]filename] Specifies the program file to load or run.
  917. ----------------------------------------------------------------------------
  918.  
  919. RD
  920. RMDIR
  921.  
  922. Removes (deletes) a directory.
  923.  
  924. RMDIR [drive:]path
  925. RD [drive:]path
  926. ----------------------------------------------------------------------------
  927.  
  928. RECOVER
  929.  
  930. Recovers readable information from a bad or defective disk.
  931.  
  932. RECOVER [drive:][path]filename
  933. RECOVER drive:
  934.  
  935. Consult your User's Guide and Reference before using the RECOVER command.
  936. ----------------------------------------------------------------------------
  937.  
  938. REM
  939.  
  940. Records comments (remarks) in a batch file or CONFIG.SYS.
  941.  
  942. REM [comment]
  943.  
  944. ----------------------------------------------------------------------------
  945.  
  946. REN
  947. REMANE
  948.  
  949. Renames a file or files.
  950.  
  951. RENAME [drive:][path]filename1 filename2
  952. REN [drive:][path]filename1 filename2
  953.  
  954. Note that you cannot specify a new drive or path for your destination file.
  955. ----------------------------------------------------------------------------
  956.  
  957. REPLACE
  958.  
  959. Replaces files.
  960.  
  961. REPLACE [drive1:][path1]filename [drive2:][path2] [/A] [/P] [/R] [/W]
  962. REPLACE [drive1:][path1]filename [drive2:][path2] [/P] [/R] [/S] [/W] [/U]
  963.  
  964.   [drive1:][path1]filename Specifies the source file or files.
  965.   [drive2:][path2]         Specifies the directory where files are to be
  966.                            replaced.
  967.   /A                       Adds new files to destination directory. Cannot
  968.                            use with /S or /U switches.
  969.   /P                       Prompts for confirmation before replacing a file or
  970.                            adding a source file.
  971.   /R                       Replaces read-only files as well as unprotected
  972.                            files.
  973.   /S                       Replaces files in all subdirectories of the
  974.                            destination directory. Cannot use with the /A
  975.                            switch.
  976.   /W                       Waits for you to insert a disk before beginning.
  977.   /U                       Replaces (updates) only files that are older than
  978.                            source files. Cannot use with the /A switch.
  979. ----------------------------------------------------------------------------
  980.  
  981. RESTORE
  982.  
  983. Restores files that were backed up by using the BACKUP command.
  984.  
  985. RESTORE drive1: drive2:[path[filename]] [/S] [/P] [/B:date] [/A:date] [/E:time]
  986.   [/L:time] [/M] [/N] [/D]
  987.  
  988.   drive1:  Specifies the drive on which the backup files are stored.
  989.   drive2:[path[filename]]
  990.            Specifies the file(s) to restore.
  991.   /S       Restores files in all subdirectories in the path.
  992.   /P       Prompts before restoring read-only files or files changed since
  993.            the last backup (if appropriate attributes are set).
  994.   /B       Restores only files last changed on or before the specified date.
  995.   /A       Restores only files changed on or after the specified date.
  996.   /E       Restores only files last changed at or earlier than the specified
  997.            time.
  998.   /L       Restores only files changed at or later than the specified time.
  999.   /M       Restores only files changed since the last backup.
  1000.   /N       Restores only files that no longer exist on the destination disk.
  1001.   /D       Displays files on the backup disk that match specifications.
  1002.  
  1003. ----------------------------------------------------------------------------
  1004.  
  1005. SET
  1006.  
  1007. Displays, sets, or removes MS-DOS environment variables.
  1008.  
  1009. SET [variable=[string]]
  1010.  
  1011.   variable  Specifies the environment-variable name.
  1012.   string    Specifies a series of characters to assign to the variable.
  1013.  
  1014. Type SET without parameters to display the current environment variables.
  1015. ----------------------------------------------------------------------------
  1016.  
  1017. SETVER
  1018.  
  1019. Sets the version number that MS-DOS reports to a program.
  1020.  
  1021. Display current version table:  SETVER [drive:path]
  1022. Add entry:                      SETVER [drive:path] filename n.nn
  1023. Delete entry:                   SETVER [drive:path] filename /DELETE [/QUIET]
  1024.  
  1025.   [drive:path]    Specifies location of the SETVER.EXE file.
  1026.   filename        Specifies the filename of the program.
  1027.   n.nn            Specifies the MS-DOS version to be reported to the program.
  1028.   /DELETE or /D   Deletes the version-table entry for the specified program.
  1029.   /QUIET          Hides the message typically displayed during deletion of
  1030.                   version-table entry.
  1031. ----------------------------------------------------------------------------
  1032.  
  1033. SHARE
  1034.  
  1035. Installs file-sharing and locking capabilities on your hard disk.
  1036.  
  1037. SHARE [/F:space] [/L:locks]
  1038.  
  1039.   /F:space   Allocates file space (in bytes) for file-sharing information.
  1040.   /L:locks   Sets the number of files that can be locked at one time.
  1041. ----------------------------------------------------------------------------
  1042.  
  1043. SHIFT
  1044.  
  1045. Changes the position of replaceable parameters in a batch file.
  1046.  
  1047. SHIFT
  1048. ----------------------------------------------------------------------------
  1049.  
  1050. SORT
  1051.  
  1052. Sorts input and writes results to the screen, a file, or another device.
  1053.  
  1054. SORT [/R] [/+n] < [drive1:][path1]filename1 [> [drive2:][path2]filename2]
  1055. [command |] SORT [/R] [/+n] [> [drive2:][path2]filename2]
  1056.  
  1057.   /R                         Reverses the sort order; that is, sorts Z to A,
  1058.                              then 9 to 0.
  1059.   /+n                        Sorts the file according to characters in
  1060.                              column n.
  1061.   [drive1:][path1]filename1  Specifies a file to be sorted.
  1062.   [drive2:][path2]filename2  Specifies a file where the sorted input is to be 
  1063.                              stored.
  1064.   command                    Specifies a command whose output is to be sorted.
  1065. ----------------------------------------------------------------------------
  1066.  
  1067. SUBST
  1068.  
  1069. Associates a path with a drive letter.
  1070.  
  1071. SUBST [drive1: [drive2:]path]
  1072. SUBST drive1: /D
  1073.  
  1074.   drive1:        Specifies a virtual drive to which you want to assign a path.
  1075.   [drive:2]path  Specifies a physical drive and path you want to assign to
  1076.                  a virtual drive.
  1077.   /D             Deletes a substituted (virtual) drive.
  1078.  
  1079. Type SUBST with no parameters to display a list of current virtual drives.
  1080. ----------------------------------------------------------------------------
  1081.  
  1082. SYS
  1083.  
  1084. Copies MS-DOS system files and command interpreter to a disk you specify.
  1085.  
  1086. SYS [drive1:][path] drive2:
  1087.  
  1088.   [drive1:][path] Specifies the location of the system files.
  1089.   drive2:         Specifies the drive the files are to be copied to.
  1090. ----------------------------------------------------------------------------
  1091.  
  1092. TIME
  1093.  
  1094. Displays or sets the system time.
  1095.  
  1096. TIME [time]
  1097.  
  1098. Type TIME with no parameters to display the current time setting and a prompt
  1099. for a new one.  Press ENTER to keep the same time.
  1100. ----------------------------------------------------------------------------
  1101.  
  1102. TREE
  1103.  
  1104. Graphically displays the directory structure of a drive or path.
  1105.  
  1106. TREE [drive:][path] [/F] [/A]
  1107.  
  1108.   /F   Displays the names of the files in each directory.
  1109.   /A   Uses ASCII instead of extended characters.
  1110. ----------------------------------------------------------------------------
  1111.  
  1112. TYPE
  1113.  
  1114. Displays the contents of a text file.
  1115.  
  1116. TYPE [drive:][path]filename
  1117. ----------------------------------------------------------------------------
  1118.  
  1119. UNDELETE
  1120.  
  1121. Restores files which have been deleted.
  1122.  
  1123. UNDELETE [[drive:][path]][filename] [/LIST | /ALL] [/DT | /DOS]
  1124.  
  1125.   /LIST  Lists the deleted files available to be recovered.
  1126.   /ALL   Undeletes all specified files without prompting.
  1127.   /DT    Uses only the deletion-tracking file.
  1128.   /DOS   Uses only the MS-DOS directory.
  1129.  
  1130. MIRROR, UNDELETE, and UNFORMAT Copyright (C) 1987-1991 Central Point Software,
  1131. Inc.
  1132. ----------------------------------------------------------------------------
  1133.  
  1134. UNFORMAT
  1135.  
  1136. Restores a disk erased by the FORMAT command or restructured by the RECOVER
  1137. command.
  1138.  
  1139. UNFORMAT drive: [/J]
  1140. UNFORMAT drive: [/U] [/L] [/TEST] [/P]
  1141. UNFORMAT /PARTN [/L]
  1142.  
  1143.   drive:   Specifies the drive to unformat.
  1144.   /J       Verifies that the mirror files agree with the system information
  1145.            on the disk.
  1146.   /U       Unformats without using MIRROR files.
  1147.   /L       Lists all file and directory names found, or, when used with the
  1148.            /PARTN switch, displays current partition tables.
  1149.   /TEST    Displays information but does not write changes to disk.
  1150.   /P       Sends output messages to printer connected to LPT1.
  1151.   /PARTN   Restores disk partition tables.
  1152.  
  1153. MIRROR, UNDELETE, and UNFORMAT Copyright (C) 1987-1991 Central Point Software,
  1154. Inc.
  1155. ----------------------------------------------------------------------------
  1156.  
  1157. VER
  1158.  
  1159. Displays the MS-DOS version.
  1160.  
  1161. VER
  1162. ----------------------------------------------------------------------------
  1163.  
  1164. VERIFY
  1165.  
  1166. Tells MS-DOS whether to verify that your files are written correctly to a
  1167. disk.
  1168.  
  1169. VERIFY [ON | OFF]
  1170.  
  1171. Type VERIFY without a parameter to display the current VERIFY setting.
  1172. ----------------------------------------------------------------------------
  1173.  
  1174. VOL
  1175.  
  1176. Displays the disk volume label and serial number, if they exist.
  1177.  
  1178. VOL [drive:]
  1179. ----------------------------------------------------------------------------
  1180.  
  1181. XCOPY
  1182.  
  1183. Copies files (except hidden and system files) and directory trees.
  1184.  
  1185. XCOPY source [destination] [/A | /M] [/D:date] [/P] [/S [/E]] [/V] [/W]
  1186.  
  1187.   source       Specifies the file(s) to copy.
  1188.   destination  Specifies the location and/or name of new files.
  1189.   /A           Copies files with the archive attribute set,
  1190.                doesn't change the attribute.
  1191.   /M           Copies files with the archive attribute set,
  1192.                turns off the archive attribute.
  1193.   /D:date      Copies files changed on or after the specified date.
  1194.   /P           Prompts you before creating each destination file.
  1195.   /S           Copies directories and subdirectories except empty ones.
  1196.   /E           Copies any subdirectories, even if empty.
  1197.   /V           Verifies each new file.
  1198.   /W           Prompts you to press a key before copying.
  1199.  
  1200.  
  1201.