This article lists notable commands provided by the MS-DOS disk operating system (DOS), especially as used on an IBM PC compatible computer. Other DOS variants as well as the legacy Windows shell, Command Prompt (cmd.exe), provide many of these commands. Many other DOS variants are informally called DOS, but are not included in the scope of the list. The highly related variant, IBM PC DOS, is included. The list is not intended to be exhaustive, but does include commands covering the various releases.
Each command is implemented either as built-in to the command interpreter, COMMAND.COM, or as an external program. Although prevailing style is to write command names in all caps, the interpreter matches ignoring case.
Commands
APPEND
Sets the path to be searched for data files or displays the current search path. The APPEND command is similar to the PATH command that tells DOS where to search for program files (files with a .COM, . EXE, or .BAT file name extension).
The command is available in MS-DOS versions 3.2 and later.[1]
ASSIGN
Redirects requests for disk operations on one drive to a different drive. It can also display drive assignments or reset all drive letters to their original assignments.
The command is available in MS-DOS versions 3 through 5 and IBM PC DOS releases 2 through 5.[1]
ATMDM
Lists connections and addresses seen by Windows ATM call manager.
ATTRIB
Changes or views the attributes of one or more files. Defaults to display the attributes of all files in the current directory. The file attributes available include read-only, archive, system, and hidden attributes. The command has the capability to process whole folders and subfolders of files and also process all files.
The command is available in MS-DOS versions 3 and later.[1]
BACKUP and RESTORE
These are commands to backup and restore files from an external disk. These appeared in version 2, and continued to PC DOS 5 and MS-DOS 6 (PC DOS 7 had a deversioned check). In DOS 6, these were replaced by commercial programs (CPBACKUP, MSBACKUP), which allowed files to be restored to different locations.[1]
BASIC and BASICA
Environment for programming in BASIC. IBM computers had BASIC 1.1 in ROM, and IBM's versions of BASIC used code in this ROM-BASIC, which allowed for extra memory in the code area. BASICA last appeared in IBM PC DOS 5.02, and in OS/2 (2.0 and later), the version had ROM-BASIC moved into the program code. Microsoft released GW-BASIC for machines with no ROM-BASIC. Some OEM releases had basic.com and basica.com as loaders for GW-BASIC.EXE. BASIC was dropped after MS-DOS 4, and PC DOS 5.02. OS/2 (which uses PC DOS 5), has it, while MS-DOS 5 does not.
BREAK
Instructs DOS to check whether the and keys have been pressed before carrying out a program request.
The command is available in MS-DOS versions 2 and later.[1]
CALL
Starts a batch file from within another batch file and returns when that one ends.
The command is available in MS-DOS versions 3.3 and later.[1]
CD and CHDIR
Sets the working directory or with no arguments displays the current value. Both names, CD and CHDIR, refer to the same command and are abbreviations of the phrase "change directory".
The command is available in MS-DOS versions 2 and later.[1]
CHCP
Either displays or changes the active code page used to display character glyphs in a console window. Similar functionality can be achieved with ) which removes the disk's file table without deleting any of the data. The same version also introduced the UNFORMAT command to undo the effects of a quick format, restoring the file table and making all the files accessible again.
UNFORMAT only works if invoked before any further changes have overwritten the drive's contents.[1]
VER
An internal DOS command, that reports the DOS version presently running, and since MS-DOS 5, whether DOS is loaded high.
The command is available in MS-DOS versions 2 and later.[1]
VERIFY
Enables or disables the feature to determine if files have been correctly written to disk (You can enable the verify command by typing "verify on" on Command Prompt and pressing enter. To display the current VERIFY setting, type VERIFY without a parameter. To turn off the feature, type "verify off"). If no parameter is provided, the command will display the current setting.[29]
The command is available in MS-DOS versions 2 and later.[1]
VOL
An internal command that displays the disk volume label and serial number.
The command is available in MS-DOS versions 2 and later.[1]
VSAFE
A TSR program that continuously monitors the computer for viruses.
The command is available in MS-DOS versions 6 and later.[1]
XCOPY
Copy entire directory trees. Xcopy is a version of the copy command that can move files and directories from one location to another.
XCOPY usage and attributes can be obtained by typing XCOPY /? in the DOS Command line.
The command is available in MS-DOS versions 3.2 and later.[1]
See also
- Category:Windows commands
- List of CONFIG.SYS directives
- Timeline of DOS operating systems
Further reading
External links
There are several guides to DOS commands available that are licensed under the GNU Free Documentation License:
- Command-Line Reference : Microsoft TechNet Database "Command-Line Reference"
- The MS-DOS 6 Technical Reference on TechNet contains the official Microsoft MS-DOS 6 command reference documentation.
- MDGx MS-DOS Undocumented + Hidden Secrets
- MS-DOS v1.25 and v2.0 source code
- The FreeDOS Spec at SourceForge is a plaintext specification, written in 1999, for how DOS commands should work in FreeDOS
- MS-DOS commands
- Reference for windows commands with examples
- A Collection of Undocumented and Obscure Features in Various MS-DOS Versions
References
- Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition Microsoft Press, 2003^
- MS-DOS choice command help retrieved 10 September 2014^
- Caldera DR-DOS 7.03 User Guide retrieved 10 September 2014^
- Does not automatically appear in Help^
- Q100021: Unable to Access Compressed Drives Using DBLBOOT.BAT Disk^
- Multitasking MS-DOS 4.0, Goupil OEM^
- expand - Windows CMD SS64.com, retrieved 2022-08-27^
- Q97835: COMMANDS.TXT: Supplemental Disk Commands (Part 2 of 2)^
- Q117600: MS-DOS 6.22 Supplemental Disk: Description & How to Obtain^
- graftabl | Microsoft Docs^
- EasyDOS Command Index^
- DOS Command: LASTDRIVE easydos.com, retrieved 2025-04-05^
- MS-DOS Version 4.10 Fujitsu ICL OEM^
- DR DOS 6.0 User Guide Digital Research, 1991^
- Jim Cooper. Using MS-DOS 6.22 Que Publishing, May 2001^
- MS-DOS mode command help retrieved 10 September 2014^
- More^
- MS-DOS and Windows command line msav command^
- Peter H. Lewis. It's 1994. So Where Are Your Data? The New York Times, January 4, 1994^
- Source: Zeos International: What is MWBACKUP.EXE? 25 February 2019^
- MS-DOS msd command help retrieved 10 September 2014^
- Vernon Brooks. List of DOS commands PC DOS Retro, retrieved 9 January 2024^
- https://www.pcjs.org/pubs/pc/reference/microsoft/kb/Q44273/^
- MS-DOS and Windows command line ping command^
- MS-DOS and Windows command line power command^
- Microsoft TechNet Rename (ren) article 11 September 2009^
- David Aaron Karp. Windows XP in a nutshell O'Reilly Media, Inc., 2005, retrieved 2010-11-26^
- Microsoft on "sort" 20 February 2014, retrieved 10 September 2014^
- DOS Command: VERIFY retrieved 10 September 2014^