Hand Held Products 7200/UG User Manual

Page 172

Advertising
background image

A P P E N D I X C G S - D O S C O M M A N D S

Rev 1.3

172

172

172

172

ECHO

The ECHO command has two functions; namely, control of the ECHO flag, and

displaying messages in batch files. ECHO mode controls the command processor's

echoing of commands in batch files. If ECHO mode is on, then commands read from

batch files are automatically echoed to the screen before they are executed. If ECHO

mode is off, then commands are not echoed as they are executed. To display the current

ECHO flag status, use the ECHO command without any parameters. To display a

message from a batch file, use the ECHO command with a non-empty string to be

displayed. The special form of the ECHO command with a period (“.”) immediately

following the word ECHO (no intervening space) causes a blank line to be echoed.

Syntax:

ECHO [ONlOFFlstring]

EXIT

The EXIT command terminates the current command shell and reverts control to the

previous shell, provided that the current command shell is not the first one loaded in the

system. The very first shell cannot be terminated with EXIT. If executed from a batch

file, EXIT will terminate the batch file in a controlled manner causing control to be

transferred to the keyboard user.

Syntax:

EXIT

GOTO

The GOTO command causes the command processor to start executing commands that

follow the specified label, in the current batch file. Labels can be inserted anywhere in

batch files, and take the following form: “: label”.

Syntax: GOTO label

IF

The IF command causes a command to be executed if (or if NOT) a condition is TRUE.

Syntax:

IF [NOT] ERRORLEVEL n statement

IF [NOT] EXIST filename statement

Advertising