KILLJOBS
— Cancel print
jobs.
Syntax:
KILLJOBS
/P:
printer
job…
/P: printer | the printer to cancel print jobs from |
job… | names or ID numbers of jobs to cancel |
If no printer is specified, the default
printer will be assumed. The job parameters
may be document names, possibly including wildcards; or job ID numbers as
listed by the LISTJOBS
command.
You may specify one or more job parameters
containing wildcards (inclusion masks), e.g. JP*
to
include all jobs whose names begin with the letters JP. Any job that
matches any of the inclusion masks will be canceled. You can also specify
wildcarded names to exclude; precede these with an exclamation point,
e.g. !*.DOC
to exclude all .DOC files. Exclusion
masks override inclusion masks. Any job which matches any exclusion mask
will not be deleted, even if it matches one or more inclusion masks.
Finally, jobs can be job ID numbers,
e.g. 12
or 0x0C
to delete job #12. Any
print job with the specified ID number will be deleted, regardless of any
exclusion masks.
If you do not specify any job parameters,
KILLJOBS
will kill the first print job queued for the specified
printer. To cancel all jobs in the queue, specify an asterisk.
killjobs /p:"laserjet 4m" *.doc !*marcia*