Command Commands Used In Batch File


Command Commands Used In Batch File


Command
Description
Call
Used to call one batch file from within another batch file without stopping the processing of the original batch file.
Choice
Pauses batch file processing and displays a prompt to the user to choose one of the given options using a specified key.
Echo
Turns the echo on or off. Also used to display a message.
Endlocal
Ends the localization of environment variables changed by the Setlocal command. The variables are set back to their original values.
For
Repeats the processing of a command for each file in a group of files.
Goto
Directs the batch processing to a specified line identified by a label. After jumping to the specified command line, the processing continues with the next command.
If
Used to perform conditional processing of commands in a batch file.
Pause
Suspends the processing of the batch file and prompts the user to press any key in order to continue processing it.
Rem
Used to add comments in batch files. The text after the Rem command is not processed.
Setlocal
Starts the localization of environment variables in a batch file until a matching Setlocal command is found.
Shift
Used to change the position of batch parameters in a batch file.


Comments

Popular posts from this blog

How to use DIR Command

How to Write Your First Batch Script Progarm

How to use ECHO Command