Ya me acorde donde obtuve el activex para hacer lo del ping es:
OstroSoft ICMP Component download 1.0
http://www.dodownload.com/download/ostrosoft+icmp+component.html
Agrego el ejemplo de lo que trabaje:
**** aqui comienza el código
ON ERROR DO errHandler WITH ERROR()
CREATE CURSOR csrRespuesta (linea c(254))
i = 0
oPing = CREATEOBJECT("OSICMP.ping")
txtIP = "
tlaloc2.phibred.com"
WITH oPing
FOR i = 0 TO 3
.Send(txtIP,2000)
IF i = 0 THEN
lclinea = "Pinging " + ALLTRIM(.IP) + " with " +
ALLTRIM(STR(.PacketSize)) + " bytes of data:"
INSERT INTO csrRespuesta VALUES(lclinea)
ENDIF
lclinea = "Reply from " + ALLTRIM(.IP) + " bytes = " +
ALLTRIM(STR(.PacketSize)) + " time=" + ALLTRIM(STR(.RoundTripTime)) +
" ms TTL " + ALLTRIM(STR(.TTL)) + " Status "+ .status
INSERT INTO csrRespuesta VALUES(lclinea)
? csrRespuesta.linea
.Sleep(1000)
ENDFOR
ENDWITH
INSERT INTO csrRespuesta VALUES("Ping Complete")
RELEASE oPing
PROCEDURE errHandler
PARAMETER merror
* CLEAR
* ? 'Error number: ' + LTRIM(STR(merror))
ENDPROC
***** aqui termina
Espero les sea de utilidad, actualmente ya no le movi, por eso quedo a
medio terminar. Es una dll que permite hacer el ping y el tracert
Saludos.
On 20 jun, 10:46, "J. Enrique Ramos Menchaca" <
jeram...@gmail.com>
wrote: