Return
MS-DOS 7:  The Windows™ 95/98 Disk Operating System
Page(s) - Printed From  www.PCXT-Micro.com

The MS-DOS 7  External Commands
(Programs in the Windir\COMMAND folder)


Table of Contents (the Programs)


  attrib   choice   command   debug   deltree   diskcopy   doskey   edit   extract   fc   fdisk   find   format   keyb   label   mem   mode   more   mscdex   nlsfunc   qbasic   scandisk   sort   start   subst   sys   xcopy   xcopy32

attrib.exe (File) Attributes
--------
Displays or changes file attributes.

ATTRIB
 [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:][path]filename] [/S]

  +   Sets an attribute.
  -   Clears an attribute.
  R   Read-only file attribute.
  A   Archive file attribute.
  S   System file attribute.
  H   Hidden file attribute.
  /S  Processes files in all directories in the specified path.
Back to TOC


choice.com (Used in BATCH files)
--------
Waits for the user to choose one of a set of choices.

CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]
  1. /C[:]choices Specifies allowable keys. Default is YN
  2. /N Do not display choices and ? at end of prompt string.
  3. /S Treat choice keys as case sensitive.
  4. /T[:]c,nn Default choice to c after nn seconds
  5. text Prompt string to display
ERRORLEVEL is set to offset of key user presses in choices.

Back to TOC


command.com  COMMAND.COM  (really an .EXE)
--------
Starts a new copy of the Windows Command Interpreter.

COMMAND [[drive:]path] [device] [/E:nnnnn] [/L:nnnn] [/U:nnn] [/P] [/MSG] [/LOW] 
[/Y [/[C|K] command]]
  1. [drive:]path Specifies the directory containing COMMAND.COM.
  2. device Specifies the device to use for command input and output.
  3. /E:nnnnn Sets the initial environment size to nnnnn bytes.(nnnnn should be between 256 and 32,768).
  4. /L:nnnn Specifies internal buffers length (requires /P as well). (nnnn should be between 128 and 1,024).
  5. /U:nnn Specifies the input buffer length (requires /P as well). (nnn should be between 128 and 255).
  6. /P Makes the new Command Interpreter permanent (can't exit).
  7. /MSG Stores all error messages in memory (requires /P as well).
  8. /LOW Forces COMMAND to keep its resident data in low memory.
  9. /Y Steps through the batch program specified by /C or /K.
  10. /C command Executes the specified command and returns.
  11. /K command Executes the specified command and continues running.
Back to TOC


debug.exe
--------
Runs Debug, a program testing and editing tool.

DEBUG [[drive:][path]filename [testfile-parameters]]
  1. [drive:][path]filename Specifies the file you want to test.
  2. testfile-parameters Specifies command-line information required by the file you want to test.
After Debug starts, type ? to display a list of debugging commands.
Back to TOC


deltree.exe Delete Tree (all files)
--------
Deletes a directory and all the subdirectories and files in it.

To delete one or more files and directories:
DELTREE [/Y] [drive:]path [[drive:]path[...]]
  1. /Y Suppresses prompting to confirm you want to delete the subdirectory.
  2. [drive:]path Specifies the name of the directory you want to delete.

Note: Use DELTREE cautiously. Every file and subdirectory within the specified directory will be deleted. Back to TOC


diskcopy.com Copy Floppy Disks
--------
Copies the contents of one floppy disk to another.
DISKCOPY [drive1: [drive2:]] [/1] [/V] [/M]
  1. /1 Copies only the first side of the disk.
  2. /V Verifies that the information is copied correctly.
  3. /M Force multi-pass copy using memory only.
The two floppy disks must be the same type.
You may specify the same drive for drive1 and drive2.
Back to TOC


doskey.com
--------
Edits command lines, recalls command lines, and creates macros

DOSKEY [/switch ...] [macroname=[text]]
  
  1. /BUFSIZE:size Sets size of macro and command buffer (default:512)
  2. /ECHO:on|off Enables/disables echo of macro expansions (default:on)
  3. /FILE:file Specifies file containing a list of macros
  4. /HISTORY Displays all commands stored in memory
  5. /INSERT Inserts new characters into line when typing
  6. /KEYSIZE:size Sets size of keyboard type-ahead buffer (default:15)
  7. /LINE:size Sets maximum size of line edit buffer (default:128)
  8. /MACROS Displays all DOSKey macros
  9. /OVERSTRIKE Overwrites new characters onto line when typing (default)
  10. /REINSTALL Installs a new copy of DOSKey
  11. macroname Specifies a name for a macro you create
  12. text Specifies commands you want to assign to the macro
  13. UP,DOWN arrows recall commands
  14. Esc clears current command
  15. F7 displays command history
  16. Alt+F7 clears command history
  17. [chars]F8 searches for command beginning with [chars]
  18. F9 selects a command by number
  19. Alt+F10 clears macro definitions
The following are special codes you can use in DOSKey macro definitions:
  
  1. $T Command separator: allows multiple commands in a macro.
  2. $1-$9 Batch parameters: equivalent to %1-%9 in batch programs.
  3. $* Symbol replaced by everything following macro name on the command line.
Back to TOC


edit.com
--------
MS-DOS Editor   Version 2.0.026

EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)]
  
  1. /B - Forces monochrome mode.
  2. /H - Displays the maximum number of lines possible for your hardware.
  3. /R - Load file(s) in read-only mode.
  4. /S - Forces the use of short filenames.
  5. /<nnn> - Load binary file(s), wrapping lines to <nnn> characters wide.
  6. /? - Displays this help screen.
  7. [file] - Specifies initial files(s) to load. Wildcards and multiple filespecs can be given.
Back to TOC


extract.exe (Microsoft .CAB files)
--------
Microsoft (R) Diamond Extraction Tool - Version (16) 1.00.0602 (07/14/97)
  1. EXTRACT [/Y] [/A] [/D | /E] [/L dir] cabinet [filename ...]
  2. EXTRACT [/Y] source [newname]
  3. EXTRACT [/Y] /C source destination
  4. cabinet - Cabinet file (contains two or more files).
  5. filename - Name of the file to extract from the cabinet. Wild cards and multiple filenames (separated by blanks) may be used.
  6. source - Compressed file (a cabinet with only one file).
  7. newname - New filename to give the extracted file,if not supplied, the original name is used.
  8. /A Process ALL cabinets. Follows cabinet chain starting in first cabinet mentioned.
  9. /C Copy source file to destination (to copy from DMF disks).
  10. /D Display cabinet directory (use with filename to avoid extract).
  11. /E Extract (use instead of *.* to extract all files).
  12. /L dir Location to place extracted files (default is current directory).
  13. /Y Do not prompt before overwriting an existing file.
Back to TOC


fc.exe File Compare
--------
Compares two files or sets of files and displays the differences between them.
  1. FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/W] [/nnnn] [drive1:][path1]filename1 [drive2:][path2]filename2
  2. FC /B [drive1:][path1]filename1 [drive2:][path2]filename2
  3. /A Displays only first and last lines for each set of differences.
  4. /B Performs a binary comparison.
  5. /C Disregards the case of letters.
  6. /L Compares files as ASCII text.
  7. /LBn Sets the maximum consecutive mismatches to the specified number of lines.
  8. /N Displays the line numbers on an ASCII comparison.
  9. /T Does not expand tabs to spaces.
  10. /W Compresses white space (tabs and spaces) for comparison.
  11. /nnnn Specifies the number of consecutive lines that must match after a mismatch.
Back to TOC


fdisk.exe Partition (Hard) Disks
--------
Configures a hard disk for use with MS-DOS and Windows 95/98/2000.
  1. FDISK [/STATUS] /X
  2. /STATUS Displays partition information.
  3. /X Ignores extended disk-access support. Use this switch if you receive disk access or stack overflow messages.
Back to TOC


find.exe
--------
Searches for a text string in a file or files.
  1. FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[ ...]]
  2. /V Displays all lines NOT containing the specified string.
  3. /C Displays only the count of lines containing the string.
  4. /N Displays line numbers with the displayed lines.
  5. /I Ignores the case of characters when searching for the string.
  6. "string" Specifies the text string to find.
  7. [drive:][path]filename Specifies a file or files to search.
If a pathname is not specified, FIND searches the text typed at the prompt or piped 
from another command. Back to TOC


format.com
--------
Formats a disk for use with MS-DOS.
  1. FORMAT drive: [/V[:label]] [/Q] [/F:size] [/B | /S] [/C]
  2. FORMAT drive: [/V[:label]] [/Q] [/T:tracks /N:sectors] [/B | /S] [/C]
  3. FORMAT drive: [/V[:label]] [/Q] [/1] [/4] [/B | /S] [/C]
  4. FORMAT drive: [/Q] [/1] [/4] [/8] [/B | /S] [/C]
  5. /V[:label] Specifies the volume label.
  6. /Q Performs a quick format.
  7. /F:size Specifies the size of the floppy disk to format (such as 160, 180, 320, 360, 720, 1.2, 1.44, 2.88).
  8. /B Allocates space on the formatted disk for system files.
  9. /S Copies system files to the formatted disk.
  10. /T:tracks Specifies the number of tracks per disk side.
  11. /N:sectors Specifies the number of sectors per track.
  12. /1 Formats a single side of a floppy disk.
  13. /4 Formats a 5.25-inch 360K floppy disk in a high-density drive.
  14. /8 Formats eight sectors per track.
  15. /C Tests clusters that are currently marked "bad."
Back to TOC


keyb.com
--------
Configures a keyboard for a specific language.
  1. KEYB [xx[,[yyy][,[drive:][path]filename]]] [/E] [/ID:nnn]
  2. xx Specifies a two-letter keyboard code.
  3. yyy Specifies the code page for the character set.
  4. [drive:][path]filename Specifies the keyboard definition file.
  5. /E Specifies that an enhanced keyboard is installed.
  6. /ID:nnn Specifies the keyboard in use.
Back to TOC


label.exe
--------
Creates, changes, or deletes the volume label of a disk.

LABEL [drive:][label]
Back to TOC


mem.exe Memory
--------
Displays the amount of used and free memory in your system.
  1. MEM [/CLASSIFY | /DEBUG | /FREE | /MODULE modulename] [/PAGE]
  2. /CLASSIFY or /C Classifies programs by memory usage. Lists the size of programs, provides a summary of memory in use, and lists largest memory block available.
  3. /DEBUG or /D Displays status of all modules in memory, internal drivers, and other information.
  4. /FREE or /F Displays information about the amount of free memory left in both conventional and upper memory.
  5. /MODULE or /M Displays a detailed listing of a module's memory use. This option must be followed by the name of a module, optionally separated from /M by a colon.
  6. /PAGE or /P Pauses after each screenful of information.
Back to TOC


mode.com
--------
Configures system devices.
  1. Printer port: MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
  2. Serial port: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
  3. Device Status: MODE [device] [/STATUS]
  4. Redirect printing: MODE LPTn[:]=COMm[:]
  5. Prepare code page: MODE device CP PREPARE=((yyy[...])[drive:][path]filename)
  6. Select code page: MODE device CP SELECT=yyy
  7. Refresh code page: MODE device CP REFRESH
  8. Code page status: MODE device CP [/STATUS]
  9. Display mode: MODE [display-adapter][,n] MODE CON[:] [COLS=c] [LINES=n]
  10. Typematic rate: MODE CON[:] [RATE=r DELAY=d]
Back to TOC


more.com
--------
Displays output one screen at a time.
  1. MORE [drive:][path]filename
  2. MORE < [drive:][path]filename command-name | MORE [drive:][path][filename]
  3. [drive:][path]filename Specifies file(s) to display one screen at a time.
  4. command-name Specifies a command whose output will be displayed.
Back to TOC


mscdex.exe CD-ROM Program
--------
Allows MS-DOS to communicate with CD-ROM drives. (Note: A 'driver'
program for the specific type of CD-ROM drive must be installed
first -- usually listed in the machine's CONFIG.SYS file.)
  1. Usage: MSCDEX [/E/K/S/V] [/D:-driver- ... ] [/L:-letter-] [/M:-buffers-]
Back to TOC


nlsfunc.exe
--------
Loads country-specific information.
  1. NLSFUNC [[drive:][path]filename]
  2. drive:][path]filename Specifies the file containing country-specific information.
Back to TOC


qbasic.exe Quick-Basic Interpreter
--------
Starts the MS-DOS QBasic programming environment.
  1. QBASIC [/B] [/EDITOR] [/G] [/H] [/MBF] [/NOHI] [[/RUN] [drive:][path]filename]
  2. /B Allows use of a monochrome monitor with a color graphics card.
  3. /EDITOR Starts the MS-DOS Editor.
  4. /G Provides the fastest update of a CGA screen.
  5. /H Displays the maximum number of lines possible for your hardware.
  6. /MBF Converts the built-in functions MKS$, MKD$, CVS, and CVD to MKSMBF$, MKDMBF$, CVSMBF, and CVDMBF, respectively.
  7. /NOHI Allows the use of a monitor without high-intensity support.
  8. /RUN Runs the specified Basic program before displaying it.
  9. [[drive:][path]filename] Specifies the program file to load or run.
Back to TOC


scandisk.exe
--------
SCANDISK [drive:] [/a] [/n] [/p]
  1. drive: to specify the drive(s) you want to check.
  2. /a to check all your local, nonremovable hard disks.
  3. /n to start and close ScanDisk automatically.
  4. /p to prevent ScanDisk from correcting any errors it finds.

Examples:
========
To check drive D and start and close ScanDisk automatically, the
following command might be used:
  1. c:\windows\scandskw.exe d: /n

To check all nonremovable hard disks but prevent ScanDisk from
correcting any errors it finds, this command could be used:
  1. c:\windows\scandskw.exe /a /p
Back to TOC


sort.exe
--------
Sorts input and writes results to the screen, a file, or another device.
  1. SORT [/R] [/+n] [[drive1:][path1]filename1] [> [drive2:][path2]filename2]
  2. [command |] SORT [/R] [/+n] [> [drive2:][path2]filename2]
  3. /R Reverses the sort order; that is, sorts Z to A, then 9 to 0.
  4. /+n Sorts the file according to characters in column n.
  5. [drive1:][path1]filename1 Specifies file(s) to be sorted.
  6. [drive2:][path2]filename2 Specifies a file where the sorted input is to be stored.
  7. command Specifies a command whose output is to be sorted.
Back to TOC


start.exe Start (Windows Program)
--------
Runs a Windows program or an MS-DOS program.
  1. START [options] program [arg...]
  2. START [options] document.ext
  3. /m[inimized] Run the new program minimized (in the background).
  4. /max[imized] Run the new program maximized (in the foreground).
  5. /r[estored] Run the new program restored (in the foreground). [This is the default.]
  6. /w[ait] Does not return until the other program exits.
Back to TOC


subst.exe Substitute
--------
Associates a path with a drive letter.
  1. SUBST [drive1: [drive2:]path]
  2. SUBST drive1: /D
  3. drive1: Specifies a virtual drive to which you want to assign a path.
  4. [drive2:]path Specifies a physical drive and path you want to assign to a virtual drive.
  5. /D Deletes a substituted (virtual) drive.
Type SUBST with no parameters to display a list of current virtual drives.
Back to TOC


sys.com (Copy) System Files
--------
Copies MS-DOS system files and command interpreter to a disk you specify.
  1. SYS [drive1:][path] drive2:
  2. [drive1:][path] Specifies the location of the system files.
  3. drive2: Specifies the drive the files are to be copied to.
Back to TOC


xcopy.exe
--------
Copies files and directory trees.
  1. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N]
  2. source Specifies the file(s) to copy.
  3. destination Specifies the location and/or name of new files.
  4. /A Copies files with the archive attribute set, doesn't change the attribute.
  5. /M Copies files with the archive attribute set, turns off the archive attribute.
  6. /D:date Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.
  7. /P Prompts you before creating each destination file.
  8. /S Copies directories and subdirectories except empty ones.
  9. /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T.
  10. /W Prompts you to press a key before copying.
  11. /C Continues copying even if errors occur.
  12. /I If destination does not exist and copying more than one file, assumes that destination must be a directory.
  13. /Q Does not display file names while copying.
  14. /F Displays full source and destination file names while copying.
  15. /L Displays files that would be copied.
  16. /H Copies hidden and system files also.
  17. /R Overwrites read-only files.
  18. /T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. (/T /E includes empty directories and subdirectories.)
  19. /U Updates the files that already exist in destination.
  20. /K Copies attributes. Normal Xcopy will reset read-only attributes.
  21. /Y Overwrites existing files without prompting.
  22. /-Y Prompts you before overwriting existing files.
  23. /N Copy using the generated short names.
Back to TOC


xcopy32.exe
--------
Copies files and directory trees.
  1. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N]
  2. source Specifies the file(s) to copy.
  3. destination Specifies the location and/or name of new files.
  4. /A Copies files with the archive attribute set, doesn't change the attribute.
  5. /M Copies files with the archive attribute set, turns off the archive attribute.
  6. /D:date Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.
  7. /P Prompts you before creating each destination file.
  8. /S Copies directories and subdirectories except empty ones.
  9. /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T.
  10. /W Prompts you to press a key before copying.
  11. /C Continues copying even if errors occur.
  12. /I If destination does not exist and copying more than one file, assumes that destination must be a directory.
  13. /Q Does not display file names while copying.
  14. /F Displays full source and destination file names while copying.
  15. /L Displays files that would be copied.
  16. /H Copies hidden and system files also.
  17. /R Overwrites read-only files.
  18. /T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. (/T /E includes empty directories and subdirectories.)
  19. /U Updates the files that already exist in destination.
  20. /K Copies attributes. Normal Xcopy will reset read-only attributes.
  21. /Y Overwrites existing files without prompting.
  22. /-Y Prompts you before overwriting existing files.
  23. /N Copy using the generated short names.
Back to TOC