message, where X is the digit informing about how many seconds are left"Waiting for X seconds, press a key to continue...
I managed to procure such script
Code: Select all
@echo off
echo.
echo. Info about what the script will do
echo.
setlocal
set "countdown=3"
echo. Executing in:
echo.
for /L %%i in (%countdown%,-1,1) do (
<nul set /p "=%%i "
ping 127.0.0.1 -n 2 > nul
cls
echo. Executing in:
echo.
)
:: Here be dragons
echo. The script has been executed
echo.
echo. [Press any key to close this CMD window]
echo.
pause > nul
[Due to how QUOTE area works on this forum I am using >>_<< sign to represent >> << i.e. every underscore stands in for one white space]
Because it shows at step
#1
[thus at the very beginning it works almost as intended by me as it only lacks three spaces before the digit]_
___Info about what the script will do
___Executing in:
3
#2
[here it starts to break its envisioned visual design]___Executing in:
2
#3
___Executing in:
1
#4
___Executing in:
___The script has been executed
___[Press any key to close this CMD window]
_
I want it to show at step
#1
_
___Info about what the script will do
___Executing in:
___3
#2
_
___Info about what the script will do
___Executing in:
___2
#3
_
___Info about what the script will do
___Executing in:
___1
#4
_
___The script has been executed
___[Press any key to close this CMD window]
_
Does anyone know how to do that?