Most users are familiar with the standard GUI-based methods of sending a file to a printer, including the File > Print menu in most applications, or the CTRL+P keyboard shortcut. However, it’s also possible to send a text document to a configured serial or parallel port printer from the command line via the PRINT utility. To do so, simply issue the command PRINT /D:device followed by the name of the file to print.
An example of sending a file named test.txt to a printer connected to port LPT1 would be accomplished via the command PRINT /D:LPT1 c:\test.txt.