A voir également:
- Question sur un programme en Batch
- Ce programme est écrit en python. il construit un mot secret dans une variable mais il ne l'affiche pas. modifiez-le pour qu'il affiche le mot secret. exécutez-le. quel est ce mot secret ? ✓ - Forum Python
- Frequence programme national ✓ - Forum Messagerie
- Programme demarrage windows 10 - Guide
- Ce message d'erreur apparaît sur l'ordinateur d'elena. que peut-on dire du programme gwxux ? - Forum logiciel systeme
- Echo off batch ✓ - Forum Autoit / batch
1 réponse
@echo off
echo 1. Défragmenter le disque
echo.
echo 2.Ping l'adresse IP du choix
echo.
echo --------------------------
set /P choix= Entrer 1 ou 2 :
echo --------------------------
echo.
if %choix%==1 (
rem defrag c:
echo Fini
pause>nul 2>&1
goto end
)
set ip=""
if %choix%==2 (
set /p ip=Saisissez l^'ip a pinger :
ping %ip%
echo Fini
pause>nul 2>&1
goto end
)
:end
exit
Voili voilou!!!
echo 1. Défragmenter le disque
echo.
echo 2.Ping l'adresse IP du choix
echo.
echo --------------------------
set /P choix= Entrer 1 ou 2 :
echo --------------------------
echo.
if %choix%==1 (
rem defrag c:
echo Fini
pause>nul 2>&1
goto end
)
set ip=""
if %choix%==2 (
set /p ip=Saisissez l^'ip a pinger :
ping %ip%
echo Fini
pause>nul 2>&1
goto end
)
:end
exit
Voili voilou!!!
21 mars 2012 à 15:35