@PTRHOST
— Returns
the hostname for the specified IP printer.
Syntax:
%@PTRHOST[
printername]
printername: if omitted, the user’s default printer
In most cases, the hostname will simply be the IP address. The function
will return Not an IP printer
if the specified printer is not
an IP printer, or ???
on any other error.
echo %@ptrhost["LaserJet in Office"]