I need to output some parameter data from a batch file. I can redirect output, no problem. My issue is that I need to ouput something like
set value1=0set value2=1echo value1 = %value1%>>temp.txtecho value2 = %value2%>>temp.txt
without a space after the parameter value
But this will not redirect properly due to CMD assuming that %value#% is the redirection value.
So if I do something like
echo value1 = %value1% >>temp.txtecho value2 = %value2% >>temp.txt
It works, but I get a space after the parameter value and the next app that reads this file is not under my control and errors out with spaces after the values.
I must be missing something simple.