Solved How i can get progress bar in a Batch File

Asustek computer inc. / ASUS
April 7, 2018 at 04:59:37
Specs: Windows 8.1 with Bing, CPU Specs: Intel Celeron N2840 | RAM Specs using CPU-Z, Type: DDR3 Size: 4GB
How can i make a progress bar using Batch file (.bat)? Please i need it for an app! I will wait for help

See More: How i can get progress bar in a Batch File

Reply ↓  Report •

#1
April 7, 2018 at 13:30:16
✔ Best Answer
::start-of-loading.bat
@echo off
for /l %%a in (1,1,100) do cls&echo Loading...%%a %% done&timeout 1 /nobreak >nul
pause
::end-of-loading.bat


what is this for?
post your .bat file

i5-6600K[delid]@4.8GHz/4.5GHz@1.385v | 2x4GB Crucial-DDR4-2133@15-15-15-35 1T 2800MHz@1.37v
ASUS Z170K | Samsung 250GB SSD 850 EVO
MSI Armor RX 570 4GB@1411@1.25v/1930 BiosMod


Reply ↓  Report •

#2
April 7, 2018 at 20:29:43
You should tell us what's the purpose of this progress bar ? and post what did you tried until now as code !
a pseudocode :

@echo off
title Example of a Progress bar
mode con cols=100 lines=9 &color 0A
set Msg=Loading
:Update_BAR
cls
set /a FULL+=1
set BAR=%BAR%#
set /a NB_BAR+=1
echo. &echo.
echo %BAR%
echo                                         %Msg% .... %NB_BAR%%%
echo %BAR%
echo. 
if %FULL%==100 goto :END_BAR
@ping localhost -n 1 >nul
goto :Update_BAR
:END_BAR
Timeout /T 1 /nobreak>nul
Exit


Reply ↓  Report •

#3
April 8, 2018 at 05:19:54
I just wanted a progress bar because i was making an MS-DOS Setup Simulator...

Reply ↓  Report •
Related Solutions


Ask Question