Complete List of MS-DOS Commands
Complete List of MS-DOS Commands
DOS commands are the commands available in MS-DOS that are used to interact
with the operating system and other command line based software.
Unlike in Windows, DOS commands are the primary way in which you use the
operating system. Windows and other modern OSs use a graphics-based system
WINDOWS
designed for touch or a mouse.
The Ultimate Laptop Buying
Guide
Note: If you use Windows (like Windows 10, 8, 7, etc.), then you have
no need for DOS commands because you don't have MS-DOS. Check
below the table at the bottom of this page for more information.
https://www.lifewire.com/dos-commands-4070427 Page 1 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
BEST PRODUCTS NEWS ELECTRIC VEHICLES STREAMING WFH HOW-TO ABOUT USNEWSLETTER!
TECH FOR HUMANS
Command Description
Call The call command is used to run a script or batch program from
within another script or batch program. The call command has no
effect outside of a script or batch file. In other words, running the
call command at the MS-DOS prompt will do nothing.
Chcp The chcp command displays or configures the active code page
number.
Chdir The chdir command is used to display the drive letter and folder
that you are currently in. Chdir can also be used to change the
drive and/or directory that you want to work in.
Cls The cls command clears the screen of all previously entered
https://www.lifewire.com/dos-commands-4070427 Page 2 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
Copy The copy command copies one or more files from one location to
another.
Country The country command is used in the CONFIG.SYS file to tell MS-
DOS to use country-specific text conventions during processing.
Ctty The ctty command is used to change the default input and output
devices for the system.
Date The date command is used to show or change the current date.
Del The del command is used to delete one or more files. The del
command is the same as the erase command.
Deltree The deltree command is used to delete a directory and all the files
and subdirectories within it.
Dir The dir command is used to display a list of files and folders
contained inside the folder that you are currently working in. The
dir command also displays other important information like the
hard drive's serial number, the total number of files listed, their
combined size, the total amount of free space left on the drive,
and more.
Diskcopy The diskcopy command is used to copy the entire contents of one
floppy disk to another.
Dos The dos command is used in the CONFIG.SYS file to specify the
memory location for DOS.
https://www.lifewire.com/dos-commands-4070427 Page 3 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
Edit The edit command starts the MS-DOS Editor tool, which is used to
create and modify text files.
Edlin The edlin command starts the Edlin tool, which is used to create
and modify text files from the command line. Edlin was only
available up to MS-DOS 5.0 so unless your version of MS-DOS
6.22 was upgraded from 5.0, you likely won't see the edlin
command.
Erase The erase command is used to delete one or more files. The erase
command is the same as the del command.
Exit The exit command is used to end the command.com session that
you're currently working in.
Expand The expand command is used to extract the files and folders
contained in Microsoft Cabinet (CAB) files.
Fcbs The fcbs command is used in the CONFIG.SYS file to specify the
number of file-control blocks for file sharing.
Fdisk The fdisk command is used to create, manage, and delete hard
drive partitions.
Files The files command is used in the CONFIG.SYS file to specify the
maximum number of files that can be open at the same time.
Find The find command is used to search for a specified text string in
one or more files.
https://www.lifewire.com/dos-commands-4070427 Page 4 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
For The for command is used to run a specified command for each
file in a set of files. The for command is most often used within a
batch or script file.
Format The format command is used to format a drive in the file system
that you specify.
Goto The goto command is used in a batch or script file to direct the
command process to a labeled line in the script.
Graphics The graphics command is used to load a program that can print
graphics.
Intersvr The intersvr command is used to start the Interlnk server and to
copy Interlnk files from one computer to another.
Label The label command is used to manage the volume label of a disk.
Lastdrive The lastdrive command is used in the CONFIG.SYS file to set the
maximum number of drives that can be accessed.
Loadfix The loadfix command is used to load the specified program in the
first 64K of memory and then runs the program.
Mem The mem command shows information about used and free
memory areas and programs that are currently loaded into
memory in the MS-DOS subsystem.
https://www.lifewire.com/dos-commands-4070427 Page 5 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
Move The move command is used to move one or files from one folder
to another. The move command is also used to rename
directories.
Pause The pause command is used within a batch or script file to pause
the processing of the file. When the pause command is used, a
"Press any key to continue…" message displays in the command
window.
https://www.lifewire.com/dos-commands-4070427 Page 6 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
Replace The replace command is used to replace one or more files with
one or more other files.
Restore The restore command is used to restore files that were backed up
using the backup command. The backup command was only
available up to MS-DOS 5.00 but the restore command was
included by default with later versions of MS-DOS to provide a
way to restore files that were backed up in previous versions of
MS-DOS.
Setver The setver command is used to set the MS-DOS version number
that MS-DOS reports to a program.
Share The share command is used to install file locking and file sharing
functions in MS-DOS.
Shell The shell command is used in the CONFIG.SYS file to specify the
command interpreter that DOS should use.
Sort The sort command is used to read data from a specified input,
sort that data, and return the results of that sort to the Command
Prompt screen, a file, or another output device.
Stacks The stacks command is used in the CONFIG.SYS file to set the
number and size of stack frames.
https://www.lifewire.com/dos-commands-4070427 Page 7 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
Subst The subst command is used to associate a local path with a drive
letter. The subst command is a lot like the net use command in
Windows except a local path is used instead of a shared network
path. The subst command replaced the assign command
beginning with MS-DOS 6.0.
Sys The sys command is used to copy the MS-DOS system files and
command interpreter to a disk. The sys command is used most
often to create a simple bootable disk or hard drive.
Time The time command is used to show or change the current time.
Ver The ver command is used to display the current MS-DOS version
number.
Vol The vol command shows the volume label and a serial number of
a specified disk, assuming this information exists.
Vsafe The vsafe command is used to start VSafe, a basic virus protection
system for MS-DOS.
Xcopy The xcopy command can copy one or more files or directory trees
from one location to another. The xcopy command is generally
considered a more "powerful" version of the copy command
though the robocopy command trumps even xcopy.
Instead, check out our List of Windows CMD Commands for all of the command
line options you have available to you in Windows. We also have a command
comparison table to show which commands are available in different Microsoft
operating systems.
If you're interested, there are also Windows-specific lists, which you can find in
https://www.lifewire.com/dos-commands-4070427 Page 8 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
WINDOWS
WINDOWS
WINDOWS
WINDOWS
https://www.lifewire.com/dos-commands-4070427 Page 9 of 12
Windows XP Command Prompt open from the desktop
Complete List of MS-DOS Commands 08/11/21 20:56
WINDOWS
WINDOWS
WINDOWS
WINDOWS
Graphic image of computer code with bands of blue and purple color
https://www.lifewire.com/dos-commands-4070427 Page 10 of 12
Graphic image of computer code with bands of blue and purple color
Expand Command
WINDOWS
WINDOWS
Diskpart Command
WINDOWS
WINDOWS
WINDOWS
https://www.lifewire.com/dos-commands-4070427 Page 11 of 12
Complete List of MS-DOS Commands 08/11/21 20:56
WINDOWS
Bootcfg Command
https://www.lifewire.com/dos-commands-4070427 Page 12 of 12