@PINGROUTER
— Returns the address of a
router.
Syntax:
%@PINGROUTER[
n]
n | the index (1-N) of the router to return, or 0 for the number of known routers |
Only IPv4 is supported. If n is omitted, it defaults to 1 (return the first router). On any error, this function returns an empty string.
rem List routers:
do i = 1 to %@pingrouter[0]
echo Router #%i: %@pingrouter[%i]
enddo
This function is equivalent to APING’s
#ROUTER
macro, but can be used in other commands.