Guest User

Untitled

a guest
Nov 16th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. @echo off
  2. title Outil de maintenance r‚seau
  3. color 0A
  4. :debut
  5. cls
  6. echo.
  7. echo.
  8. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  9. echo º 1. Test du r‚seau º
  10. echo º 2. Test d'Internet º
  11. echo º 3. Partir º
  12. echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  13. echo.
  14. set /p choix=Choisissez un chiffre :
  15. if "%choix%"=="1" goto Testreseau
  16. if "%choix%"=="2" goto TestInternet
  17. if "%choix%"=="3" exit
  18. goto debut
  19.  
  20. :Testreseau
  21. echo TEST DE VOTRE CONNECTIVITE ...
  22. echo En cours ...
  23. Ping 192.168.1.1>nul
  24. if "%ERRORLEVEL%"=="0" (
  25. echo PING = Test r‚ussi !
  26. echo TEST OK !
  27. echo.
  28. echo Vous etes connect‚ au r‚seau.
  29. ) else (
  30. echo PING = Test non r‚ussi !
  31. echo TEST NON OK !
  32. echo.
  33. echo Vous n'etes pas connect‚ au r‚seau P‚dagogique.
  34. )
  35. pause>nul
  36. goto debut
  37.  
  38.  
  39. :TestInternet
  40. echo TEST DE VOTRE CONNECTIVITE ...
  41. echo En cours ...
  42. echo.
  43. echo.
  44. ping www.google.fr>nul
  45. if "%ERRORLEVEL%"=="0" (
  46. echo PING = Test r‚ussi !
  47. echo TEST OK !
  48. echo.
  49. echo Vous etes connect‚ a Internet.
  50. ) else (
  51. echo PING = Test non r‚ussi !
  52. echo TEST NON OK !
  53. echo.
  54. echo Vous n'etes pas connect‚ à Internet.
  55. )
  56. pause>nul
  57. goto debut
  58.  
  59.  
  60.  
Advertisement
Add Comment
Please, Sign In to add comment