October 17, 200520 yr Hi all,I have a batch to install hotfixes ... all run fine but I havn't any progress bar and I use just the "time" function ... but it isn't perfect ... so if anyone has a solution to integrate a counter, post !My actual batch :@echo offcolor 0ftitle Patchscd /d "%~dp0"time /techo.echo ... Patchage ...for %%a in (*hf.exe) do (start /wait "" %%a /quiet /norestart )exitIn fact, I would like the batch say :Install in progress ...30292827...I have search with for /l command but I don't know how combine with the first for command ...
October 17, 200520 yr You use a variable as counter likeset i=0set /A i = %i% + 1echo %i%I vour case, you when you want to count down, of course you would have to get the number of files first, set your counter to this value and then count down.
October 19, 200520 yr Author Thanks Doc, but doesn't work because I use for, no ?This is what I make :@echo offcd /d "%~dp0"echo ... Patchage ...set i=29for %%a in (*hf.exe) do (echo %i%pause <- just for test! instead "start /w ...."set /a i = %i% - 1)exitResult : Always display 29 !
Create an account or sign in to comment