0% found this document useful (0 votes)
8 views

Dos Commands

Uploaded by

mobilebunnypc
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Dos Commands

Uploaded by

mobilebunnypc
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

This list of DOS commands is very useful when repairing Windows after a system crash when Windows

doesn’t load and the only option you have is a Dos command prompt. Use the “help” command to find
the usage and details of any particular command e.g. C:\>help copy

 CHDIR – Displays the name of or changes the current directory.


 CHKDSK – Checks a disk and displays a status report.
 CLS – Clears the screen.
 COMP – Compares two groups of files to find information that does not match.
 COPY – Copies and appends files.
 DATE – Displays and/or sets the system date.
 DEFRAG – Optimizes disk performance by reorganizing the files on the disk.
 DEL – Deletes files from disk.
 DELTREE – Deletes a directory including all files and subdirectories that are in it.
 DIR – Displays directory of files and directories stored on disk.
 DISKCOMP – Compares the contents of two diskettes.
 ECHO – Displays messages or turns on or off the display of commands in a batch file.
 EDIT – Starts the MS-DOS editor, a text editor used to create and edit ASCII text files.
 EXIT – Exits a secondary command processor.
 EXPAND – Expands a compressed file.
 FASTHELP – Displays a list of DOS commands with a brief explanation of each.
 FIND – Finds and reports the location of a specific string of text characters in one or more files.
 FOR – Performs repeated execution of commands (for both batch processing and interactive
processing).
 FORMAT – Formats a disk to accept DOS files.
 GRAPHICS – Provides a way to print contents of a graphics screen display.
 IF – Allows for conditional operations in batch processing.
 LABEL – Creates or changes or deletes a volume label for a disk.
 MEM – Displays amount of installed and available memory, including extended, expanded, and
upper memory.
 MKDIR – Creates a new subdirectory.
 MORE – Sends output to console, one screen at a time.
 MOVE – Moves one or more files to the location you specify. Can also be used to rename
directories.
 PATH – Sets or displays directories that will be searched for programs not in the current directory.
 RENAME – Changes the filename under which a file is stored.
 RMDIR – Removes a subdirectory.
 SORT – Sorts input and sends it to the screen or to a file.
 XCOPY – Copies directories, subdirectories, and files.

MS-DOS and command line overview


Updated: 04/02/2019 by Computer Hope
Below is a listing of each of the MS-DOS and Windows command line
commands listed on Computer Hope and a brief explanation of what each does.
This list contains every command ever made available, which means not all the
commands are going to work with your version of MS-DOS or Windows. Click
on the command to view a full help page.

Command Description
ansi.sys Defines functions that change display graphics, control cursor movement, and reassign keys.
append Causes MS-DOS to look in other directories when editing a file or running a command.
arp Displays, adds, and removes arp information from network devices.
assign Assign a drive letter to an alternate letter.
assoc View the file associations.
at Schedule a time to execute commands or programs.
atmadm Lists connections and addresses seen by Windows ATM call manager.
attrib Display and change file attributes.
batch Recovery console command that executes a series of commands in a file.
bcdedit Modify the boot configuration data store.
bootcfg Recovery console command that allows a user to view, modify, and rebuild the boot.ini file.
break Enable and disable Ctrl+C feature.
cacls View and modify file ACL's.
call Calls a batch file from another batch file.
cd Changes directories.
chcp Supplement the international keyboard and character set information.
chdir Changes directories.
chkdsk Check the hard drive running FAT for errors.
chkntfs Check the hard drive running NTFS for errors.
choice Specify a listing of multiple options within a batch file.
clip Redirect command line output to the Windows clipboard.
cls Clears the screen.
cmd Opens the command interpreter.
color Change the foreground and background color of the MS-DOS window.
command Opens the command interpreter.
comp Compares files.
compact Compresses and uncompress files.
control Open Control Panel icons from the MS-DOS prompt.
convert Convert FAT to NTFS.
copy Copy one or more files to an alternate location.
ctty Change the computer's input/output devices.
date View or change the systems date.
debug Debug utility to create assembly language programs to modify hardware settings.
defrag Re-arrange the hard drive to help with loading programs.
del Deletes one or more files.
delete Recovery console command that deletes a file.
deltree Deletes one or more files or directories.
dir List the contents of one or more directory.
disable Recovery console command that disables Windows system services or drivers.
diskcomp Compare a disk with another disk.
diskcopy Copy the contents of one disk and place them on another disk.
doskey Command to view and execute commands that have been run in the past.
dosshell A GUI to help with early MS-DOS users.
driverquery Display a list of installed device drivers.
drivparm Enables overwrite of original device drivers.
echo Displays messages and enables and disables echo.
edit View and edit files.
edlin View and edit files.
emm386 Load extended memory manager.
enable Recovery console command to enable a disable service or driver.
endlocal Stops the localization of the environment changes enabled by the setlocal command.
erase Erase files from computer.
exit Exit from the command interpreter.
expand Expand a Microsoft Windows file back to its original format.
extract Extract files from the Microsoft Windows cabinets.
fasthelp Displays a listing of MS-DOS commands and information about them.
fc Compare files.
fdisk Setup drive by create and managing partitions on the hard drive.
find Search for text within a file.
findstr Searches for a string of text within a file.
fixboot Writes a new boot sector.
fixmbr Writes a new boot record to a disk drive.
for Boolean used in batch files.
format Command to erase and prepare a disk drive.
ftp Command to connect and operate on an FTP server.
fType Displays or modifies file types used in file extension associations.
goto Moves a batch file to a specific label or location.
graftabl Show extended characters in graphics mode.
help Display a listing of commands and brief explanation.
if Allows for batch files to perform conditional processing.
ifshlp.sys 32-bit file manager.
ipconfig Network command to view network adapter settings and assigned values.
keyb Change layout of keyboard.
label Change the label of a disk drive.
lh Load a device driver in to high memory.
listsvc Recovery console command that displays the services and drivers.
loadfix Load a program above the first 64 k.
loadhigh Load a device driver in to high memory.
lock Lock the hard drive.
logoff Logoff the currently profile using the computer.
logon Recovery console command to list installations and enable administrator login.
map Displays the device name of a drive.
md Command to create a new directory.
mem Display memory on system.
mkdir Command to create a new directory.
mklink Creates a symbolic link.
mode Modify the port or display settings.
more Display one page at a time.
move Move one or more files from one directory to another directory.
msav Early Microsoft virus scanner.
msd Diagnostics utility.
mscdex Utility used to load and provide access to the CD-ROM.
nbtstat Displays protocol statistics and current TCP/IP connections using NBT.
net Update, fix, or view the network or network settings.
netsh Configure dynamic and static network information from MS-DOS.
netstat Display the TCP/IP network protocol statistics and information.
nlsfunc Load country specific information.
nslookup Look up an IP address of a domain or host on a network.
path View and modify the computer's path location.
pathping View and locate locations of network latency.
pause Command used in batch files to stop the processing of a command.
ping Test and send information to another network computer or network device.
popd Changes to the directory or network path stored by the pushd command.
power Conserve power with computer portables.
print Prints data to a printer port.
prompt View and change the MS-DOS prompt.
pushd Stores a directory or network path in memory so it can be returned to at any time.
qbasic Open the QBasic.
rd Removes an empty directory.
ren Renames a file or directory.
rename Renames a file or directory.
rmdir Removes an empty directory.
robocopy A robust file copy command for the Windows command line.
route View and configure Windows network route tables.
runas Enables a user to run a program as a different user.
sc Communicate with the Service Control Manager and services.
scandisk Run the ScanDisk utility.
scanreg Scan registry and recover registry from errors.
set Change one variable or string to another.
setlocal Enables local environments to be changed without affecting anything else.
setver Change MS-DOS version to trick older MS-DOS programs.
share Installs support for file sharing and locking capabilities.
shift Changes the position of replaceable parameters in a batch program.
shutdown Shutdown the computer from the MS-DOS prompt.
smartdrv Create a disk cache in conventional memory or extended memory.
sort Sorts the input and displays the output to the screen.
start Start a separate window in Windows from the MS-DOS prompt.
subst Substitute a directory on your computer for another drive letter.
switches Remove add functions from MS-DOS.
sys Transfer system files to disk drive.
telnet Telnet to another computer or device from the prompt.
time View or modify the system time.
title Change the title of their MS-DOS window.
tracert Visually view a network packets route across a network.
tree View a visual tree of the hard drive.
Type Display the contents of a file.
undelete Undelete a file that was deleted.
unformat Unformat a hard drive.
unlock Unlock a disk drive.
ver Display the version information.
verify Enables or disables the feature to determine if files have been written properly.
vol Displays the volume information about the designated drive.
xcopy Copy multiple files, directories, or drives from one location to another.

You might also like