Partager via


Command Processor Commands

The following table shows the command processor commands, with a description of the purpose of each.

Programming element Description
ATTRIB This command displays or changes the attributes of a file.
CALL This command calls one batch program from another.
CHDIR, CD This command displays the name of the current directory, or changes the current directory.
CLS This command clears the screen.
COPY This command copies one or more files to another directory.
DATE This command displays or sets the date.
DIR This command displays the files and subdirectories that a directory contains.
ECHO This command displays a message, or sets whether or not the command processor echoes the commands that the user enters.
ERASE, DEL This command deletes one or more files.
EXIT This command exits the command processor shell.
GOTO This command directs the command processor to a labeled line in a batch program.
HELP This command displays a list of available commands.
IF This command performs conditional processing in batch programs.
MKDIR, MD This command creates a directory.
MOVE This command moves files from one directory to another directory.
net This command performs network-related operations.
PATH This command displays or sets a search path for executable files.
PAUSE This command suspends the processing of a batch program.
PROMPT This command changes the prompt for the command processor.
PWD This command prints current directory path.
REM This command records comments in a batch file.
RENAME, REN This command renames a file or files.
RMDIR, RD This command removes a directory.
SET This command sets or removes an environment variable, or displays the values of all of the environment variables.
SHIFT This command changes the position of replaceable parameters in a batch file.
START This command starts a separate window that runs a specified application or command.
TIME This command displays or sets the system time.
TITLE This command sets the title of the command processor window.
TYPE This command displays the contents of one or more text files.

See Also

Command Processor Shell

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.