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
Or you can use the delayed expansion
setlocal EnableDelayedExpansion set "var=2" echo(!var!>> file.txt