1.

Solve : check internet access?

Answer»

how to create a BATCH that will actually sniff wheather my pc is currently connect to internet or not Ping a known address - if you get a response, you are connected
Grahamthx for the reply
ok i try it and it work ... so how am i suppose to make a batch that will show a TIME when is my pc is unplug or connected to the internet and save it to a txt

forgot to said that im using window xp sp2
....no reply
zzzzzzzzzzzzz
.
.
.
.
any1 HELP plsssQuote

@echo off
for /l %%a in (,,) do (
ping google.com>NUL&&(
if not defined YES call echo.Connected %%date%% %%time%%
SET "YES=Y"
)||(
if defined YES call echo.Connection lost %%date%% %%time%%
set "YES="
))
:$source http://www.dostips.com

What'ya THINK nwlun? DOS IT HELP?


Discussion

No Comment Found