How do I write a statement in dos using shell script to display a word?
I want to write a shell script in dos to display the word "Hello"
use the ECHO command:
echo Hello
or
@echo Hello
(@ keeps the command line from printing out)
"echo" with a dot:
echo.
displays a blank line
you can also add
pause>nul
to keep the shell script from closing (until a key is pressed)
so the ideal script would look something like:
@echo Hello
@pause>nul
or
@echo off
echo Hello
pause>nul