In a batch file, I want to write a "counter" to the screen without scrolling stuff off the screen. I have
FOR /L %%i IN (1,1,1000) DO (
< NUL set /P="Count= %%i"
)
{There is no space between < LT> NUL
but this stops the line from showing in the question.}
This command doesn't add a LF or CR, but I do want a CR, just no LF.
The end result should be
Count= X
where X is "counting" from 1 to 1,000.