The file looks like this:
@echo off
set /a varOne=1
set /a varTwo=2
echo %varOne% %varTwo%>>test.txt
start test.txt
varOne and varTwo can be any number.
My problem is that it doesn't write "1 2" to the test.txt as I'd expect. When I remove varTwo, it looks like this:
@echo off
set /a varOne=1
echo %varOne%>>test.txt
start test.txt
This does do as I'd expect. It writes "1" to test.txt
To allow for both numbers to be written to the file I can just remove the space between both variables. But For my situation, I need a space in between the variables.
How do I write 2 variables with a space in between them to a text file?
Thanks.