LISTJOBS — List print jobs.

Syntax:
LISTJOBS ​/P:printerjob…

/P:printerthe printer to list print jobs for
job…names or ID numbers of jobs to list

If no printer is specified, jobs for the default printer will be listed. The job parameters may be document names, possibly including wildcards; or job ID numbers.

You may specify one or more job parameters containing wildcards (inclusion masks), e.g. JP* to list all jobs whose names begin with the letters JP. Any job 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. !*.DOC to exclude all .DOC files from the list. Exclusion masks override inclusion masks. Any job which matches any exclusion mask will not be shown, even if it matches one or more of the inclusion masks.

Finally, jobs can be job ID numbers, e.g. 12 or 0x0C to list job #12. Any print job with the specified ID number will be listed, regardless of any exclusion masks.

If you do not specify any job parameters, LISTJOBS will list all print jobs for the specified printer.