So I was making a batch file that allows to make other people think you can hack, and in one part it says in the CMD window Starting hack in 10... Starting hack in 9... etc. What I want to do is to instead of appearing on different lines I want the lines to change by deleting the last line that's showing on the CMD window. here's how the code for that part of the program looks like right now
echo Starting hack in 10...
timeout /t 1
echo Starting hack in 9...
timeout /t 1
echo Starting hack in 8...
timeout /t 1
echo Starting hack in 7...
timeout /t 1
echo Starting hack in 6...
timeout /t 1
echo Starting hack in 5...
timeout /t 1
echo Starting hack in 4...
timeout /t 1
echo Starting hack in 3...
timeout /t 1
echo Starting hack in 2...
timeout /t 1
echo Starting hack in 1...
timeout /t 1
tree
echo Hacking completed!
pause
I was also searching for a way to do it on stack overflow but I didn't find anything helpful so I created this account JUST TO MAKE THIS QUESTION. Please I need answers.
Edit: This question was answered, here's the link to the program with the problem fixed (if it says that it contains a virus, don't worry it's just a false positive (It's an exe file because I converted the file with BAT2EXE)): https://drive.google.com/file/d/1tg73Aa-Yi3So6OJYvYUPDdL0eAaqG9PL/view?usp=sharing