Windows – Easiest way to add a text to the beginning of another text file in Command Line (Windows)

command-linetext-fileswindows

What is the easiest way to add a text to the beginning of another text file in Command Line (Windows)?

Best Solution

echo "my line" > newFile.txt
type myOriginalFile.txt >> newFile.txt
type newFile.txt > myOriginalFile.txt

Untested. Double >> means 'append'