I need to use the lpr command to copy a print file directly to a network printer. However, the lpr command does not seem to be included in 64-bit editions of Windows.
What can be done to solve this?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
According to a list of Windows commands at about.com
Command MS-DOS Win 98 Win XP Win Vista Win 7 Lpr N Y Y Y² Y²
 This command is not available in 64-bit versions of this operating system.
 This command is only available in this version of Windows when LPD Print Service is turned on from Windows Features.
The omissions of a 1 superscript after the Y suggests
lpr can be made available by enabling the "LPR Port Monitor" using "Control Panel/Programs and Features/Turn Windows features on or off".
lpr works great on Win 7 and up. You do not need to copy it. In Control Panel, go to "turn windows features on or off" and make sure "print and document services" are installed.
To use lpr to send a file to printer that uses the RAW protocol, the syntax is:
lpr -S <printer name or IP> -P raw <file to send> e.g. lpr -S 192.168.11.118 -P raw postscript.ps