@PINGWINS — Returns the address of a WINS server.

Syntax:
%@PINGWINS[n]

nthe index (1-N) of the server to return, or 0 for the number of known WINS servers

Only IPv4 is supported. If n is omitted, it defaults to 1 (return the first WINS server). On any error, this function returns an empty string.


rem    List known WINS servers:

do i = 1 to %@pingwins[0]
   echo WINS #%i:  %@pingwins[%i]
enddo


This function is equivalent to APING’s #WINS macro, but can be used in other commands.