Clear only one line from a batch file

0

My question is whether there is any way to delete just one line from several. For example : The command prints three numbers on the prompt screen:

echo 1
echo 2
echo 3

And then, it just deletes the printed "2", and the other two numbers are still there.

What is it like?

    
asked by anonymous 03.12.2017 / 17:48

1 answer

1

Really delete has no way.

What can be done is to give the command cls and reprint on the screen without the second line.

Example:

@echo off

echo 1
echo 2
echo 3

pause
rem Apaga tudo que foi impresso.
cls

echo 1
echo 3

pause > nul
    
05.12.2017 / 21:44