Lpr Command In Windows Server 2008

This article explains the Lpr command in Windows Server 2008 operating system and syntax related with it.
  • 2457

Introduction

Lpr command in Windows Server 2008 is used to sends a file to a computer or printer sharing device running the Line Printer Daemon (LPD) service in preparation for printing. Syntax for using Lpr command is given below.

Syntax

Lpr [-S <ServerName>] -P <PrinterName> [-C <BannerContent>] [-J <JobName>] [-o | "-o l "] [-x] [-d] <filename>

Parameters For Lpr

Parameter Description
-S <ServerName> Defines the computer or printer sharing device that hosts the LPD print queue with a status that user want to display.
-P <PrinterName> Defines the printer for the print queue with a status that user want to display.
-C <BannerContent> Defines the content to print on the banner page of the print job.
-J <JobName> Defines the print job name that will be printed on the banner page.
[-o| "-o l"] Defines the type of file that you want to print.
-d Defines that the data file must be sent before the control file.
-x Defines that the Lpr command must be compatible with the Sun Microsystems operating system
<filename> Defines the file to be printed.
/? Shows help at the command prompt.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.