|
Answer» hi with your help now i've finished 80% of my program thank you all ===================================================== well my program should search and do such a heavy duty so it's possible that take a while to finish it's job but now i need a progress bar that shows how much percent has been passed and how much remains i wonder if a graphical progress bar could be possible but at least if it's possible it should be accurate .as my program reach to de end it should be 100%
is it possible? below you can see a GIF progress bar that i dont think if i could use it
sth like this ?
Code: [Select]@echo off
setlocal enabledelayedexpansion set proc=0
:LOOP cls echo.%proc% %% echo.%TimeBar%
if %proc% equ 100 goto DONE ping -n 1 -w 500 1.1.1.1 >nul
set TimeBar= set Space=
set /a bvar+=1 for /L %%a in (0,1,%bvar%) do set TimeBar=!TimeBar!# set /a svar=48-%bvar% for /L %%a in (0,1,%svar%) do set Space=!Space! set TimeBar=[%TimeBar%%Space%]
set /a proc=(%bvar%*10)/5
goto LOOP
:DONE echo DONE! pausewow !! thanks devcom what a beautiful progressbar but how can this progressbar find out how percent of my progress has been gone? i think you need to make this like this:
Code: [Select]echo.Progress: 0% some commands echo.Progress: 25% some commands echo.Progress: 70% some commands echo.Progress: 100% some commandsthanks i will test it and let you know the result but how is it possible to bring our progressbar to front of screen?(something like always on top) well my program is more than 400 line so is there anyway that we divide our screen in 2 parts? one part belong to progressbar and other part for our processing?
or if you have other idea i will be very glad to hear it thanks dear devcom DV,
There is no color. What progress is being measured?
XP OS and IE8 ALREADY have a progressbar.
Do you often invent the Wheel?
|