🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.misc
Article #4135

Re: DOS Help required for printing

#4135
From: Jon
Date: Sun, 07 Feb 1999 00:00
89 lines
4167 bytes
Please note - Newsgroup distribution updated.

Chris Kennington wrote in message <918392568snz@inf-eden.demon.co.uk>...
[...]
> Could you explain a bit more?  What has been redirected to COMn,
> and why?  If you have a normal parallel-interface printer,
> redirection seems an odd thing to do.

Right, this is awkward. I haven't actually tried anything yet.
The problems are hypothetical at the moment, but may become actual.
Try to put the oddities of 'why' aside and assume that it has been done.

Scenario is that I have a file called anything.txt on my system which I wish
to print from in DOS.
Normally I can type PRINT anything.txt and after being asked where to print
to, the file would print.

However, it is possible that the configuration has been altered by somebody
to redirect print commands destined for LPT1 to a COM port using MODE for
example. (no reasons why, they just might!!)
At this stage I wouldn't know that it's been done.

Now, lets say I type PRINT anything.txt and get the question asking where to
print. I assume that any print commands will go to LPT1, but upon trying, I
get told that either the printer isn't available on LPT1 *or* the file
doesn't print at all because it has been redirected to somewhere else. In
other words, what I expect to happen doesn't.

Please assume I do not have the option / tools / authority  to be able to
change any configurations, the system must have this redirect option, but
for my immediate purposes, I need a printout of this file.

What could I enter in DOS to override *all* preceeding DOS redirects,
configurations etc to ensure that my PRINT command will print the file
anything.txt on LPT1??

Would it be PRINT anything.txt >LPT1 for example....would this override any
other command telling the system to send the data elsewhere??

Hope that's clearer. As I say, I haven't actually tried this yet, but I know
I will be. Sounds daft I know.
Can you help??
--
Jon
Watercolour Painting - visit http://welcome.to/AndrewJohnStudio
Please remove SPAMFREE for direct email replies












>    What does "if I were to" imply?  Have you tried it?  The normal
> response to the first PRINT command in DOS is to ask where to print
> to - if the printer is on COMn, then tell it!
>
>"What other possibilities in DOS could there be that the printer won't
print
>"to LPT1??
>
>    Once again, exactly what do you mean?  The printer does not "print
> to LPT1"; it is connected to LPT1 and the *system* "prints to LPT1" to
> use it.  Afaik, you can have (real) printers connected to LPTn or
> COMn, network printers, print-to-file or even print-to-NULL (which
> is an interesting way of saving paper).  Pick your poison!
>
>"The answers to the above need to be relevant to the version of DOS used
>"under Windows 3.x rather than Win 9x
>
>    Presumably 6.20 or 6.22?  Ask it (by the VER command).
>
>"In addition, where can I find a list of DOS commands and  a
>"guide....preferably off the net.
>
>    The DOS 6 HELP command will give you all the info you need.
> (Note that it needs QBASIC available).  A simple list can be got
> from the DOS FASTHELP command (which is really the Help from DOS 5).
>
>                                            Chris K.
>--
>Chris Kennington in anti-spam news-posting mode.
>  If e-mailing replies, please use name "chris@".
>
Technical Details
Message-ID: <hmlv2.1894$cQ5.623@nnrp2.clara.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3Qnu2.1059$S62.701@nnrp2.clara.net> <918392568snz@inf-eden.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1068c5,dfb3a0a7cd20b12b
X-Google-Attributes: gid1068c5,public
X-Google-Thread: f71eb,4175118d3706a16c,start
X-Google-Attributes: gidf71eb,public
From: "Jon" <newsmail@localSPAMFREE.clara.co.uk>
Subject: Re: DOS Help required for printing
Date: 1999/02/07
Message-ID: <hmlv2.1894$cQ5.623@nnrp2.clara.net>
X-Deja-AN: 441735236
References: <3Qnu2.1059$S62.701@nnrp2.clara.net> <918392568snz@inf-eden.demon.co.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@clara.net
X-Trace: nnrp2.clara.net 918413837 195.8.77.45 (Sun, 07 Feb 1999 18:57:17 BST)
NNTP-Posting-Date: Sun, 07 Feb 1999 18:57:17 BST
Newsgroups: comp.os.msdos.misc,freeserve.help.misc