PRINT – Windows CMD Command

Print a file or files to a local or network printer.

The default device is PRN. The values PRN and LPT1 refer to the same parallel port.
The PRINT command is most often used in conjunction with an LPR print queue – sending plain ASCII text.
PRINT will add a FormFeed character (ASCII 12) to the end of each print job.

Delete a print job:

Use Control Panel, Printers (GUI) or use
NET PRINT job# /DELETE

It is possible to delete the spool .spl and .shd files from %SystemRoot%\system32\spool\PRINTERS but this should be a last resort – stop the spooler service before deleting any files.

Status Messages

Many modern laser printers have a status display panel, the ‘Ready’ message can be changed using HP Job Language (PCL/PJL) like this:
Echo @PJL RDYMSG DISPLAY =”Ready Message” >\\server\printQ
e.g.
Echo @PJL RDYMSG DISPLAY =”Ready Printerf4t” >\\printserv1\printerf4t

It’s not essential to include the word “Ready” in the ready message, but the status display has 16 characters, which is usually enough space for “Ready” plus the printer Name/Number. e.g. “Ready Printer123”, “Ready Prn1234567”, “Ready #123-45678” etc

Note that when a printer error or jam occurs the status message will change, so adding a printer identifier to the status display does not replace the need for a physical label. It can still be very useful when the physical label is wrong or missing.

Printing requires the Spooler service to be running.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *