• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Understanding Batch Files > Using Batch File Commands

Using Batch File Commands

DOS includes special commands that often are used in batch files. Table 16.1 lists batch file commands.

Table 16.1. Batch File Commands
Command Action
@ Suppresses the display of the command line onscreen
CALL Runs another batch file and returns to the original batch file
CHOICE Halts processing until a specified key is pressed (use the IF ERRORLEVEL command to determine which key was pressed)
ECHO Turns on or off the display of batch commands as they execute; also can display a message onscreen
FOR..IN..DO Permits the use of the same batch command for several files (the execution “loops”)
GOTO Jumps to the line following the specified label in a batch file
IF Permits conditional execution of a command
PAUSE Displays a message and halts processing until a key is pressed
REM Enables you to insert comments into a batch file that describe the purpose of an operation
SHIFT Shifts the command-line parameters one parameter to the left



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint