A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Printing and Faxing with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Several command line printing questions



 
 
Thread Tools Display Modes
  #1  
Old March 21st 08, 10:07 PM posted to microsoft.public.windowsxp.print_fax
datap
external usenet poster
 
Posts: 1
Default Several command line printing questions

Q1:
on my system, I have an HP Inkjet AND a "print to convert" program and both
are associated with "LPT1" so when I type

copy /b filename.gif lpt1
or
print /D:LPT1 filename.gif

the print goes to the convert program. Is there a way to specifiy the
physical printer on the command line as well as the port?

Q2: I have a LaserJet print on the network who's PORT is "IP_10.0.0.10"
but when I attempt to send a file to that "port" I get a "cannot initialize"
error.

Ultimately, like the previous poster, I'm trying to send TIF images to a
printer (in my case a Jet Direct printer) via the command line -- any
suggestions?

Ads
  #2  
Old March 21st 08, 11:52 PM posted to microsoft.public.windowsxp.print_fax
Alan Morris [MSFT]
external usenet poster
 
Posts: 783
Default Several command line printing questions

HP supports the LPD service so you could send the formatted data using the
lpr.exe command



Install Print Services for Unix in Add/Remove Programs, Windows features,
Network File and prin services.

in the command line generate your formated file, then send this to the
device

lpr -S IPofprinter -P raw -o l filename

start with a very small file first, LPD works best with text files and PS
files.


G:\lpr

Sends a print job to a network printer

Usage: lpr -S server -P printer [-C class] [-J job] [-o option] [-x] [-d]
filename

Options:
-S server Name or ipaddress of the host providing lpd service
-P printer Name of the print queue
-C class Job classification for use on the burst page
-J job Job name to print on the burst page
-o option Indicates type of the file (by default assumes a text
file)
Use "-o l" for binary (e.g. postscript) files
-x Compatibility with SunOS 4.1.x and prior
-d Send data file first


--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base he
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"datap" wrote in message
...
Q1:
on my system, I have an HP Inkjet AND a "print to convert" program and
both
are associated with "LPT1" so when I type

copy /b filename.gif lpt1
or
print /D:LPT1 filename.gif

the print goes to the convert program. Is there a way to specifiy the
physical printer on the command line as well as the port?

Q2: I have a LaserJet print on the network who's PORT is "IP_10.0.0.10"
but when I attempt to send a file to that "port" I get a "cannot
initialize"
error.

Ultimately, like the previous poster, I'm trying to send TIF images to a
printer (in my case a Jet Direct printer) via the command line -- any
suggestions?



  #3  
Old March 23rd 08, 11:34 PM posted to microsoft.public.windowsxp.print_fax
neng
external usenet poster
 
Posts: 1
Default Several command line printing questions



"datap" wrote:

Q1:
on my system, I have an HP Inkjet AND a "print to convert" program and both
are associated with "LPT1" so when I type

copy /b filename.gif lpt1
or
print /D:LPT1 filename.gif

the print goes to the convert program. Is there a way to specifiy the
physical printer on the command line as well as the port?

Q2: I have a LaserJet print on the network who's PORT is "IP_10.0.0.10"
but when I attempt to send a file to that "port" I get a "cannot initialize"
error.

Ultimately, like the previous poster, I'm trying to send TIF images to a
printer (in my case a Jet Direct printer) via the command line -- any
suggestions?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 09:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.