Search found 1 match

by tsip
21 Jun 2013 12:05
Forum: DOS Batch Forum
Topic: batch variable progress bar string manipulation
Replies: 4
Views: 6112

batch variable progress bar string manipulation

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...