Sonic Posted October 17, 2005 Posted October 17, 2005 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 ...
Doc Symbiosis Posted October 17, 2005 Posted October 17, 2005 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.
Noise Posted October 17, 2005 Posted October 17, 2005 try /passive instead of /quiet. Then you may not want the counter.
Sonic Posted October 19, 2005 Author Posted October 19, 2005 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 !
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now