How do I echo the number 2 into a file, from a batch script?
This doesn\'t work:
Echo 2>> file.txt
because 2&g
2&g
Based on this answer, if anyone is wondering how to do this:
echo "command1 && command2" > file.txt
with no qoutes in file.txt then you do it like this:
file.txt
echo command1 ^&^& command2 > file.txt
Tested on Windows Server 2003.