An introduction to Windows-BATch or the Windows-Command-Line can be found here: Windows Batch
After Windows-Powershell gradually replaces Windows-BATch, see also: Windows PowerShell
DOS commands
The command help displays an overview of all integrated commands (depending on the DOS or Windows version). To get more detailed information about the commands: start the command with /? so e.g. xcopy /? will generate a short description or the command line parameters of the respective command.
Here are some commands and a short description:
Command
Description
Operating systems Windows
assoc
Displays or changes file extension associations
XP/Vista/7/8/10/11
at
AT can be used to start commands or programs at a specific time. These are then entered in "Scheduled Tasks
(in Windows 8 schtasks should be used instead of AT)
XP/Vista/7
attrib
Displays or changes file attributes
XP/Vista/7/8/10/11
break
Turns extended checking for CTRL+C on or off
8/10/11
bcdedit
Sets properties in the boot database to control booting.
11
cacls
changes file ACLs (Access Control List) or displays them
XP/Vista/7/8/10/11
call
calls a batch file from another
XP/Vista/7/8/10/11
cd
change to another directory; cd \ changes to the root directory
XP/Vista/7/8/10/11
chcp
changes the current code page or displays its number
XP/Vista/7/8/10/11
chdir
changes the directory or displays its name
XP/Vista/7/8/10/11
chkdsk
check disk
XP/Vista/7/8/10/11
chkntfs
Show disk check at startup, change
XP/Vista/7/8/10/11
choice
Users can select items from a drop-down list
7/8/10/11
cipher
Show or enable encryption of directories (NTFS partition)
XP/Vista/7/8/10/11
cls
Clear screen content
XP/Vista/7/8/10/11
cmd
starts the command prompt
XP/Vista/7/8/10/11
cmstp
profile installation for the connection manager
XP/Vista/7/8/10/11
color
Change console colors
XP/Vista/7/8/10/11
comp
compares the contents of files
XP/Vista/7/8/10/11
compact
view or change the compression of files (ntfs)
XP/Vista/7/8/10/11
convert
convert fat drives to NTFS
XP/Vista/7/8/10/11
copy
copy files. more suitable for copy operations is the command:xcopy
XP/Vista/7/8/10/11
cscript
starts the scripting host: e.g. to display the output of a .vbs file in the console (not in individual windows)
XP/Vista/7/8/10/11
date
shows the current date and asks for a new
XP/Vista/7/8/10/11
defrag
defragment drives
XP/Vista/7/8/10/11
del
delete files (no folders!)
XP/Vista/7/8/10/11
dir
shows the directory contents
XP/Vista/7/8/10/11
diskcomp
compares the content of 2 floppy disks
XP/Vista/7/8
diskcopy
copies one floppy disk to another
XP/Vista/7/8
diskpart
disk management from the console
XP/Vista/7/8/10/11
dism
DISM is used for enumerating, installing, uninstalling, configuring and updating features and packages in Windows images. The commands available depend on which image is being maintained and whether the image is and whether the image is an offline image or an online image. online image.
7/8/10/11
doskey
is responsible for remembering commands already entered in the console, these can be recalled with the up arrow key
XP/Vista/7/8/10/11
driverquery
can display installed devices and their properties
Changes of the environment are only related to the batch file after the "setlocal" command. To reset the original settings the command endlocal is used or the batch file is terminated.
XP/Vista/7/8/10/11
shift
changes the position of replaceable parameters in a batch program
writes performance indicator data to command line or log file
XP/Vista/7/8/10/11
unlodctr
deletes names and explanations for extensible performance indicators
XP/Vista/7/8/10/11
ver
displays the operating system version
XP/Vista/7/8/10/11
verify
sets the monitoring whether files are written correctly to the disk
XP/Vista/7/8/10/11
vol
shows the name and serial number of a volume
XP/Vista/7/8/10/11
vssadmin
Volume Shadow Copy Service command line utility
XP/Vista/7/8/10/11
w32tm
Time synchronization, time server, set time zone
XP/Vista/7/8/10/11
wmic
(Windows Management Instrumentation Commandline). Tool with which the classes of the WMI library can be easily exploited in the command line without programming knowledge.