echo
Syntax
echo[-on|-off]
echo
message
Description
Controls whether script commands are displayed as they are read from the script file, and prints the given message to the display.
Options
-on
Enables the display when reading commands from script files.
-off
Disables the display when reading commands from script files.
message
Specifies a message to display.
Usage
The first form of this command controls whether or not script commands display as they are read from the script file. If no argument is given, the current on
or
off
status displays. The second form of the command prints the specified message to the display.
This command does not change the value of the environment variable
lasterror
.
Examples
To display a message string of
Hello World
:
fs0:\> echo Hello World
Hello World
To turn command echoing on:
fs0:\> echo -on
To execute
HelloWorld.nsh
, and display when reading lines from the script file:
fs0:\> HelloWorld.nsh
+HelloWorld.nsh> echo Hello World
Hello World
To turn command echoing off:
fs0:\> echo -off
To display the current echo setting:
fs0:\> echo
Echo is off