Some commands are particularly suited to batch file processing. Each command is explained in detail in the Command Reference. Here is a list of some of the commands you might find most useful:
activates another window |
|
produces a sound of any pitch and duration through the computer's speaker |
|
set a breakpoint in the batch debugger |
|
executes one batch file from within another |
|
terminates all batch file processing |
|
clears the TCC window |
|
sets the TCC display colors |
|
send text to the debugger |
|
defers a command until the batch file ends |
|
starts a loop. The loop can be based on a counter, or on a conditional expression, strings, or files. ENDDO terminates the loop |
|
draws a box on the screen |
|
draws horizontal lines on the screen |
|
draws vertical lines on the screen |
|
sends text to the standard output device |
|
sends text to the standard output device |
|
sends text to the standard error device |
|
sends text to the standard error device |
|
restores the settings that were saved and allows specific variables to be exported (see SETLOCAL) |
|
ends the block of text started with TEXT |
|
writes a string to the Windows application event log |
|
executes commands for each file that matches a set of wildcards, or each entry in a list |
|
executes a subroutine inside a batch file (see RETURN). |
|
branches to a different location in the batch file |
|
execute commands based on a conditional expression |
|
collects keyboard input and store it in environment variables |
|
collects keyboard input and store it in environment variables |
|
send an instant message (IM) |
|
sends keystrokes to applications |
|
changes the batch file operating mode |
|
define variables local to a library function or batch file |
|
displays a dialog box with standard buttons like Yes, No, OK, and Cancel, and returns the user's selection |
|
initializes error handling for Ctrl-C / Ctrl-Break, or for program and command errors |
|
Display floating text on the desktop |
|
displays a message and waits for the user to press a key |
|
creates a customized DIR-like display of directory contents |
|
plays Windows .AVI files |
|
plays Windows sound files |
|
send a message to a window |
|
displays a dialog box for text input |
|
ends the current batch file and optionally returns an exit code |
|
places a remark in a batch file |
|
terminates a subroutine (see GOSUB) |
|
positions the cursor on the screen and optionally prints a message at the new location |
|
displays a message in color |
|
sends an email message |
|
saves the current disk drive, default directory, environment, alias list, and special character settings (see ENDLOCAL). |
|
changes the numbering of the batch file parameters |
|
sends messages using the SMPP protocol |
|
sends a message to an alphanumeric pager |
|
starts another session or window |
|
selects a group of statements to execute based on the value of a variable |
|
displays a block of text (see ENDTEXT) |
|
starts or reads a stopwatch |
|
changes the window title |
|
displays a vertical message in color |
|
Query the Windows Management Instrumentation interface |
|
Run WMI methods on local or remote machines |
These commands, along with the internal variables and variable functions, make the enhanced batch file language extremely powerful.
These commands, along with the internal variables and variable functions, make the enhanced batch file language extremely powerful.