This page was last modified 16:16, 1 June 2020 by Mars2000you. Based on work by Gdx.



Displays the specified text on the screen under MSX-DOS 2 / Nextor.

Can also display

Note: This command should not be confused with the ECHO state in batch files, which is controlled by an environment variable called ECHO.


  • ECHO <Text>
  • ECHO %<Variable>%
  • ECHO %<VariableFunction[arguments]>%


<Text> is the text to display on the screen. If no text is given, then just a blank line is output.

<Variable> can be the name of a specific parameter for the MSX-DOS 2 environmment (since COMMAND2.COM 2.31) or an internal variable (since COMMAND2.COM 2.40).

The value of an variable is simply a string of arbitrary characters up to a maximum length of 255. No processing is performed on the characters and so the casing of characters is preserved.

When a specified environment variable does not has been defined or when you have removed it from the environment variable list, you will get a blank line. Only a few environment variables are defined by default when you launch the MSX-DOS 2 system. It depends also of the commands in the AUTOEXEC.BAT and REBOOT.BAT batch files.

Check the SET page + the MSX-DOS 2 Environment Variables and MSX-DOS 2 Internal Variables sections for more info and examples.

<VariableFunction> is the name of an internal variable function (since COMMAND2.COM 2.40). It includes parameters (arguments) that need to be enclosed between square brackets. Instead of a parameter, a variable function can also include another variable function, or internal variable, whose value serves as a parameter for the previous variable function.

Check the MSX-DOS 2 Internal Variable Functions section for more info and examples.


With MSX-DOS 2.20 and higher

A>ECHO AUTOEXEC batch file executed
AUTOEXEC batch file executed

With MSX-DOS 2 with COMMAND2.COM 2.31 and higher

A>SET MyName=Alex
A>ECHO Hello %MyName%, how are you?
Hello Alex, how are you?

With MSX-DOS 2 with COMMAND2.COM 2.40 and higher

See more examples in the MSX-DOS 2 Internal Variables and MSX-DOS 2 Internal Variable Functions sections.

To return the free amount of disk space on the current active drive:


Related to



MSX-DOS 2 / Nextor with COMMAND2.COM v2.20 and higher