I'd recommend :
 Code:
Function OSPing($sComputer)
  Shell '"'+%COMSPEC%+'" /c ping -n 1 '+$sComputer+' |find /C "TTL=" >nul'
  $OSPing = NOT @ERROR
EndFunction


From the OSPing (http://www.kixtart.org/udf), made by Les.

Hm, by offline / online - do you refer to off-site, or a disconnected nic?


Edited by Björn (2008-07-16 12:44 PM)
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!