Atach this ping function to a timer ...

Oh and the proper code for the ping stuff is (just test this and yours against a switched off computer) :


Code:

shell '%Comspec% /C ping -n 1 ' + $PC + ' | find /C "TTL=" > nul'
$Ping = not @error

_________________________