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
escape the haracter '2'
in linux: echo \2>file.txt
echo \2>file.txt
in windows: echo ^2>file.txt
echo ^2>file.txt
in windows this also will work
echo.2>file.txt no space between echo and the dot
echo.2>file.txt