Structure
@echo off
chcp 65001 >nul
:menu
cls
echo 1. Infos réseau 2. Cache DNS 3. Réparer 4. Quitter
choice /c 1234 /n /m "Votre choix : "
if errorlevel 4 exit /b
if errorlevel 3 goto reparer
if errorlevel 2 goto dns
ipconfig /all | more & pause & goto menu
:dns
ipconfig /flushdns & timeout /t 3 & goto menu
:reparer
sfc /scannow & DISM /Online /Cleanup-Image /RestoreHealth & pause & goto menuBases : conditions et boucles. Commandes : commandes de réparation.