A Windows 98 & ME forum. Win98banter

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 » Win98banter forum » Windows 98 » Printing
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Need command line lpr for Win98



 
 
Thread Tools Display Modes
  #1  
Old March 29th 08, 12:38 AM posted to microsoft.public.win98.printing
Jim Seymour
External Usenet User
 
Posts: 3
Default Need command line lpr for Win98

I am in need of a lpr command-line utility for Windows 98 - but my
searches so far have revealed only one (overpriced) option.

My backup plan is to install Cygwin and use their lpr utility, but it
seems like somebody somewhere would have written a native-Windows utility...

Barring that, can someone suggest a way to print to a network-connected
printer from a Win98 batch file?

--
Jim Seymour
  #2  
Old March 29th 08, 03:05 AM posted to microsoft.public.win98.printing
Jeff Richards
External Usenet User
 
Posts: 1,526
Default Need command line lpr for Win98

Can you describe what you are trying to do in more detail? LPR won't work
without the LPD deamon, and there is no equivalent in Windows. Or is it LPD
on a UNIX server that you are trying to print to?

A W98 batch file can't print to a remote (or any) printer - only an
application, which understands the features of the particular printer, can
print a document. A batch file could copy a print file (usually type PRN)
created by an application to a remote printer - is that what you are trying
to do?

Or, you could write a script that uses the scripting feature of the
application (such as WORD) to automate the printing function of that
application which could (depending on the scripting engine used) select a
network printer.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Jim Seymour" wrote in message
...
I am in need of a lpr command-line utility for Windows 98 - but my searches
so far have revealed only one (overpriced) option.

My backup plan is to install Cygwin and use their lpr utility, but it
seems like somebody somewhere would have written a native-Windows
utility...

Barring that, can someone suggest a way to print to a network-connected
printer from a Win98 batch file?

--
Jim Seymour



  #3  
Old March 31st 08, 04:46 PM posted to microsoft.public.win98.printing
Jim Seymour
External Usenet User
 
Posts: 3
Default Need command line lpr for Win98

Jeff Richards wrote:
Can you describe what you are trying to do in more detail? LPR won't
work without the LPD deamon, and there is no equivalent in Windows.
Or is it LPD on a UNIX server that you are trying to print to?


Thanks for the response.

The network printer I'll be using (a Brother HL2070N) acts as a LPD
daemon. From a UNIX or Windows 2000+ command line, I could run "lpr"
and easily send a text file to the printer.

With Win98, however, there is no built-in lpr utility.

My next option is to capture the printer to "LPTx" and see if I can
simply use "copy file LPTx".

But "lpr" seems like a better solution - if I can find such a utility.

[...] A batch file could copy a print file (usually type PRN) created
by an application to a remote printer - is that what you are trying
to do?


Nope. I need to access the same printer from four machines. Since
these four PCs are not guaranteed to be ON at any given time, I can't
use a "shared" printer.

--
Jim Seymour
  #4  
Old April 1st 08, 09:43 PM posted to microsoft.public.win98.printing
Jim Seymour
External Usenet User
 
Posts: 3
Default Need command line lpr for Win98

Jim Seymour wrote:
I am in need of a lpr command-line utility for Windows 98 - but my
searches so far have revealed only one (overpriced) option.

My backup plan is to install Cygwin and use their lpr utility, but it
seems like somebody somewhere would have written a native-Windows
utility...

Barring that, can someone suggest a way to print to a network-connected
printer from a Win98 batch file?


Following up to my own post...

I was, perhaps, over-thinking my problem. I found a simple solution in
the freeware "PrintFile" utility: http://www.lerup.com/printfile/

By installing the drivers for my printer - and making it my default
printer, I am now able to easily print to it from a batch file.

All is good. Thanks to those who listened...

--
Jim Seymour
 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DUN command line establish connection MidnightTwink General 3 April 9th 06 11:07 PM
Starting Windows from a DOS Command Line DaleB General 2 August 1st 05 01:27 PM
Command line switch Me General 2 March 12th 05 07:09 PM
Command Line Switch Scott General 3 January 12th 05 01:46 AM
msbackup command line switches jd Setup & Installation 1 September 9th 04 03:25 AM


All times are GMT +1. The time now is 09:06 PM.


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