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