Professional Documents
Culture Documents
CMD Commands For The Windows Command Prompt: How Does A Command Line Work?
CMD Commands For The Windows Command Prompt: How Does A Command Line Work?
command prompt
Most IT experts and Linux users, in addition to computer users who work with MS-DOS, are relatively
familiar with the command line and its corresponding commands. But a lot can be achieved with
the command prompt in Windows, too. For this reason, we’ll explain what the command line is, how to
open it, and which CMD commands there are for Windows.
Windows console commands have changed over time: in newer Windows versions, users no longer have
access to some of the familiar commands. In the following, we’ll explain which CMD commands still
work under Windows 10 so that you don’t have to tediously test which are still valid and which are
outdated. Our overview tables describe the functions of the individual commands and specify under which
Microsoft operating systems they’re effective.
Contents
1. How does a command line work?
2. How do you open the command prompt?
3. How do you enter commands in the command prompt?
4. Windows CMD commands: an overview
In older operating systems (like MS-DOS), you had to work without a graphical user interface, and
oftentimes even navigate without a mouse. Instead, you had to type in all commands – the directory
structures were then displayed as plain text on the screen. But even after the switch to graphical operating
systems, the command line remained text-based.
In general, the connection between operating system – regardless of whether graphical (GUI = graphical
user interface) or text-based (CLI = command line interpreter) was condensed under the term “Shell.” The
default command line interpreter for Windows is called CMD.EXE. In addition, however, there’s also the
“PowerShell”: This offers more options than CMD.EXE. For example, automations can be created better
with PowerShell. In this way, users can create script programs with the PowerShell scripting language.
Note
Many Windows console commands are based on batch files. This are usually text files (with the ending
.bat or .cmd) that are run by the command line as batch processing. These files are generally created to
perform routine work and start other programs.
$1 Domain Names
Register great TLDs for less than $1 for the first year.
SSL certificate
24/7/365 support
Save Now
The command prompt has long had a fixed spot in the Windows start menu as well. Under Windows 7
and Windows 10, the program is found in the “System Tools” folder. With Windows 8, Microsoft replaced
the start menu with a start screen. But the command prompt is also found via the apps here. Alternatively,
Windows 8 as well as Windows 10 both offer the “Power User Tasks Menu.” You can open this with the
key combination Win + X. In this way, you can find the command prompt in the normal execution as well
as the administrator version.
Note
In the command prompt and commands, you also frequently have to work with path specifications. You
need these to navigate through your directories or specify exact positions in commands. For the input of a
path, use the backslash (\).
Individual CMD commands can be combined with one another. Through a pipe, the output of the first
command is interpreted as input for the following command. In the command prompt, commands are
linked to one another with a vertical line (|). This line itself is called a pipe, but officially is known as a
vertical bar. Vertical bars pass data from one command to the next:
CommandA | CommandB
There’s also the possibility of redirection: where the output of a command is directly forwarded to a file
(>) or the content of a text file is understood as input for the command (<).
Finally, Windows command line commands can also be connected in such a way that they run directly
after one other. This can be controlled via a relatively simple form (&), but also via two more complex
variations. It’s also possible to only run the second command if the first was successful. Or, you can set up
the exact opposite as well: The second command is only run if the first doesn’t work (||). Both options can
even be combined so that there’s an either-or string of commands:
CommandA & CommandB (the second command is run directly after the first)
CommandA && CommandB (the second command is only run if the first was
successful)
Command A || CommandB (the second command is only run if the first was not
successful)
CommandA && CommandB || CommandC (the second command is only run if the
first was successful, otherwise the third command is run)
Tip
Each command has its own syntax and individual options. So that you don’t have to memorize all of these,
CMD offers a help command: Using help command or command /? you can obtain information about how
to handle the command.
It’s also extremely helpful that the command prompt remembers your last entered CMD commands. Using
the up and down arrow keys on the keyboard, you can recall your earlier entries. This also means,
though, that you can’t use these keys to scroll through the CMD window. This is usually done with the
mouse instead. But if you prefer to scroll using keys and are ready to give up the recall command function,
you can alter the corresponding setting: right-click on the command prompt and enable the “Scrolling”
option.
Command, file names or path specifications, as well as arguments, are separated from one another using
spaces. It also usually doesn’t matter if you use upper- or lower-case letters. It’s only important in a few
cases whether you write the parameter in upper- or lower-case (generally only when two different
parameters are abbreviated with the same letter, and are only differentiated from one another through the
case).
Buy a domain
Create a website
Note
The information on the functionality of various Windows versions should only be understood as
orientation information. For the individual commands, it’s not only which Windows version you’re using
that’s important, but also which edition (Home, Pro, Server). In some cases, you have to adjust certain
settings beforehand so that the commands are effective. You also will need access rights as an
administrator for some CMD commands.
Basics
CMD
command Description Windows version
call Calls a batch file within another batch file. The All Win/DOS
command has no effect if entered directly into
CMD instead of in a batch file.
cd Displays the current directory and lets you switch All Win/DOS
to other directories. With the parameter /D plus
drive and path specification, you can also switch
drives. Use cd.. to switch to a higher directory (has
the same function as the chdir command).
chcp Changes the current code page (character set All Win/DOS
table) or shows the page count of the current code
page.
chdir Displays the current directory and lets you switch All Win/DOS
to other directories. With the parameter /D plus
drive and path specification, you can also switch
drives. Use chdir.. to switch to a higher directory
(has the same function as the cd command).
choice Creates a selection list: typical example is the All Win (not
selection of yes (Y) or no (N), which is created XP)/DOS
with /C YN. With the parameter /M you can add an
explanatory message for the user.
clip Forwards the result of a command to the clip) or the content of 10/8/7/Vist
clipboard. For example, you can copy the directory a file (clip <
structure (dir filename) to the
clipboard.
date Displays the current date and allows you to All Win/DOS
CMD
command Description Windows version
debug Starts debug, a program that can test and modify 32-bit/DOS
programs within the command prompt.
dir Displays all folders and files within the current All Win/DOS
directory. You can restrict the output by attributes
(/A), simplify the list (/B), or display all
subdirectories and their files (/S).
edit Starts the MS-DOS editor, with which you can 32-bit/DOS
create text files.
edlin Creates and edits text files within the command 32-bit/DOS
prompt.
help Displays help text for a specific command (you All Win/DOS
can also use the /? command).
logoff Logs the user out of Windows. Also allows you to 10/8/7/Vista/XP
end sessions on servers.
lpr Sends a file to a computer that uses a line printer All Win
daemon (LPD). To use the command in Windows
10, 8, 7, or Vista, the LPD print service and LPR
port monitor have to be enabled first.
CMD
command Description Windows version
more Outputs the content of a file (for example, a text All Win/DOS
file) by the page. You can also use the command
to split the output of another command into pages.
path Creates and displays the path for searching All Win/DOS
executable files.
pause Pauses execution in batch files and scripts. The All Win/DOS
user is then prompted in a message to continue by
pressing a key.
print Prints a text file. The device to be used for printing All Win/DOS
has to be specified.
rem Writes comments in batch and script files that All Win/DOS
aren’t taken into account when executing.
rmdir Deletes a directory. This must not contain any All Win/DOS
files, even hidden ones. You can delete an entire
directory tree with the /S parameter (you can also
use the rd command).
shift Moves variables within batch files and scripts. All Win/DOS
sort Lists out data (from a file or command) and All Win/DOS
CMD
command Description Windows version
taskkill Ends one or more running tasks. You either have 10/8/7/Vista
to specify the process ID (PID) or image name.
title Changes the title of the command prompt. Spaces All Win/DOS
are allowed, but not all special characters such as
a slash, for example, because they may be
interpreted as instructions for a parameter.
Files
CMD
comm Windows
and Description version
append Sets the path in which files will be searched for. 32-bit/DOS
assoc Changes the program that’s linked with a particular file ending. 10/8/7/Vist
a/XP
attrib Changes attributes of specified files. With the parameter +R you can protect All
a file from changes. Win/DOS
cipher Displays and changes the encryption status of files and directories on NTFS 10/8/7/Vist
partitions. a/XP
comp Compares the content of two files or two file sets. The results can be 10/8/7/Vist
displayed as a decimal value (/D) or with ASCII characters (/A). a/XP
compact Displays and changes the compression status of files and directories on 10/8/7/Vist
NTFS partitions. a/XP
copy Copies a file or multiple files to another location. It’s also possible to connect All
several files to one. You can use the asterisk as a wild card. Win/DOS
cscript Runs scripts over the Microsoft Script Host. You can enable additional All
debugging with the /D option. Win/DOS
del Deletes a file or multiple files. If you also want to delete all files from All
subfolders, you can do this with the /S parameter. Read-only files can be
CMD
comm Windows
and Description version
deleted with /F (you can also use the erase command). Win/DOS
deltree Deletes a directory as well as all subdirectories and files within. 98/95/DOS
diantz Compresses files without any loss (command has the same function as 7/Vista/XP
makecab).
endlocal Ends the valid range of changes to batch files or scripts. After the command, 10/8/7/Vist
changes are applied to the entire system again (localization is started with a/XP
setlocal).
exe2bin 32-bit
CMD commands
Converts an EXE file to a BIN file.
Windows console commands have changed over time: in newer Windows versions, users no
longer have access to some of the familiar commands. In the following, we’ll explain which
CMD commands still work under Windows 10 so that you don’t have to tediously test which are
still valid and which are outdated. Our overview tables describe the functions of the individual
commands and specify under which Microsoft operating systems they’re effective.
Contents
1. How does a command line work?
2. How do you open the command prompt?
3. How do you enter commands in the command prompt?
4. Windows CMD commands: an overview
CMD
comm Windows
and Description version
In older operating systems (like MS-DOS), you had to work without a graphical user interface,
and oftentimes even navigate without a mouse. Instead, you had to type in all commands – the
directory structures were then displayed as plain text on the screen. But even after the switch to
graphical operating systems, the command line remained text-based.
In general, the connection between operating system – regardless of whether graphical (GUI =
graphical user interface) or text-based (CLI = command line interpreter) was condensed under
the term “Shell.” The default command line interpreter for Windows is called CMD.EXE. In
addition, however, there’s also the “PowerShell”: This offers more options than CMD.EXE. For
example, automations can be created better with PowerShell. In this way, users can create script
programs with the PowerShell scripting language.
Note
Many Windows console commands are based on batch files. This are usually text files (with the
ending .bat or .cmd) that are run by the command line as batch processing. These files are
generally created to perform routine work and start other programs.
$1 Domain Names
Register great TLDs for less than $1 for the first year.
Matching email
CMD
comm Windows
and Description version
SSL certificate
24/7/365 support
Save Now
The command prompt has long had a fixed spot in the Windows start menu as well. Under
Windows 7 and Windows 10, the program is found in the “System Tools” folder. With Windows
8, Microsoft replaced the start menu with a start screen. But the command prompt is also found
via the apps here. Alternatively, Windows 8 as well as Windows 10 both offer the “Power User
Tasks Menu.” You can open this with the key combination Win + X. In this way, you can find
the command prompt in the normal execution as well as the administrator version.
replaces a single character (i.e. letter, digit, or other character), the asterisk stands for any
number of characters.
Note
In the command prompt and commands, you also frequently have to work with path
specifications. You need these to navigate through your directories or specify exact positions in
commands. For the input of a path, use the backslash (\).
Individual CMD commands can be combined with one another. Through a pipe, the output of
the first command is interpreted as input for the following command. In the command prompt,
commands are linked to one another with a vertical line (|). This line itself is called a pipe, but
officially is known as a vertical bar. Vertical bars pass data from one command to the next:
CommandA | CommandB
There’s also the possibility of redirection: where the output of a command is directly forwarded
to a file (>) or the content of a text file is understood as input for the command (<).
Finally, Windows command line commands can also be connected in such a way that they run
directly after one other. This can be controlled via a relatively simple form (&), but also via
two more complex variations. It’s also possible to only run the second command if the first was
successful. Or, you can set up the exact opposite as well: The second command is only run if the
first doesn’t work (||). Both options can even be combined so that there’s an either-or string of
commands:
CommandA & CommandB (the second command is run directly after the
first)
CommandA && CommandB (the second command is only run if the first
was successful)
Command A || CommandB (the second command is only run if the first was
not successful)
CommandA && CommandB || CommandC (the second command is only run
if the first was successful, otherwise the third command is run)
Tip
Each command has its own syntax and individual options. So that you don’t have to memorize
all of these, CMD offers a help command: Using help command or command /? you can obtain
information about how to handle the command.
It’s also extremely helpful that the command prompt remembers your last entered CMD
commands. Using the up and down arrow keys on the keyboard, you can recall your earlier
entries. This also means, though, that you can’t use these keys to scroll through the CMD
window. This is usually done with the mouse instead. But if you prefer to scroll using keys and
CMD
comm Windows
and Description version
are ready to give up the recall command function, you can alter the corresponding setting: right-
click on the command prompt and enable the “Scrolling” option.
Command, file names or path specifications, as well as arguments, are separated from one
another using spaces. It also usually doesn’t matter if you use upper- or lower-case letters. It’s
only important in a few cases whether you write the parameter in upper- or lower-case (generally
only when two different parameters are abbreviated with the same letter, and are only
differentiated from one another through the case).
Buy a domain
Create a website
Note
The information on the functionality of various Windows versions should only be understood as
orientation information. For the individual commands, it’s not only which Windows version
you’re using that’s important, but also which edition (Home, Pro, Server). In some cases, you
have to adjust certain settings beforehand so that the commands are effective. You also will need
access rights as an administrator for some CMD commands.
Basics
CMD
comm Windows
and Description version
CMD
command Description Windows version
call Calls a batch file within another batch file. The All Win/DOS
command has no effect if entered directly into
CMD instead of in a batch file.
cd Displays the current directory and lets you switch All Win/DOS
to other directories. With the parameter /D plus
drive and path specification, you can also switch
drives. Use cd.. to switch to a higher directory (has
the same function as the chdir command).
chcp Changes the current code page (character set All Win/DOS
table) or shows the page count of the current code
page.
chdir Displays the current directory and lets you switch All Win/DOS
to other directories. With the parameter /D plus
drive and path specification, you can also switch
drives. Use chdir.. to switch to a higher directory
(has the same function as the cd command).
choice Creates a selection list: typical example is the All Win (not
selection of yes (Y) or no (N), which is created XP)/DOS
with /C YN. With the parameter /M you can add an
explanatory message for the user.
date Displays the current date and allows you to All Win/DOS
change it. With the parameter /T the date is shown
without the option to change.
debug Starts debug, a program that can test and modify 32-bit/DOS
programs within the command prompt.
dir Displays all folders and files within the current All Win/DOS
directory. You can restrict the output by attributes
(/A), simplify the list (/B), or display all
subdirectories and their files (/S).
edit Starts the MS-DOS editor, with which you can 32-bit/DOS
create text files.
edlin Creates and edits text files within the command 32-bit/DOS
prompt.
help Displays help text for a specific command (you All Win/DOS
can also use the /? command).
logoff Logs the user out of Windows. Also allows you to 10/8/7/Vista/XP
end sessions on servers.
lpr Sends a file to a computer that uses a line printer All Win
daemon (LPD). To use the command in Windows
10, 8, 7, or Vista, the LPD print service and LPR
port monitor have to be enabled first.
more Outputs the content of a file (for example, a text All Win/DOS
file) by the page. You can also use the command
to split the output of another command into pages.
path Creates and displays the path for searching All Win/DOS
CMD
comm Windows
and Description version
executable files.
pause Pauses execution in batch files and scripts. The All Win/DOS
user is then prompted in a message to continue by
pressing a key.
print Prints a text file. The device to be used for printing All Win/DOS
has to be specified.
rem Writes comments in batch and script files that All Win/DOS
aren’t taken into account when executing.
rmdir Deletes a directory. This must not contain any All Win/DOS
files, even hidden ones. You can delete an entire
directory tree with the /S parameter (you can also
use the rd command).
shift Moves variables within batch files and scripts. All Win/DOS
sort Lists out data (from a file or command) and All Win/DOS
outputs it again sorted – directly in the command
prompt, in a new file, or in another output.
taskkill Ends one or more running tasks. You either have 10/8/7/Vista
to specify the process ID (PID) or image name.
title Changes the title of the command prompt. Spaces All Win/DOS
are allowed, but not all special characters such as
a slash, for example, because they may be
interpreted as instructions for a parameter.
Files
CMD
command Description
assoc Changes the program that’s linked with a particular file ending.
CMD
command Description
comp Compares the content of two files or two file sets. The results
can be displayed as a decimal value (/D) or with ASCII
characters (/A).
cscript Runs scripts over the Microsoft Script Host. You can enable
additional debugging with the /D option.
del Deletes a file or multiple files. If you also want to delete all files
from subfolders, you can do this with the /S parameter. Read-
only files can be deleted with /F (you can also use the erase
command).
diantz Compresses files without any loss (command has the same
function as makecab).
endlocal Ends the valid range of changes to batch files or scripts. After
the command, changes are applied to the entire system again
(localization is started with setlocal).
CMD
comm Windows
and Description version
CMD
command Description
extrac32 Extracts files and folders stored in CAB files. The program is part
of Internet Explorer, but can also be used in the command
prompt.
extract
Windows console commands have changed over time: in newer Windows versions, users no
longer have access to some of the familiar commands. In the following, we’ll explain which
CMD commands still work under Windows 10 so that you don’t have to tediously test which are
still valid and which are outdated. Our overview tables describe the functions of the individual
commands and specify under which Microsoft operating systems they’re effective.
Contents
1. How does a command line work?
2. How do you open the command prompt?
3. How do you enter commands in the command prompt?
4. Windows CMD commands: an overview
operating system, that forwards commands from the user to the operating system. This makes it
possible, for example, to organize files, start programs, or run other commands linked to the
operating system, computer, or network.
In older operating systems (like MS-DOS), you had to work without a graphical user interface,
and oftentimes even navigate without a mouse. Instead, you had to type in all commands – the
directory structures were then displayed as plain text on the screen. But even after the switch to
graphical operating systems, the command line remained text-based.
In general, the connection between operating system – regardless of whether graphical (GUI =
graphical user interface) or text-based (CLI = command line interpreter) was condensed under
the term “Shell.” The default command line interpreter for Windows is called CMD.EXE. In
addition, however, there’s also the “PowerShell”: This offers more options than CMD.EXE. For
example, automations can be created better with PowerShell. In this way, users can create script
programs with the PowerShell scripting language.
Note
Many Windows console commands are based on batch files. This are usually text files (with the
ending .bat or .cmd) that are run by the command line as batch processing. These files are
generally created to perform routine work and start other programs.
$1 Domain Names
Register great TLDs for less than $1 for the first year.
Matching email
SSL certificate
CMD
comm Windows
and Description version
24/7/365 support
Save Now
The command prompt has long had a fixed spot in the Windows start menu as well. Under
Windows 7 and Windows 10, the program is found in the “System Tools” folder. With Windows
8, Microsoft replaced the start menu with a start screen. But the command prompt is also found
via the apps here. Alternatively, Windows 8 as well as Windows 10 both offer the “Power User
Tasks Menu.” You can open this with the key combination Win + X. In this way, you can find
the command prompt in the normal execution as well as the administrator version.
Note
In the command prompt and commands, you also frequently have to work with path
specifications. You need these to navigate through your directories or specify exact positions in
commands. For the input of a path, use the backslash (\).
Individual CMD commands can be combined with one another. Through a pipe, the output of
the first command is interpreted as input for the following command. In the command prompt,
CMD
comm Windows
and Description version
commands are linked to one another with a vertical line (|). This line itself is called a pipe, but
officially is known as a vertical bar. Vertical bars pass data from one command to the next:
CommandA | CommandB
There’s also the possibility of redirection: where the output of a command is directly forwarded
to a file (>) or the content of a text file is understood as input for the command (<).
Finally, Windows command line commands can also be connected in such a way that they run
directly after one other. This can be controlled via a relatively simple form (&), but also via
two more complex variations. It’s also possible to only run the second command if the first was
successful. Or, you can set up the exact opposite as well: The second command is only run if the
first doesn’t work (||). Both options can even be combined so that there’s an either-or string of
commands:
CommandA & CommandB (the second command is run directly after the
first)
CommandA && CommandB (the second command is only run if the first
was successful)
Command A || CommandB (the second command is only run if the first was
not successful)
CommandA && CommandB || CommandC (the second command is only run
if the first was successful, otherwise the third command is run)
Tip
Each command has its own syntax and individual options. So that you don’t have to memorize
all of these, CMD offers a help command: Using help command or command /? you can obtain
information about how to handle the command.
It’s also extremely helpful that the command prompt remembers your last entered CMD
commands. Using the up and down arrow keys on the keyboard, you can recall your earlier
entries. This also means, though, that you can’t use these keys to scroll through the CMD
window. This is usually done with the mouse instead. But if you prefer to scroll using keys and
are ready to give up the recall command function, you can alter the corresponding setting: right-
click on the command prompt and enable the “Scrolling” option.
Command, file names or path specifications, as well as arguments, are separated from one
another using spaces. It also usually doesn’t matter if you use upper- or lower-case letters. It’s
only important in a few cases whether you write the parameter in upper- or lower-case (generally
only when two different parameters are abbreviated with the same letter, and are only
differentiated from one another through the case).
Get found with your own domain. Build trust with your own email address. Reach visitors with
your own website.
Buy a domain
Create a website
Note
The information on the functionality of various Windows versions should only be understood as
orientation information. For the individual commands, it’s not only which Windows version
you’re using that’s important, but also which edition (Home, Pro, Server). In some cases, you
have to adjust certain settings beforehand so that the commands are effective. You also will need
access rights as an administrator for some CMD commands.
Basics
CMD
command Description Windows version
CMD
command Description Windows version
call Calls a batch file within another batch file. The All Win/DOS
command has no effect if entered directly into
CMD instead of in a batch file.
cd Displays the current directory and lets you switch All Win/DOS
to other directories. With the parameter /D plus
drive and path specification, you can also switch
drives. Use cd.. to switch to a higher directory (has
the same function as the chdir command).
chcp Changes the current code page (character set All Win/DOS
table) or shows the page count of the current code
page.
chdir Displays the current directory and lets you switch All Win/DOS
to other directories. With the parameter /D plus
drive and path specification, you can also switch
drives. Use chdir.. to switch to a higher directory
(has the same function as the cd command).
choice Creates a selection list: typical example is the All Win (not
selection of yes (Y) or no (N), which is created XP)/DOS
with /C YN. With the parameter /M you can add an
explanatory message for the user.
CMD
command Description Windows version
date Displays the current date and allows you to All Win/DOS
change it. With the parameter /T the date is shown
without the option to change.
debug Starts debug, a program that can test and modify 32-bit/DOS
programs within the command prompt.
dir Displays all folders and files within the current All Win/DOS
directory. You can restrict the output by attributes
(/A), simplify the list (/B), or display all
subdirectories and their files (/S).
edit Starts the MS-DOS editor, with which you can 32-bit/DOS
create text files.
edlin Creates and edits text files within the command 32-bit/DOS
prompt.
CMD
command Description Windows version
help Displays help text for a specific command (you All Win/DOS
can also use the /? command).
CMD
command Description Windows version
Windows versions).
logoff Logs the user out of Windows. Also allows you to 10/8/7/Vista/XP
end sessions on servers.
lpr Sends a file to a computer that uses a line printer All Win
daemon (LPD). To use the command in Windows
10, 8, 7, or Vista, the LPD print service and LPR
port monitor have to be enabled first.
more Outputs the content of a file (for example, a text All Win/DOS
file) by the page. You can also use the command
to split the output of another command into pages.
CMD
command Description Windows version
support.
path Creates and displays the path for searching All Win/DOS
executable files.
pause Pauses execution in batch files and scripts. The All Win/DOS
user is then prompted in a message to continue by
pressing a key.
print Prints a text file. The device to be used for printing All Win/DOS
has to be specified.
rem Writes comments in batch and script files that All Win/DOS
aren’t taken into account when executing.
rmdir Deletes a directory. This must not contain any All Win/DOS
CMD
comm Windows
and Description version
CMD
command Description Windows version
shift Moves variables within batch files and scripts. All Win/DOS
sort Lists out data (from a file or command) and All Win/DOS
outputs it again sorted – directly in the command
prompt, in a new file, or in another output.
CMD
command Description Windows version
taskkill Ends one or more running tasks. You either have 10/8/7/Vista
to specify the process ID (PID) or image name.
title Changes the title of the command prompt. Spaces All Win/DOS
are allowed, but not all special characters such as
a slash, for example, because they may be
interpreted as instructions for a parameter.
CMD
command Description Windows version
Files
CMD
command Description
assoc Changes the program that’s linked with a particular file ending.
comp Compares the content of two files or two file sets. The results
can be displayed as a decimal value (/D) or with ASCII
characters (/A).
cscript Runs scripts over the Microsoft Script Host. You can enable
additional debugging with the /D option.
del Deletes a file or multiple files. If you also want to delete all files
from subfolders, you can do this with the /S parameter. Read-
only files can be deleted with /F (you can also use the erase
CMD
comm Windows
and Description version
CMD
command Description
command).
diantz Compresses files without any loss (command has the same
function as makecab).
endlocal Ends the valid range of changes to batch files or scripts. After
the command, changes are applied to the entire system again
(localization is started with setlocal).
extrac32 Extracts files and folders stored in CAB files. The program is part
of Internet Explorer, but can also be used in the command
prompt.
extract
expand Extracts files and folders stored in CAB files. All Win (no
64-bit
XP)/DOS
extrac3 Extracts files and folders stored in CAB files. The program is part of Internet All Win
CMD
comm Windows
and Description version
extract