1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
| @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
REM Initialize
FOR /L %%I IN (1,1,12) DO SET ITEM%%I=[ ]
:Boucle
CLS
ECHO Choisissez les logiciels que vous souhaitez installer :
ECHO.
ECHO %ITEM1% 01. Installation de tous les logiciels
ECHO %ITEM2% 02. Installation Mozilla Firefox
ECHO %ITEM3% 03. Installation 7Zip
ECHO %ITEM4% 04. Installation NotePad++
ECHO %ITEM5% 05. Installation Google Chrome
ECHO %ITEM6% 06. Installation Teams
ECHO.
ECHO %ITEM7% 07. Desinstallation de tous les logiciels
ECHO %ITEM8% 08. Desinstallation Mozilla Firefox
ECHO %ITEM9% 09. Desinstallation 7Zip
ECHO %ITEM10% 10. Desinstallation NotePad++
ECHO %ITEM11% 11. Desinstallation Google Chrome
ECHO %ITEM12% 12. Desinstallation Teams
ECHO.
ECHO Taper Q pour Quitter
ECHO Taper R pour lancer l installation
SET WhichItem=
SET /P WhichItem=Faites votre choix et appuyer sur ENTER :
IF NOT DEFINED WhichItem GOTO Boucle
IF /I "%WhichItem%"=="Q" GOTO :EOF
IF /I "%WhichItem%"=="R" GOTO RunOptions
SET /A WhichItem=%WhichItem%
IF "%WhichItem%"=="1" (
IF "!Item%WhichItem%!"=="[X]" (
FOR /L %%I IN (1,1,6) DO SET Item%%I=[ ]
) ELSE (
FOR /L %%I IN (1,1,6) DO SET Item%%I=[X]
)
)
IF "%WhichItem%"=="7" (
IF "!Item%WhichItem%!"=="[X]" (
FOR /L %%I IN (7,1,12) DO SET Item%%I=[ ]
) ELSE (
FOR /L %%I IN (7,1,12) DO SET Item%%I=[X]
)
)
FOR /L %%I IN (1,1,12) DO IF "%%I"=="%WhichItem%" (
IF "!Item%WhichItem%!"=="[X]" (
SET Item%WhichItem%=[ ]
) ELSE (
SET Item%WhichItem%=[X]
SET /A "mod=((%%~I-1+(12/2))%%12)+1"
SET Item!mod!=[ ]
)
)
set Item1=[X]
FOR /L %%I IN (2,1,6) DO IF "!Item%%I!"=="[ ]" SET Item1=[ ]
set Item7=[X]
FOR /L %%I IN (7,1,12) DO IF "!Item%%I!"=="[ ]" SET Item7=[ ]
GOTO Boucle
:RunOptions
FOR /L %%I IN (1,1,25) DO IF "!Item%%I!"=="[X]" call :Item%%I
pause
GOTO :EOF |
Partager