SimplePing.ec.vbs
------------------------------------------------------------------------------------

* PARAMETERS: 

 1. Either a host name (www.pitrinec.com) or an IP address (12.13.14.15).

* RETURN: 

 "1" if ping succeded 
 "0" if ping fails


* DESCRIPTION:  

This external command is written in VBS.  It demonstrates how to use VBS to write
external commands.  The "SimplePing.ec.vbs" pings to the host specified as an input
parameter.  If the ping is successfull then the command returns "1".  If it fails
then result is "0".

* USAGE EXAMPLE:

<cmds>
<extcmd>("SimplePing.ec.vbs","www.pitrinec.com",15,vResult)
<if_str>("vResult==1")
   <msg>(-100,-100,"Ping OK.","Message",1,0,0)
<else>
   <msg>(-100,-100,"Ping failed.","Message",1,0,0)
<endif>

------------------------------------------------------------------------------------
(c) 2007 Pitrinec Software