Here's my code, (i tried to make a progress bar but failed).
@echo off & setlocal enabledelayedexpansion
set bar=**********
set cnt=0
:LOOP
cls
set /A cnt+=1
echo.Progress:!bar:~0,%cnt%!
ping -n 1 www.google.com > nul 2>&1
if "%cnt%" NEQ 10 goto :LOOP
echo.finished.
pause > nul
exit /b
I get this as output:
bar:~0,1
bar:~0,2
bar:~0,3
etc.. etc..
I want it to go like:*, **, ***
etc.. basically increase the asterisk by 1 every second.
try this: