Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How integrate a counter in batch ?

Featured Replies

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 off
color 0f
title Patchs
cd /d "%~dp0"
time /t
echo.
echo ... Patchage ...
for %%a in (*hf.exe) do (
start /wait "" %%a /quiet /norestart )
exit

In fact, I would like the batch say :

Install in progress ...
30
29
28
27
...

I have search with for /l command but I don't know how combine with the first for command ...

You use a variable as counter like

set i=0
set /A i = %i% + 1
echo %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.

try /passive instead of /quiet. Then you may not want the counter.

  • Author

Thanks Doc, but doesn't work because I use for, no ?

This is what I make :

@echo off
cd /d "%~dp0"
echo ... Patchage ...
set i=29
for %%a in (*hf.exe) do (
echo %i%
pause <- just for test! instead "start /w ...."
set /a i = %i% - 1
)
exit

Result : Always display 29 !

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.