MS DOS Commands
MS DOS Commands
BUFFERS Allocates memory for a specified number of disk buffers from within the
config.sys
CALL Calls one batch file from another without exiting from the first.
CD or CHDIR Changes the current directory.
CHCP Displays or changes the active code page.
CHKDSK Checks a disk and displays a status report.
CHOICE Waits for the user to choose one of a set of choices.
CLS Clears the screen.
COMMAND Starts a new copy of the MS-DOS Command Interpreter.
COPY Copies the specified files.
COUNTRY Enables MS-DOS to use country-specific conventions.
CTTY Changes the standard Input/ Output device.
DATE Displays or sets the system date.
DBLSPACE Creates or configures DoubleSpace compressed drives.
DEBUG Runs Debug, a program testing and editing tool.
DEFRAG Reorganizes files on disks to optimize performance.
Connects two computers via parallel or serial ports and enables the computers
INTERLNK to
share disks and printer ports.
Provides serial or parallel file transfer and printing capabilities via redirected
INTERSVR
drives.
KEYB Configures a keyboard for a specific language.
LABEL Creates, changes, or deletes the volume label of a disk.
Specifies in your config.sys file the maximum number of drives you can
LASTDRIVE
access.
LH - LOADHIGH Loads a program into upper memory.
LOADFIX Loads a program above the first 64K of memory, and runs the program.
MEM Displays the amount of used and free memory in your system.
MEMMAKER Runs the MemMaker memory-optimization program.
MENUDEFAULT Specifies the default menu item on the startup menu in the config.sys file.
MENUITEM Defines an item on the startup menu in the config.sys file.
MD - MKDIR Makes (creates) a new directory.
MODE Configures system devices.
MORE Displays output one screen at a time.
MOVE Moves files and renames files and directories.
MSAV Scans your computer for known viruses.
MSBACKUP Backs up or restores one or more files.
MSCDEX Provides access to CD-ROM drives.
Starts the Microsoft Diagnostics program which provides detailed technical
MSD
information about your computer.
NLSFUNC Loads country-specific information.
Specifies from within your config.sys file whether the numlock key is set
NUMLOCK to
on or off.
Step 1. Overview:
To open a Microsoft MS-DOS command prompt shell window, first click the
Windows Start menu (located at the very lower-left corner of your
computer's desktop) and select "Run...".
Then if you are using Windows XP or Vista or Windows 7, type cmd into the
Run box and click "OK". You could also type cmd.exe
Otherwise, if you are using an older version of Windows, type command into
the Run box and click "OK". You could also type command.exe
After you click "OK", an MS-DOS command prompt window will appear.
Depending upon which version of Windows you are using, the MS-DOS
command window will look similar to these images:
The standard window displays white text on a black background. This color
combination may make text difficult to read. To make the window display
black text on a white background, type the command: color f0 (that's the
letter f followed by the digit zero 0). To go back to the standard of white
text on a black background, type:color
See the MS-DOS Commands index for a description of the commands that
you can type into the MS-DOS command prompt window. The most common
tasks are:
To close the window, either type exit and press Enter, or click the X button
in thetop-right of the window frame.
When you are using a Microsoft MS-DOS command window, MS-DOS works
on one directory at a time. The "current" directory is indicated as part of the
command prompt.
cd directory
or
cd drive:directory
For example, "cd \mystuff" will make "\mystuff" the current directory. To
get to the "root" (top level directory) of your c: drive, type cd \
Command Variations:
cd directory
cd drive:directory
The directory can start with a \ or be relative to the current directory. For
example, if the current directory is C:\mystuff then typing cd ebookswill
change the current directory to C:\mystuff\ebooks (assuming that there is
in fact a ebooks sub-directory inside C:\mystuff).
Note: Each drive (c:, d:, e:, etc.) has its own current directory. That's why
there is the drive:directory variation of the cd command. For example: cd
e:\photos will set the current directory of the e: drive to\photos. To switch
to the e: drive, you would simply type e: and press theEnter key.
cd /d drive:directory
Make the specified directory directory the current directory and also switch
do the drive: drive.
cd ..
You can also type cd .. (the two dots are required) to back out one level
out of the current directory. For example, if the current directory
isC:\mystuff\ebooks then typing cd .. will change the current directory
toC:\mystuff
cd
help cd
Displays the name of or changes the current directory.
cd \winnt\profiles\username\programs\start menu
Related Commands:
dir
md
To make a new directory, use the md (or mkdir) command.