Article View: demon.ip.developers
Article #271Re: Selection (?) of print device for SNews
From: Mark Rogers
Date: Tue, 13 Jan 1998 00:00
Date: Tue, 13 Jan 1998 00:00
33 lines
1856 bytes
1856 bytes
In article <884652668snz@dsl.co.uk>, Brian {Hamilton Kelly}
<bhk@dsl.co.uk> writes
>Neither of these have any effect: remember I'm doing this in a DOS
>Command Prompt box under Lose'95.
I guess that what you need is something cleverer than just swapping
entries in the BIOS table.
Have you tried Prn2File?
ftp.demon.co.uk/pub/simtelnet/msdos/prn2file.zip
ftp.demon.co.uk/pub/simtelnet/msdos/prn2fil3.zip
(I've not tried the latter, but the first I've used for some time. I'm
not sure whether I've tried it under Win95, but I think I probably
have.)
It would be trivial to modify demon.bat to redirect printer output to a
file, then send that file (if it exists) to the printer when snews
closes, before deleting it.
Note that prn2file creates a zero length output file if no printer
output is generated, so "if exist printer.txt" (eg) will always succeed.
DOS won't copy zero length files, so "copy /b printer.txt lpt2" should
work (not tested, though).
It may actually be possible to use prn2file to redirect to a device (eg
LPT2) rather than a file - I haven't tried.
--
Mark Rogers (Software Engineer) -o- mark@controlware.demon.co.uk
2M_ControlWare, Yaxley, Peterborough, ENGLAND.
Technical Details
Message-ID:
<hDACPDAGl0u0IwkL@controlware.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<884532989snz@dsl.co.uk> <34b969a1.0@muir-et2.staff.demon.net> <tGDR+DALphu0Iw1d@controlware.demon.co.uk> <884652668snz@dsl.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bb05,472149e7c60beaec X-Google-Attributes: gid10bb05,public From: Mark Rogers <mark-news@controlware.demon.co.uk> Subject: Re: Selection (?) of print device for SNews Date: 1998/01/13 Message-ID: <hDACPDAGl0u0IwkL@controlware.demon.co.uk> X-Deja-AN: 315510428 References: <884532989snz@dsl.co.uk> <34b969a1.0@muir-et2.staff.demon.net> <tGDR+DALphu0Iw1d@controlware.demon.co.uk> <884652668snz@dsl.co.uk> MIME-Version: 1.0 X-NNTP-Posting-Host: controlware.demon.co.uk [194.222.205.23] Organization: 2M_ControlWare Newsgroups: demon.ip.developers