SETPRINTER
— Change a
printer’s status.
Syntax:
SETPRINTER
printername /OF /ON /P /PU /R
/OF | take the printer offline |
/ON | bring the printer back online |
/P | pause the printer |
/PU | purge the print queue |
/R | restart a paused printer |
Only the first letter or two of the options are checked. You can spell
options out for clarity: /OFFLINE
, /ONLINE
,
/PAUSE
, and so on.
Quote the printername if it contains spaces. If you do not specify a printername, the current user’s default printer will be assumed.