Sonic Posted October 17, 2005 Share 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 ... Link to comment Share on other sites More sharing options...
Doc Symbiosis Posted October 17, 2005 Share 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. Link to comment Share on other sites More sharing options...
Noise Posted October 17, 2005 Share Posted October 17, 2005 try /passive instead of /quiet. Then you may not want the counter. Link to comment Share on other sites More sharing options...
Sonic Posted October 19, 2005 Author Share 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 ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now