hmm ok i have edit the script from Thorsten Gerds
here is the link to the orginal script

http://www.adminscripteditor.com/scriptlibrary/view.asp?id=332

now to the edit script

--------
Break on

CLS

$ip = ;tip here in the ip

Function Ping ( $ip)
$cmd="Ping -n 1 "+ $ip+ ' | Find /I "TTL=" >NUL'
Shell "%COMSPEC% /C "+$cmd

If @ERROR = 0
$Ping = 1
Else
$Ping = 0
EndIf

EndFunction


;?"Testet Verbindung zu einem Host"
;?"IP Adresse: " Gets $ip

If ping("$ip")
; the host is reachable
?"erreichbar"
Else
; the host is not reachable
?"nicht erreichbar"
EndIf