Batch edit

Built-in commands

These commands are all built in to the command interpreter itself, and cannot be changed. Sometimes this is because they require access to internal command interpreter data structures, or modify properties of the command interpreter process itself.

CommandDescription
ASSOCAssociates an extension with a file type (FTYPE).
BREAKSets or clears extended CTRL+C checking.
CALLCalls one batch program from another.
CD, CHDIRDisplays or sets the current directory.
CHCPDisplays or sets the active code page number.
CLSClears the screen.
COLORSets the console foreground and background colors.
COPYCopies files.
DATEDisplays and sets the system date.
DEL, ERASEDeletes one or more files.
DIRDisplays a list of files and subdirectories in a directory.
ECHODisplays messages, or turns command echoing on or off.
ELSEPerforms conditional processing in batch programs when "IF" is not true.
ENDLOCALEnds localization of environment changes in a batch file.
EXITQuits the CMD.EXE program (command interpreter).
FORRuns a specified command for each file in a set of files.
FTYPESets the file type command.
IFPerforms conditional processing in batch programs.
MD, MKDIRCreates a directory.
MOVEMoves a file to a new location
PATHSets or modifies the PATH environment
PAUSECauses the command session to pause for user input.
POPDChanges to the drive and directory popped from the directory stack
PROMPTSets or modifies the string displayed when waiting for input.
PUSHDPushes the current directory onto the stack, and changes to the new directory.
RD / RMDIRRemoves the directory.
REMA comment command. Unlike double-colon (::), the command can be executed.
REN / RENAMERenames a file or directory
SETSets or displays shell environment variables
SETLOCALCreates a child-environment for the batch file.
SHIFTMoves the batch parameters forward.
STARTStarts a program with various options.
TIMEDisplays or sets the system clock
TITLEChanges the window title
TYPEPrints the content of a file to the console.
VERShows the command processor, operating system versions.
VERIFYVerifies that file copy has been done correctly.
VOLShows the label of the current volume.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:

  ↑ ↓ to navigate     ↵ to select     Esc to close