@echo off
:: Simulate progress, with display of remaining time, completed progress, and progress bar
:: code by bg 2006-10-8 CMD@XP
color 1f
title.
mode con lines=10
rem Progress bar ▉▉▉▉▉
set work=0
set n=0
set mo=0
set number=0
rem all is the total number
set all=60
set time=%all%
:show
:check
if %number% GTR %mo% set num=%num%▉&set /a mo=%mo%+1&goto check
:2
cls
echo Progress: %n% / %all% Remaining time:%time% seconds
echo.
echo.
echo Completed %work% %%%
echo.
if not "%num%"=="" echo %num%
if not "%num%"=="" echo %num%
if %work%==100 goto end
ping 127.1 -n 1 >nul
set /a n=%n%+1
set /a time=%all%-%n%
set /a work=(%n%)*100/(%all%)
set /a number=%work%/3
set /a number=%number%+1
goto show
endlocal
:end
endlocal
pause>nul
Please help me analyze the thinking of this batch processing. I really can't understand it. There is no content in the show tag and 2 tag above. Why? The check tag is not seen being referenced in the subsequent code. Then how can it be executed? Please help me analyze, thank you thank you!!!
:: Simulate progress, with display of remaining time, completed progress, and progress bar
:: code by bg 2006-10-8 CMD@XP
color 1f
title.
mode con lines=10
rem Progress bar ▉▉▉▉▉
set work=0
set n=0
set mo=0
set number=0
rem all is the total number
set all=60
set time=%all%
:show
:check
if %number% GTR %mo% set num=%num%▉&set /a mo=%mo%+1&goto check
:2
cls
echo Progress: %n% / %all% Remaining time:%time% seconds
echo.
echo.
echo Completed %work% %%%
echo.
if not "%num%"=="" echo %num%
if not "%num%"=="" echo %num%
if %work%==100 goto end
ping 127.1 -n 1 >nul
set /a n=%n%+1
set /a time=%all%-%n%
set /a work=(%n%)*100/(%all%)
set /a number=%work%/3
set /a number=%number%+1
goto show
endlocal
:end
endlocal
pause>nul
Please help me analyze the thinking of this batch processing. I really can't understand it. There is no content in the show tag and 2 tag above. Why? The check tag is not seen being referenced in the subsequent code. Then how can it be executed? Please help me analyze, thank you thank you!!!

