Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

conIN$ and conOUT$ and conERR$

796 views
Skip to first unread message

- stdIN -

unread,
Sep 8, 1999, 3:00:00 AM9/8/99
to
I just discovered the conIN$ and conOUT$ devices/files.
Very much like CON. conOUT$ seems more analogous to CON (being the output
pipe), but it seems to work differently.
Anyone heard of these?

I'm on NT 4.0. Are they generally available in 32-bit Window/DOS?

Ted Davis

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to

No. NT is so unlike DOS that it was necessary to spin off a separate
newsgroup for NT batch discussions: alt.msdos.batch.nt.


T.E.D. (tda...@gearbox.maem.umr.edu - e-mail must contain "batch" in the subject or my .sig in the body)

- stdIN -

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to

Ted Davis <tda...@gearbox.maem.umr.edu> wrote in message
news:37da1350....@news.cc.umr.edu...

> No. NT is so unlike DOS that it was necessary to spin off a separate
> newsgroup for NT batch discussions: alt.msdos.batch.nt.
> T.E.D. (tda...@gearbox.maem.umr.edu - e-mail must contain "batch" in the
subject or my .sig in the body)

Yes. I'm hoping that newsgroup gets around soon. I have yet to see it.
Perhaps we defended it inadequately. Who knows?

Well, in NT, conIN$ and conOUT$ and conERR$ are apparently synonyms for
redirecting 1, 2, (3?).

Redirecting standard error is the same things as typing conERR$.
Redirecting to the screen (echoing or redirecting to CON) is the same as
redirecting to conOUT$.

Apparently these handles are useful even if the pipes have been redirected.
Good for teeing and whatnot.

Haven't played with it much, though.

I'd love to see any feedback from the rest of the NT users.

Dirk van Deun

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
: Yes. I'm hoping that newsgroup gets around soon. I have yet to see it.

: Perhaps we defended it inadequately. Who knows?

Still no alt.msdos.batch.nt on your site ? Try asking your administrator.
I have it, deja.com has it, others seem to have it too.

Dirk van Deun Ceterum censeo Redmond delendum
--
Currently at: di...@igwe.vub.ac.be http://student.vub.ac.be/~dvandeun
Permanent mail forwarder: dvan...@poboxes.com
--
Knight of the Order of the Command Line --- http://knights.rave.org

Outsider (6.22/3.11)

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
It's been on my server since day 1. There are now 9 messages.

-Outsider

Phil Robyn

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
"Outsider (6.22/3.11)" wrote:

alt.msdos.batch.nt is still not provided by AT&T WorldNet. I submitted a
request to them early this morning to start carrying it. Their policy is that
message volume must be 15 messages in a seven-day period for them to
begin carrying it. So those of you who can, please post messages to it to
increase the traffic. Thanks!


Dirk van Deun

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
: alt.msdos.batch.nt is still not provided by AT&T WorldNet. I submitted a

: request to them early this morning to start carrying it. Their policy is that
: message volume must be 15 messages in a seven-day period for them to
: begin carrying it. So those of you who can, please post messages to it to
: increase the traffic. Thanks!

That's a bit of a vicious circle, isn't it ?

(Note the crossposting...)

Phil Robyn

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
Dirk van Deun wrote:

Yes, Dirk, the 'vicious circle' notion had occurred to me. Also, since I
was the one who submitted the request to AT&T WorldNet, I don't think
it is appropriate for ME to increase the message traffic by posting messages
myself . . .


- stdIN -

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
Guess I need to email my ISP.

Sorry about not specifying NT in the subject line. I just found this and
therefore didn't know it was nt-specific.

Documentation seems to suggest it's available to the win9x 32-bit api, but
my experiments suggest it isn't available to dos under those operationg
systems.

In NT's console it is available to batch files and the command-line as well
as programs written in languages that have access to the API.

I wonder if it goes anywhere closer to the elusive NT batch-only NT one-line
user input hack, which I have yet to see or figure out, since these handles
work very much like CON or the filter commands (sort, find, findstr).

It's an obsession of mine. QBasic does it fine currently. Win2K will
eliminate dos programs like QBasic, but make it irrelevent again with its
reported SET /P extension of the SET command. Still, there must be a way!

I see a thread on deja.com where Walter Zachery has posted at least 2
solutions on a thread called "obtaining user input . . .", but I don't see
the posts. It's incomplete on deja. Someone please re-post the solutions
to this or another thread (if another thread, please point it out with a
post here). Thanks.


- stdIN -

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
Since I somehow missed the juiciest part of the one-line NT input thread,
I'll re-submit my failed attempt here, just in case someone in a moment of
insight sees a way to make it work. Format and Label both make me nervous.

type con|fc /lb1 test.txt test.txt|find /i /v "comparing"|find /i /v
"FC: "


Can someone re-post to one of the other NT Input threads so as to make it
visible again for continuation?
Or should a new thread be started?

Please forgive the NT posts. I still don't get the nt batch ng.


> I see a thread on deja.com where Walter Zachery has posted at least 2
> solutions on a thread called "obtaining user input . . .", but I don't see
> the posts. It's incomplete on deja. Someone please re-post the solutions
> to this or another thread (if another thread, please point it out with a
> post here). Thanks.


The following almost works, underline the almost.
con and nul can't be compared as files with fc, but an existing dummy file
can be compared to itself. /lb1 means 'only allow one line'. The
subsequent find commands filter out the output lines of fc ("comparing" and
"fc: ").

However, it doesn't work. It writes the "nonexistent pipe" error to the
screen and no amount of 2> standard error redirection will help get rid of
it. Because the user's input is sent to a nonexistent pipe, it is not
capturable to a file.

Please play with it and see if some other trick comes to mind.

type con|fc /lb1 test.txt test.txt|find /i /v "comparing"|find /i /v
"FC: "


Dirk van Deun

unread,
Sep 10, 1999, 3:00:00 AM9/10/99
to
:> : alt.msdos.batch.nt is still not provided by AT&T WorldNet. I submitted a

:> : request to them early this morning to start carrying it. Their policy is that
:> : message volume must be 15 messages in a seven-day period for them to
:> : begin carrying it. So those of you who can, please post messages to it to
:> : increase the traffic. Thanks!

: Yes, Dirk, the 'vicious circle' notion had occurred to me. Also, since I


: was the one who submitted the request to AT&T WorldNet, I don't think
: it is appropriate for ME to increase the message traffic by posting messages
: myself . . .

Maybe we can start a troll. This will do it:

Windows NT sucks !

(It's even entirely on-topic :-)

Bill James

unread,
Sep 10, 1999, 3:00:00 AM9/10/99
to
So, we all just crosspost to get the volume up? Kind of defeats the purpose
of having a separate newsgroup, but this is my contribution.

Bill James

Phil Robyn wrote in message <37D82268...@uclink4.berkeley.edu>...


>"Outsider (6.22/3.11)" wrote:
>
>> It's been on my server since day 1. There are now 9 messages.
>>
>> -Outsider
>>
>> Dirk van Deun wrote:
>> >

>> > : Yes. I'm hoping that newsgroup gets around soon. I have yet to see


it.
>> > : Perhaps we defended it inadequately. Who knows?
>> >
>> > Still no alt.msdos.batch.nt on your site ? Try asking your
administrator.
>> > I have it, deja.com has it, others seem to have it too.
>> >

>> > Dirk van Deun Ceterum censeo Redmond delendum
>> > --
>> > Currently at: di...@igwe.vub.ac.be http://student.vub.ac.be/~dvandeun
>> > Permanent mail forwarder: dvan...@poboxes.com
>> > --
>> > Knight of the Order of the Command Line --- http://knights.rave.org
>

Bill James

unread,
Sep 10, 1999, 3:00:00 AM9/10/99
to
So, we all just crosspost to get the volume up? This is my contribution -
don't know if my server will relay it or not.

Bill James


Dirk van Deun wrote in message <7r97tk$o0f$1...@mach.vub.ac.be>...
>: alt.msdos.batch.nt is still not provided by AT&T WorldNet. I submitted a


>: request to them early this morning to start carrying it. Their policy is
that
>: message volume must be 15 messages in a seven-day period for them to
>: begin carrying it. So those of you who can, please post messages to it
to
>: increase the traffic. Thanks!
>

>That's a bit of a vicious circle, isn't it ?
>
>(Note the crossposting...)
>

thai...@my-deja.com

unread,
Sep 10, 1999, 3:00:00 AM9/10/99
to
Not if the subject of the message is appropriate to both groups which
is the case with many batch programs. It would be nice if convoluted
solutions which could be written much more simply with the new NT
commands were posted only to alt.msdos.batch and solutions that require
the new NT commands were posted only to alt.msdos.batch.nt but lots of
programs and comments are suitable for both.

In article <7rak1b$3moi$1...@newssvr03-int.news.prodigy.com>,


"Bill James" <WGJ...@prodigy.net> wrote:
> So, we all just crosspost to get the volume up? Kind of defeats the
purpose
> of having a separate newsgroup, but this is my contribution.
>
> Bill James
>
> Phil Robyn wrote in message
<37D82268...@uclink4.berkeley.edu>...
> >"Outsider (6.22/3.11)" wrote:
> >
> >> It's been on my server since day 1. There are now 9 messages.
> >>
> >> -Outsider
> >>
> >> Dirk van Deun wrote:
> >> >
> >> > : Yes. I'm hoping that newsgroup gets around soon. I have yet
to see
> it.
> >> > : Perhaps we defended it inadequately. Who knows?
> >> >
> >> > Still no alt.msdos.batch.nt on your site ? Try asking your
> administrator.
> >> > I have it, deja.com has it, others seem to have it too.
> >> >

> >> > Dirk van Deun Ceterum censeo Redmond
delendum
> >> > --
> >> > Currently at: di...@igwe.vub.ac.be
http://student.vub.ac.be/~dvandeun
> >> > Permanent mail forwarder: dvan...@poboxes.com
> >> > --
> >> > Knight of the Order of the Command Line ---
http://knights.rave.org
> >

> >alt.msdos.batch.nt is still not provided by AT&T WorldNet. I
submitted a
> >request to them early this morning to start carrying it. Their
policy is
> that
> >message volume must be 15 messages in a seven-day period for them to
> >begin carrying it. So those of you who can, please post messages to
it to
> >increase the traffic. Thanks!
> >
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Dirk van Deun

unread,
Sep 10, 1999, 3:00:00 AM9/10/99
to
Bill James (WGJ...@prodigy.net) wrote:
: So, we all just crosspost to get the volume up? Kind of defeats the purpose
: of having a separate newsgroup, but this is my contribution.

It doesn't: we crosspost for a while to get the group noticed by ISPs
so that later the new group will be able to stand on its own. It's a
matter of bootstrapping out of the vicious circle:

no postings -> ISPs don't carry it -> no postings -> ...

0 new messages