LISTPORTS
— List local
printer ports.
Syntax:
LISTPORTS
/I /N
name…
/I | include IP printer ports |
/N | include non-IP printer ports |
name… | may contain wildcards |
If neither /I
nor /N
is specified, both IP
and non-IP ports will be listed.
You may specify one or more name parameters
containing wildcards (inclusion masks), e.g. LPT*
to
list all ports whose names begin with the letters LPT. Any port that matches
any of the inclusion masks will be included in the list. You can also
specify wildcarded names to exclude; precede these with an exclamation point,
e.g. !*IMAG*
to exclude all ports whose names contain
the string “IMAG”. Exclusion masks override inclusion masks.
Any port which matches any exclusion mask will not be shown, even if it
matches one or more inclusion masks.
If you do not specify any name parameters,
LISTPORTS
will list all printing ports available on the local
machine.