PRINTER$ function

Purpose

Retrieve printer names and printer port names.

Syntax

device$ = PRINTER$([NAME | PORT], printernum&)

Remarks

printernum& specifies the printer number, from 1 to PRINTERCOUNT.  If the NAME option is specified in the first position, the printer name is returned.  If the PORT option is specified instead, the port name (e.g., LPT1) is returned.

See also

LPRINT ATTACH, PRINTERCOUNT, XPRINT ATTACH