Vannakk.net
Pages
Home
Linux
CISCO
Microsoft
PYTHON
Downloads
About Me
Others
Wednesday, November 16, 2016
Ping Script in Windows
Ping Script in Windows
@ECHO OFF
set IPADDRESS=8.8.8.8
set INTERVAL=5
:PINGINTERVAL
ping %IPADDRESS% -n 1
if errorlevel 1 echo %date% %time% >> c:\Users\vannak.ken\Desktop\failurelog.txt
timeout %INTERVAL%
GOTO PINGINTERVAL
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment