PRINT – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Print a file or files to a local or network printer.
PRINT [/D:device] [pathname(s)]
device : either a local printer (LPTx, COMx )
or a network printer by its sharename (\\servername\print_share)
pathname : The file or files to be printed
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.
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
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.