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
Use (ECHO 2)>>file.txt. This will output 2 without any spaces.
(ECHO 2)>>file.txt
2