Skip to content

Instantly share code, notes, and snippets.

View WizardCity's full-sized avatar

Sean Harper WizardCity

View GitHub Profile
@WizardCity
WizardCity / Pingtest.cmd
Created August 4, 2016 15:27
A simple cmd network connection test which writes out to a file
@echo off
: Start
SET PT=%Date% %Time%
ping ww.google.ie -n 1 -w 3000 | find "TTL=" >nul
if errorlevel 1 (
COLOR 4E
::echo Cannot connect to Internet
echo %PT% --------Not Connected--------- >> failurelog.txt
echo %PT% --------Not Connected--------- >> Ping.txt
timeout 5 > NUL