1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| @echo off
setlocal enabledelayedexpansion
set /a log=1
set /a lost=0
set /a here=0
set /a $sw_ok=0
set "$l_ko="
set "liste=KB2685811 KB2685813 KB2900986 KB954430 wxcz3"
for %%a in (%liste%) do (
If not exist "Windows6.1-%%a-x64.msu" (
echo %%a manquant
set "$l_ko=!$l_ko! %%a"
set /a $sw_ok=1
set /a lost+=1) else (set /a here+=1)
If %log%==1 echo %%a manquant>>SP2_AL1-Test.log
)
echo %here% fichier(s) pr‚sent
echo %lost% fichier(s) manquant
if !$sw_ok!==0 (goto:install)
echo fichier(s) MAJ manquant ==^> on lançes le Download des fichiers manquants ==^> (!$l_ko!) |