A voir également:
- Batch ping test
- Test performance pc - Guide
- Test composant pc - Guide
- Fichier batch - Guide
- Test ram - Guide
- Test vitesse ssd - Guide
2 réponses
Nouveau Problème : ne va pas la ou es demandé quand le ping est reçut ou pas.
lien utile pour faire des test de serveur ON & OFF :
http://reign-of-kings.net/country/france/
Les points montres les lignes sauté. car le site ne détecte pas les lignes sauté
@echo off
Title Test Connexion Server : Reign Of Kings
.
ping localhost -n 3 > nul
echo Test de connexion Server Rok
ping localhost -n 3 > nul
echo Test la connexion...
ping localhost -n 2 > nul
cls
goto Test.Connexion
cls
pause > Nul ERREUR...
:Test.Connexion
.
Rem -----------------------------------
:: Ont Ping 176.31.239.22:7350 pendant 5secondes
:: C'est ici qu'on choisit l'ip du serveur : aucun serveur inscrit c'est fais exprès.
PING """" -n 6 > NUL
.
Rem -----------------------------------
:: Si errorlevel vaut 0 alors tout et OK
IF %ERRORLEVEL% == 0 goto Server.Actif
IF %ERRORLEVEL% == 1 goto Server.Inactif
cls
pause > Nul ERREUR...
.
:Server.Actif
.
IF %ERRORLEVEL% == 0 (
CLS
ECHO Informations :
ping localhost -n 3 > nul
ECHO Server - [ Le Domaine De Valsher ]
ping localhost -n 3 > nul
ECHO Etats - [ OK ]
ping localhost -n 3 > nul
ECHO Internet - [ OUI ]
ping localhost -n 3 > nul
)
.
cls
ping localhost -n 5 > nul
echo Test Terminé, Server Actif
ping localhost -n 5 > nul
cls
echo Fermeture...
ping localhost -n 3 > nul
cls
goto Close
cls
pause > Nul ERREUR...
.
:Server.Inactif
Rem -----------------------------------
:: Si errorlevel vaut 1 alors tout et NUL
IF %ERRORLEVEL% == 1 (
CLS
ECHO Informations :
ping localhost -n 3 > nul
ECHO Server - [ Le Domaine De Valsher ]
ping localhost -n 3 > nul
ECHO Etats - [NUL]
ping localhost -n 3 > nul
ECHO Internet - [NON]
ping localhost -n 3 > nul
)
.
.
cls
ping localhost -n 5 > nul
echo Test Terminé, Server Inactif
ping localhost -n 5 > nul
cls
echo Fermeture...
ping localhost -n 3 > nul
cls
goto Lancement.Server
cls
pause > Nul ERREUR...
.
:Close
exit
.
:Lancement.Server
pause
exit
.
lien utile pour faire des test de serveur ON & OFF :
http://reign-of-kings.net/country/france/
Les points montres les lignes sauté. car le site ne détecte pas les lignes sauté
@echo off
Title Test Connexion Server : Reign Of Kings
.
ping localhost -n 3 > nul
echo Test de connexion Server Rok
ping localhost -n 3 > nul
echo Test la connexion...
ping localhost -n 2 > nul
cls
goto Test.Connexion
cls
pause > Nul ERREUR...
:Test.Connexion
.
Rem -----------------------------------
:: Ont Ping 176.31.239.22:7350 pendant 5secondes
:: C'est ici qu'on choisit l'ip du serveur : aucun serveur inscrit c'est fais exprès.
PING """" -n 6 > NUL
.
Rem -----------------------------------
:: Si errorlevel vaut 0 alors tout et OK
IF %ERRORLEVEL% == 0 goto Server.Actif
IF %ERRORLEVEL% == 1 goto Server.Inactif
cls
pause > Nul ERREUR...
.
:Server.Actif
.
IF %ERRORLEVEL% == 0 (
CLS
ECHO Informations :
ping localhost -n 3 > nul
ECHO Server - [ Le Domaine De Valsher ]
ping localhost -n 3 > nul
ECHO Etats - [ OK ]
ping localhost -n 3 > nul
ECHO Internet - [ OUI ]
ping localhost -n 3 > nul
)
.
cls
ping localhost -n 5 > nul
echo Test Terminé, Server Actif
ping localhost -n 5 > nul
cls
echo Fermeture...
ping localhost -n 3 > nul
cls
goto Close
cls
pause > Nul ERREUR...
.
:Server.Inactif
Rem -----------------------------------
:: Si errorlevel vaut 1 alors tout et NUL
IF %ERRORLEVEL% == 1 (
CLS
ECHO Informations :
ping localhost -n 3 > nul
ECHO Server - [ Le Domaine De Valsher ]
ping localhost -n 3 > nul
ECHO Etats - [NUL]
ping localhost -n 3 > nul
ECHO Internet - [NON]
ping localhost -n 3 > nul
)
.
.
cls
ping localhost -n 5 > nul
echo Test Terminé, Server Inactif
ping localhost -n 5 > nul
cls
echo Fermeture...
ping localhost -n 3 > nul
cls
goto Lancement.Server
cls
pause > Nul ERREUR...
.
:Close
exit
.
:Lancement.Server
pause
exit
.