I have a command called compare which returns a number. I want to print some spaces and then "text" then the number to a file. Expected output is like:
    text1
My code prints text1 with no spaces
set "output=     text"
<nul set /p "=!output!" >> "%resultFile%"
compare -metric NCC "a.jpg" "b.jpg" "c.jpg" 2>> "%resultFile%"
I tried to print a tab character echo <TAB> >> "%resultFile%" but it gave me an error ">> was unexpected at this time." What should I do? Thanks in advance!
 
     
    