echo command in windows code example
Example 1: echo file in windows command
Just use type command in Windows as follows:
C:\>echo hi > a.txt
C:\>echo bye > b.txt
C:\>type a.txt b.txt > c.txt
C:\>type c.txt
Example 2: bat turn echo off
The following can be used to turn echo off in a bat file at any point:
@echo off
It can be turned on again at any point with:
@echo on