List of DOS command line commands

from Wikipedia, the free encyclopedia

List of command line commands from operating systems, whose command set is based on the command set of PC-compatible DOS operating systems .

The instruction set has its origin in the 86-DOS developed by Tim Paterson , which was bought by Microsoft . Microsoft's MS-DOS was used by IBM and sold as IBM PC DOS . Microsoft adopted large parts of the MS-DOS instruction set for OS / 2 and Windows NT , which is why they are included in this list. Network commands such as or , or commands for which additional components must be installed are not included . NETPING

Legend

logo operating system
86-DOS logo.svg 86 DOS command
Contrived MS-DOS logo.svg Command, supplied in PC-compatible DOS versions (MS-DOS, PC DOS, DR DOS etc.)
IBM logo.svg IBM-PC-DOS command (not included in MS-DOS)
Msdos-logo.svg MS-DOS command (not included in IBM PC DOS)
Icon-os-2.svg OS / 2 command
MicrosoftWindows-Logo.svg Command in Windows 95 to Windows ME (32-bit command)
Microsoft Windows 7 logo.svg Windows NT command (special features of the 16-bit MS-DOS commands still supplied are marked with NTVDM )

Commands that are capitalized have their origin in DOS or OS / 2 , commands in lower case in Windows NT or Windows 95 .

list

@

@ Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Suppresses the output of the command in a batch processing file.
Syntax: @command
Internal command since DOS 3.3, internal command in Windows NT

A.

ACALC IBM logo.svg
Computes math expressions.
Syntax: ACALC Ausdruck
External command since PC DOS 7
aclconv Microsoft Windows 7 logo.svg
Recovers OS / 2 HPFS ACLs in NTFS drives.
Syntax: aclconv [parameter]
External command in Windows NT 3.5
ANSI Icon-os-2.svg Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Switches the processing of ANSI control characters on or off.
Syntax: ANSI [ON|OFF]
command in OS / 2
APPEND Contrived MS-DOS logo.svg
Allows data files in the specified directories to be opened as if they were the current directory.
Syntax: APPEND verzeichnis[;...] or APPEND ;
external command since DOS 3.3, external command in Windows NT (NTVDM)
ASSIGN Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Reassigning a drive letter.
Syntax: ASSIGN [laufwerk: neueslaufwerk:]
External command from DOS 2.0 to DOS 5.0, contained in MS-DOS 6.x on the additional diskette, external command in Windows NT
at Microsoft Windows 7 logo.svg
Configure recurring tasks.
Syntax: at [parameter] kommando
External command in Windows NT
ATTRIB Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Sets or removes file attributes (read-only, hidden, system and archive).
Syntax: ATTRIB datei [parameter]
External command since DOS 3.0, command in OS / 2, external command in Windows NT

B.

BACKUP Contrived MS-DOS logo.svg Icon-os-2.svg
Backs up files, directories or data carriers to a data carrier.
Syntax: BACKUP quelle ziellaufwerk: [parameter]
External command from DOS 2.0 to DOS 5.0, command in OS / 2, external command in Windows NT (NTVDM)
BASIC IBM logo.svg
BASIC interpreter.
Syntax: BASIC datei
External command since IBM DOS 1.0
BASICA IBM logo.svg
BASIC interpreter.
Syntax: BASICA datei
External command since IBM DOS 1.0
BOAT Icon-os-2.svg
Reboots the computer under DOS or OS / 2.
Syntax: BOOT [/DOS|/OS2]
command in OS / 2
BREAK Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Allows access to drives to be interrupted with Strg+ Cor Strg+ PAUSE. If no parameter is specified, the current setting is displayed.
Syntax: BREAK [ON|OFF]
Internal command since DOS 2.0, internal command in Windows NT

C.

cacls Microsoft Windows 7 logo.svg
Displays or modifies Access Control Lists (ACLs) for files and folders.
Syntax: cacls ordner [parameter]
External command in Windows NT
CALL Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Calls a batch file from within another batch file.
Syntax: CALL stapelverarbeitungsdatei [parameter]
Internal command since DOS 3.3, internal command in Windows NT
CD / CHDIR Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Changes to the listed directory ( change directory ), the path specification may be relative. cdwithout directory shows the current directory.
Syntax: CD [verzeichnis]
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT
CHCP Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Loads a change codetable . If only the command is given, the current table number is displayed (e.g .: 850).
Syntax: CHCP [codepage]
Internal command since DOS 3.3, command in OS / 2, in Windows NT only in full screen mode
CHKDSK 86-DOS logo.svg Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Checks a drive or file and displays a report.
Syntax: CHKDSK [datei] [parameter]
External command since 86-DOS, command in OS / 2, external command in Windows NT
CHOICE Msdos-logo.svg Microsoft Windows 7 logo.svg
Selection and evaluation of key inputs, e.g. B. Y / N, the result is ERRORLEVELsaved as.
Syntax: CHOICE [parameter] [text]
External command since DOS 6.0, external command in Windows NT
CLEAR 86-DOS logo.svg
Formats a drive.
Syntax: CLEAR
Internal command in 86-DOS, replaced by FORMATin DOS 1.0
CLS Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Clears the screen (engl. Clear screen ).
Syntax: CLS
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT
cmd Icon-os-2.svg Microsoft Windows 7 logo.svg
Calls a new instance of the command line interpreter cmd.exe.
Syntax: cmd [parameter]
Command in OS / 2, external command in Windows NT
COMMAND 86-DOS logo.svg Contrived MS-DOS logo.svg
Calls a new instance of the command line interpreter COMMAND.COM.
Syntax: COMMAND [parameter]
External command since 86-DOS
COMP Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Compares two or more files.
Syntax: COMP file1 | files1 file2
External command since DOS 1.0, command in OS / 2, external command in Windows NT
convert Microsoft Windows 7 logo.svg
Converts a FAT16, FAT32, or HPFS drive to an NTFS drive.
Syntax: convert laufwerk /FS:NTFS [parameter]
External command in Windows NT
COPY 86-DOS logo.svg Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Copies files. If no target is given, the current directory is the target.
Syntax: COPY source [target]
Internal command since 86-DOS, command in OS / 2, internal command in Windows NT
CREATEDD Icon-os-2.svg
Creates a dump disk.
Syntax: CREATEDD
command in OS / 2
CTTY Contrived MS-DOS logo.svg
Changes the input or output to another device.
Syntax: CTTY gerät
Internal command since DOS 2.0

D.

DATE Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Changes or shows the current date given by the BIOS.
Syntax: DATE [datum]
External command in DOS 1.0, internal command since DOS 1.1, command in OS / 2, internal command in Windows NT
DBLSPACE Msdos-logo.svg
Hard disk
compressor syntax: DBLSPACE [parameter]
External command in MS-DOS 6.0 to 6.2 (replaced by 6.22 DRVSPACE)
DDINSTALL Icon-os-2.svg
Installs a device driver from the command line.
Syntax: DDINSTALL
Command in OS / 2
DEBUG 86-DOS logo.svg Contrived MS-DOS logo.svg
System program for troubleshooting
Syntax: DEBUG [datei [parameter]]
External command since 86-DOS, external command in Windows NT (NTVDM)
DEFRAG Microsoft Windows 7 logo.svg
Defragments a drive.
Syntax: DEFRAG [laufwerk:]
External command since MS-DOS 6.0, external command in Windows NT since Windows XP
DEL / ERASE / ERA 86-DOS logo.svg Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Deletes files (Engl. Delete ).
Syntax: DEL filename
internal command since DOS 1.1 ( DEL), internal command since 86-DOS ( ERASE), internal command in DR-DOS ( ERA), command in OS / 2 ( DELand ERASE), internal command in Windows NT ( DELand ERASE)
DELOLDOS Msdos-logo.svg
Deletes an older DOS installation.
Syntax: DELOLDOS
External command from MS-DOS 5.0 to 6.22
DELTREE Msdos-logo.svg
Deletes a directory and its contents.
Syntax: DELTREE verzeichnis
External command since MS-DOS 6.0
DETACH Icon-os-2.svg
Executes the command in the background in a separate session
Syntax: DETACH kommando
Command in OS / 2
TO YOU Icon-os-2.svg Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Shows files in the current directory or a specified directory.
Syntax: DIR [verzeichnis]
Internal command since 86-DOS, command in OS / 2, internal command in Windows NT
DISKCOMP Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Compares two diskette
syntax: DISKCOMP laufwerk1: [laufwerk2:]
External command since DOS 1.0, command in OS / 2, external command in Windows NT
DISKCOPY Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Copies a floppy disk.
Syntax: DISKCOPY laufwerk1: [laufwerk2:]
External command since DOS 1.0, command in OS / 2, external command in Windows NT
diskperf Icon-os-2.svg Microsoft Windows 7 logo.svg
Starts or stops the data carrier performance counter.
Syntax: diskperf [parameter]
External command in Windows NT
DOSKEY Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Utility that saves all commands entered during a session.
Syntax: DOSKEY [parameter]
External command since DOS 5.0, external command in Windows NT
DOS shell Msdos-logo.svg
MS-DOS file manager.
Syntax: DOSSHELL
External command since DOS 4.0
DRVLOCK IBM logo.svg
Blocks a drive or socket so that the medium cannot be removed.
Syntax: DRVLOCK [laufwerk:|socket:] [/ON|OFF]
External command since PC DOS 5.02
DRVSPACE Msdos-logo.svg
Hard disk
compressor syntax: DRVSPACE [parameter]
External command in MS-DOS 6.22 (in 6.0 to 6.2 DBLSPACE)
DYNALOAD IBM logo.svg
Loads a device driver after system startup.
Syntax: DYNALOAD gerätetreiberdatei [parameter]
External command since PC DOS 7

E.

E. IBM logo.svg
Starts the PC DOS editor.
Syntax: E [datei]
External command since PC DOS 6.1
EAUTIL Icon-os-2.svg
Manages extended OS / 2 attributes.
Syntax: EAUTIL datendatei holdatei [parameter]
Command in OS / 2
EDIT Msdos-logo.svg
Starts the MS-DOS Editor
Syntax: EDIT [datei]
External command since MS-DOS 5.0, external command in Windows NT (NTVDM)
EDLIN 86-DOS logo.svg Contrived MS-DOS logo.svg
Starts the line editor.
Syntax: EDLIN datei
External command since 86-DOS, external command in Windows NT (NTVDM)
ECHO Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Command that outputs text, e.g. B. echo Text. The special command echo offoften occurs in batch files and hides the display of the commands used.
Syntax: ECHO [ON|OFF] or ECHO nachricht
internal command since DOS 2.0, internal command in Windows NT
EJECT IBM logo.svg
Ejects a medium from a drive.
Syntax: EJECT laufwerk:
External command since PC DOS 5.02
EMM386 Contrived MS-DOS logo.svg
Switches EMM386 support on or off (condition is that the device driver has EMM386.EXEbeen CONFIG.SYSloaded).
Syntax: EMM386 [ON|OFF|AUTO]
External command since DOS 5.0
endlocal Microsoft Windows 7 logo.svg
Pick setlocalup.
Syntax: endlocal
Internal command in Windows NT
EXE2BIN Contrived MS-DOS logo.svg
Converts a .EXEfile into a binary file
Syntax: EXE2BIN exe-datei ausgabedatei
External command since DOS 1.1, external command in Windows NT (NTVDM)
EXIT Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Closes the current command interpreter (command prompt) and returns to the currently running program (only works if it is not the interpreter that was loaded at startup). In Windows, this corresponds to closing the DOS window.
Syntax: EXIT
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT
EXPAND Msdos-logo.svg Microsoft Windows 7 logo.svg
Expands a compressed file.
Syntax: EXPAND quelldatei zieldatei
External command since MS-DOS 5.0, external command in Windows NT

F.

FASTHELP Msdos-logo.svg
Quick help for MS-DOS commands
Syntax: FASTHELP kommando
External command from MS-DOS 6.0 to 6.22
FASTOPEN Contrived MS-DOS logo.svg
Reduces the time it takes to open frequently used files and directories.
Syntax: FASTOPEN laufwerk:[parameter]
External command from DOS 3.3 to 6.3, external command in Windows NT (NTVDM)
FC Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Compares two files.
Syntax: FC datei1 datei2
External command since DOS 3.3, external command in Windows NT
FDISK Contrived MS-DOS logo.svg Icon-os-2.svg
Calls a utility for partitioning hard drives.
Syntax: FDISK [/status|/mbr]
External command since DOS 2.0, command in OS / 2
FIND Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Searches texts for a character string.
Syntax: FIND "text" datei
External command since DOS 2.0, command in OS / 2, external command in Windows NT
findstr Microsoft Windows 7 logo.svg
Searches a file for a string, similar to FIND, with extended parameters.
Syntax: findstr [parameter] string datei(en)
Command in Windows NT
FOR Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Executes a specific command for each file in a file list.
Syntax: FOR %variable IN (dateiliste) DO kommando [kommandoparameter]
Internal command since DOS 2.0, internal command in Windows NT
FORMAT Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Formats a drive.
Syntax: FORMAT laufwerk: [parameter]
External command since DOS 1.0, replaces the internal command CLEARin 86-DOS, command in OS / 2, external command in Windows NT

G

GOTO Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Jump to an interlace mark in a batch processing file.
Syntax: GOTO marke
Internal command since DOS 2.0, internal command in Windows NT
GRAFTABL Contrived MS-DOS logo.svg
Allows DOS to load alternative character sets
Syntax: GRAFTABL [zeichensatz]
External command since DOS 3.0, external command in Windows NT (NTVDM)
GRAPHICS Contrived MS-DOS logo.svg
Loads a program that can print graphics.
Syntax: GRAPHICS druckertyp druckerinformationen [parameter]
External command since DOS 2.0, external command in Windows NT (NTVDM)

H

HELP Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Displays help text for the individual commands. OS / 2 additionally: switches the context-dependent help on and off (help for the command just typed is shown)
Syntax: HELP [thema] or under OS / 2 HELP [ON|OFF|thema]
external command since DOS 5.0, command in OS / 2, external command in Windows NT

I.

IF Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Execute a conditional jump in a batch processing file.
Syntax: IF [NOT] [text1==text2|EXIST datei|ERRORLEVEL nummer] kommando
Internal command since DOS 2.0, internal command in Windows NT
INTERLNK Msdos-logo.svg
Shows the status of interlink devices. To do this INTERLNK.EXEin CONFIG.SYSloaded.
Syntax: INTERLNK [client=[server]]
External command in MS-DOS 6.0 to MS-DOS 7.1
INTERSVR Msdos-logo.svg
Offers support for serial and parallel data and print transmission through redirected devices
Syntax: INTERSVR [parameter]
External command since External command in MS-DOS 6.0 to MS-DOS 7.1

J

JOIN Contrived MS-DOS logo.svg
Mirror a drive in a directory on another drive.
Syntax: JOIN [quelllaufwerk: ziellaufwerk:[zielverzeichnis]]
External command in DOS 3.1 to DOS 5.0

K

KEYB Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Allows the conversion of the keyboard layouts (engl. Keyboard ). The parameter GRcan be used, for example, to switch to the German keyboard, with SGto the German-Swiss keyboard.
Syntax: KEYB [code]
External Command since DOS 3.3, replaced KEYBFR, KEYBGR, KEYBIT, KEYBSPand KEYBUKin DOS 3.0 to 3.2, command in OS / 2, an external command in Windows NT
KEYBFR Contrived MS-DOS logo.svg
Changes the keyboard layout to the French keyboard.
Syntax: KEYBFR
External command in DOS 3.0 to 3.2, replaced by KEYBin DOS 3.3
KEYBGR Contrived MS-DOS logo.svg
Changes the keyboard layout to the German keyboard.
Syntax: KEYBGR
External command in DOS 3.0 to 3.2, replaced by KEYBin DOS 3.3
KEYBIT Contrived MS-DOS logo.svg
Changes the keyboard layout to the Italian keyboard.
Syntax: KEYBIT
External command in DOS 3.0 to 3.2, replaced by KEYBin DOS 3.3
KEYBSP Contrived MS-DOS logo.svg
Changes the keyboard layout to the Spanish keyboard.
Syntax: KEYBSP
External command in DOS 3.0 to 3.2, replaced by KEYBin DOS 3.3
KEYBUK Contrived MS-DOS logo.svg
Changes the keyboard layout to the British keyboard.
Syntax: KEYBUK
External command in DOS 3.0 to 3.2, replaced by KEYBin DOS 3.3
KEYS Icon-os-2.svg
Activate / deactivate receiving and reusing of previously typed commands.
Syntax: KEYS [ON|OFF|LIST]
command in OS / 2

L.

LABEL Icon-os-2.svg Microsoft Windows 7 logo.svg
Designation of a data carrier
Syntax: LABEL [laufwerk:] [datenträgername]
External command since DOS 3.0, command in OS / 2, external command in Windows NT
LINK PC-DOS.svg
BASIC Linker
Syntax: LINK
Command since IBM DOS 1.0
LOADFIX Contrived MS-DOS logo.svg
Loads a program above the first 64 KB of memory and starts the program.
Syntax: LOADFIX datei
External command since DOS 5.0, external command in Windows NT (NTVDM)
LOADHIGH / LH Contrived MS-DOS logo.svg
If a program loads into the high memory area (UMB), it can be lhabbreviated with.
Syntax: LOADHIGH [dateiname]
Internal command since DOS 5.0, internal command in Windows NT (NTVDM)
lfnfor MicrosoftWindows-Logo.svg
Toggles long filename support for the FORcommand.
Syntax: lfnfor [on|off]
Internal command from Windows 95 to Windows ME
lock MicrosoftWindows-Logo.svg
Locks a data carrier exclusively for one application.
Syntax: LOCK [laufwerk:]
Internal command from Windows 95 to Windows ME

M.

MAKEINI Icon-os-2.svg
New generation of OS / 2 start configuration files ( OS2.INIor OS2SYS.INI)
Syntax: MAKEINI [OS2.INI|OS2SYS.INI]
Command in OS / 2
MD / MKDIR Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Creates a directory ( make directory ).
Syntax: MD verzeichnis
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT
MEM Contrived MS-DOS logo.svg
Shows the size of the used and still free main memory in the system (English memory ).
Syntax: MEM [parameter]
External command since DOS 4.0, external command in Windows NT (NTVDM)
MEMMAKER Msdos-logo.svg
Memory management for automatic configuration of CONFIG.SYSand AUTOEXEC.BATfiles.
Syntax: MEMMAKER [parameter]
External command in MS-DOS 6.0 to MS-DOS 7.01
MIRROR Msdos-logo.svg
Stores information about one or more drives.
Syntax: MIRROR [laufwerk:]
External command since MS-DOS 5.0
FASHION Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Configuration of system devices.
Syntax: MODE [gerät] [parameter]
External command since DOS 1.0, command in OS / 2, external command in Windows NT
MORE Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Pages the contents of the specified file or standard input. Example: type readme.txt | more
Syntax: MORE < datei or kommando | MORE
external command since DOS 2.0, command in OS / 2, external command in Windows NT
MOVE Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Moves files or renames a directory.
Syntax: MOVE [dateiname|pfadname] zielort
External command since DOS 6.0, command in OS / 2
MSAV Msdos-logo.svg
Antivirus program
syntax: MSAV
External command in MS-DOS 6.0 to MS-DOS 6.22
MSBACKUP Msdos-logo.svg
Backup program, replaces BACKUPand RESTORE
syntax: MSBACKUP
External command in MS-DOS 6.0 to MS-DOS 7.01
MSCDEX
Loads CD-ROM support.
Syntax: MSCDEX /D:driver [parameter]
External command since DOS 6.0
MSD Msdos-logo.svg
Show system information
Syntax: MSD
External command in MS-DOS 6.0 to MS-DOS 7.01

N

NLSFUNC Contrived MS-DOS logo.svg
Loads country-specific information.
Syntax: NLSFUNC [informationsdatei]
External command since DOS 3.3, external command in Windows NT (NTVDM)
ntcmdprompt Microsoft Windows 7 logo.svg
Defines that the Windows NT command line interpreter should be started cmd.exeinstead of COMMAND.COMafter a TSR program has been loaded or when an MS-DOS application calls the command line interpreter.
Syntax: ntcmdprompt
External command in Windows NT up to?

P

PATCH Icon-os-2.svg
Applies a patch supplied by IBM.
Syntax: PATCH dateiname [/A]
command in OS / 2
PATH Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Outputs PATHor reassigns the value of the environment variable . The PATHvariable contains a list of directories in which entered commands (or programs) are searched for if no path was explicitly placed in front of them. For example Path=C:\DOS, programs in the C: \ DOS directory can be called from any directory without specifying a full path.
Syntax: PATH verzeichnis[;...] or PATH ;
internal command since DOS 2.0, internal command in Windows NT
BREAK 86-DOS logo.svg Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Pauses batch processing until the user has pressed a key.
Syntax: PAUSE
Internal command since 86-DOS, internal command in Windows NT
popd Microsoft Windows 7 logo.svg
Changes to the pushdfolder saved in the stack by.
Syntax: pushd
Internal command in Windows NT
POWER Msdos-logo.svg
Energy manager to minimize the processor load by using the IDLE status. To do this POWER.EXEin CONFIG.SYSare loaded.
Syntax: POWER [ADV[:MAX|REG|MIN]|STD|OFF]
External command in MS-DOS 6.0 to 6.22
PRINT Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Print a file.
Syntax: PRINT [parameter] datei
External command since DOS 2.0, command in OS / 2, external command in Windows NT
PROMPT Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Command to change the display of the command line. With early DOS versions the standard setting was $N$G(show only current drive) and had to be prompt $P$Gconfigured each time the computer was started in order to activate the constant display of the current subdirectory.
Syntax: PROMPT [text]
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT
PSTAT Icon-os-2.svg
Lists processes, threads etc.
Syntax: PSTAT [Parameter]
Command in OS / 2
pushd Microsoft Windows 7 logo.svg
Saves the current folder in the stack, with you popdswitch to this folder.
Syntax: pushd
Internal command in Windows NT

Q

QBASIC Msdos-logo.svg
Starts Microsoft QBASIC
Syntax: QBASIC [parameter]
External command since MS-DOS 5.0, external command in Windows NT (NTVDM)
QCONFIG IBM logo.svg
Display system information.
Syntax: QCONFIG [parameter]
External command since PC DOS 6.1

R.

RD / RMDIR Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Deletes an empty directory ( remove directory ).
Syntax: RD verzeichnis
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT
RECOVER Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Tried to extract information from a damaged or defective floppy disk (in Windows NT: only files are supported).
Syntax: RECOVER datei|laufwerk:
External command from DOS 2.0 to 5.0, command in OS / 2, external command in Windows NT
SEM Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Allows comments ( remark ) in batch files, the rest of the line is ignored.
Syntax: REM [kommentar]
Internal command since DOS 1.0, command in OS / 2, internal command in Windows NT
REN / RENAME 86-DOS logo.svg Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Renaming a file.
Syntax: REN [von] [nach]
Internal command since 86-DOS ( RENAME), internal command since DOS 1.1 ( REN), command in OS / 2, internal command in Windows NT
REPLACE Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Replaces files.
Syntax: REPLACE quelldatei zielort [parameter]
External command since DOS 3.2, command in OS / 2, external command in Windows NT
RESTORE Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Restores a BACKUPbackup made with .
Syntax: RESTORE laufwerk1: laufwerk2:[zielort]
External command since DOS 2.0, command in OS / 2, external command in Windows NT to NT 4
REXX IBM logo.svg
Starts a REXX program.
Syntax: REXX datei [parameter]
External command since PC DOS 7
REXXDUMP IBM logo.svg
Outputs variables of an active REXX procedure
Syntax: REXXDUMP
External command since PC DOS 7
RMVIEW Icon-os-2.svg
Shows information about system resources (device drivers, memory areas, hardware etc.)
Syntax: RMVIEW [parameter]
Command in OS / 2

S.

SCANDISK Msdos-logo.svg
Checks a disk for errors.
Syntax: SCANDISK [laufwerk:] [parameter]
External command since MS-DOS 6.2
SELECT Contrived MS-DOS logo.svg
Formats a data carrier, installs the system files on it and configures the regional settings.
Syntax: SELECT quelllaufwerk: ziellaufwerk: landescode tastaturcode
External command from DOS 3.0 to 4.0 (contained in the additional diskette up to MS-DOS 6.22)
SET Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Outputs the environment variable or assigns a new value to the specified one.
Syntax: SET [variable=[text]]
Internal command since DOS 2.0, internal command in Windows NT
SETBOAT Icon-os-2.svg
Administration of the OS / 2 boot manager
Syntax: SETBOOT [parameter]
Command in OS / 2
setlocal Microsoft Windows 7 logo.svg
Defines that environment variables are only saved locally from now on. With endlocalit is canceled.
Syntax: setlocal
Internal command in Windows NT
SETVER Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Makes a program think another DOS version. To do this SETVER.EXEin CONFIG.SYSloaded.
Syntax: SETVER [parameter]
External command since DOS 5.0, external command in Windows NT (NTVDM)
SHARE Contrived MS-DOS logo.svg
Installs file sharing and file locking on a hard disk
Syntax: SHARE [parameter]
External command since DOS 3.0, external command in Windows NT (NTVDM)
SHIFT Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Changes the position of the variables in a batch processing file.
Syntax: SHIFT
Internal command since DOS 2.0, internal command in Windows NT
SIZER Msdos-logo.svg
Only MEMMAKERused by
Syntax: SIZER [command]
External command in MS-DOS 6.0 to MS-DOS 7.01
SMARTDRV Msdos-logo.svg
Starts and manages the hard disk cache program.
Syntax: SMARTDRV laufwerk [parameter]
External command since MS-DOS 6.0
SORT Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Outputs an input sorted.
Syntax: SORT < datei or kommando | SORT
external command since DOS 2.0, command in OS / 2, external command in Windows NT
SPOOL Icon-os-2.svg
Redirects printer output.
Syntax: SPOOL [/D:gerät1] [/O:gerät2]
command in OS / 2
begin Icon-os-2.svg MicrosoftWindows-Logo.svg Microsoft Windows 7 logo.svg
Starts an OS / 2 or Windows program in a new window.
Syntax: start [Parameter] [Programm oder Dateiname]
command in OS / 2; Internal command from Windows 95 (initially via the one inherited from Windows 3.11start.exe ) and from Windows NT (as a command via the supplied cmd.exe )
SUBST Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Assigns a directory its own drive letter.
Syntax: SUBST [laufwerk1: laufwerk2:[verzeichnis]]
External command since DOS 3.1, external command in Windows NT
SYS 86-DOS logo.svg Contrived MS-DOS logo.svg
Installs the DOS startup files and the command interpreter on the specified drive, making the drive bootable.
Syntax: SYS [quelllaufwerk:] ziellaufwerk:
External command since 86-DOS
SYSLEVEL Icon-os-2.svg
Displays the current OS / 2 service level.
Syntax: SYSLEVEL
command in OS / 2
SYSLOG Icon-os-2.svg
Display or print out the system log.
Syntax: SYSLOG [parameter]
command in OS / 2

T

TIME Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Outputs or changes the system time.
Syntax: TIME [zeit]
External command in DOS 1.0, internal command since DOS 1.1, command in OS / 2, internal command in Windows NT
title Microsoft Windows 7 logo.svg
Sets the title of the console window of the cmd.exe.
Syntax: title text
Internal command in Windows NT
TREE Contrived MS-DOS logo.svg Microsoft Windows 7 logo.svg
Shows the directory structure from the directory . If you do not specify a directory, the current one is displayed.
Syntax: TREE [verzeichnis]
External command since DOS 2.0, external command in Windows NT
TRUENAME Contrived MS-DOS logo.svg
Displays the valid file name and the expanded path, including the original path in the case of redirected paths (e.g. through Subst or network drives). Truename shortens excessively long file names according to the 8.3 convention, converts lowercase to uppercase letters, also removes the wildcard * to multiple? (e.g. * .ASM to ????????. ASM) ..and .entries from the path entered. If TRUENAME is specified without parameters, it only refers to the current path.
Syntax: TRUENAME datei
Undocumented internal command since DOS 4.0
TYPE 86-DOS logo.svg Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Outputs the content of a file. If you chain the command with the program more(which outputs its input page by page), the display pauses when the screen is full. The corresponding command is . Syntax: Internal command since 86-DOS, command in OS / 2, internal command in Windows NTtype <Dateiname> ¦ more
TYPE datei

U

UNDELETE Contrived MS-DOS logo.svg Icon-os-2.svg
Restores a DELfile that was deleted with .
Syntax: UNDELETE datei [parameter]
External command since DOS 5.0, command in OS / 2
UNFORMAT Msdos-logo.svg
Restores a FORMATdrive formatted with
Syntax: UNFORMAT laufwerk: [parameter]
External command since MS-DOS 5.0
unlock MicrosoftWindows-Logo.svg
Cancels the one LOCKfor the specified volume.
Syntax: UNLOCK [laufwerk:]
Internal command from Windows 95 to Windows ME
UNPACK Icon-os-2.svg
Decompresses files from OS / 2 installation
disks. Syntax: UNPACK datei zielort [parameter]
Command in OS / 2

V

VER Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Output of the operating system version used.
Syntax: VER
Internal command since DOS 2.0, external command in DOS 8.0, command in OS / 2, internal command in Windows NT
VERIFY Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Switches the checking of written data on or off . The default is off. The current setting is displayed without parameters.
Syntax: VERIFY [ON|OFF]
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT
VIEW Icon-os-2.svg
Displays the contents of an online manual.
Syntax: VIEW datei thema
command in OS / 2
VSAFE Msdos-logo.svg
On-access virus scanners related to MSAV.
Syntax: VSAFE
Internal command in MS-DOS 6.0 to 6.22
VOL Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Displays the name and serial number (if any) of the specified or current disk.
Syntax: VOL [laufwerk:]
Internal command since DOS 2.0, command in OS / 2, internal command in Windows NT

X

XCOPY Contrived MS-DOS logo.svg Icon-os-2.svg Microsoft Windows 7 logo.svg
Further development of the COPYcommand with more options.
Syntax: XCOPY quelldatei|quellverzeichnis|quelllaufwerk [ziel]
External command since DOS 3.2, command in OS / 2, external command in Windows NT
xcopy32 MicrosoftWindows-Logo.svg
Further development of the XCOPYcommand, which also copies hidden and system files.
Syntax: XCOPY32 quelldatei|quellverzeichnis|quelllaufwerk [ziel]
External command from Windows 95 to Windows ME

See also

Wikibooks: Batch programming: Important DOS commands  - learning and teaching materials