On 6/1/06, Petr Vileta <[EMAIL PROTECTED]> wrote:
----- Original Message -----
From: "Nick Hall" <[EMAIL PROTECTED]>
To: "ActivePerl" <[email protected]>
Sent: Thursday, June 01, 2006 8:37 PM
Subject: Re: how to write driver


> Petr
>
> I know it's not Perl but RedMon might be of some use.
>
> http://www.cs.wisc.edu/~ghost/redmon/
>
Redmon can't help me because for using redmon I must redirect Windows
printer to redmon port. But I want to hack data stream between DOS
application and Windows printer driver.

Petr Vileta, Czech republic

Windows does not have filters like *nix, and writing a Windows print
driver or port monitor is way beyond the scope of this list (or your
application, probably).

Can't you pipe the output from your failing install? Or send it to a
file? If the app is indeed writing directly to lpt1 (highly unlikely
unless this app is REALLY old, like $Bill :P) you'd have to capture or
redirect that output.

Capturing would involve creating a new Windows Local port and
specifying a file name for the port (e.g. C:\Output.txt), and changing
the printer to use this port.

Redirecting would involve creating a share for this new printer that
prints to a file, and using `net use lpt1
\\thiscomputer\printershare`.

You'd then have to read this file, perform your processing, and print
your output to the Windows printer.

HTH,
HT
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to