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

@ECHO OFF doesn't work always...

2,194 views
Skip to first unread message

John

unread,
Apr 10, 2004, 2:02:41 PM4/10/04
to
Hi,
I've made a batch file for setting attributes (hidden):

@echo off
ATTRIB -H D:\aragost

Since I don't want the echo I've put (as you can see) the command
"echo off"
at the beginning of the script. However I get the following echoing,
and this disturbs me:

Not resetting system file -
D:\aragost\bin\eclipse\features\org.eclipse.jdt.sour
ce_2.1.1\Thumbs.db
Not resetting system file -
D:\aragost\bin\eclipse\features\org.eclipse.jdt_2.1.
1\Thumbs.db
Not resetting system file -
D:\aragost\bin\eclipse\features\org.eclipse.pde_2.1.
0\Thumbs.db

etc., etc., etc.

Which command should I use to turn all this echoing completely?

Thank you for your answerz
John

Matthias Tacke

unread,
Apr 10, 2004, 3:21:06 PM4/10/04
to
John wrote:
>I've made a batch file for setting attributes (hidden):
>
>@echo off
>ATTRIB -H D:\aragost
>
>Since I don't want the echo I've put (as you can see) the command
>"echo off"
>at the beginning of the script. However I get the following echoing,
>and this disturbs me:
>
>Not resetting system file -
>D:\aragost\bin\eclipse\features\org.eclipse.jdt.sour
>ce_2.1.1\Thumbs.db
...

>
>Which command should I use to turn all this echoing completely?
>
>Thank you for your answerz
>John

Hello John,
@echo off only turns off echoing of the commands being issued, not the
the output of the commands themselves.
You can redirect the output of the commands to the pseudo device nul
this way eliminating it.
ATTRIB -H D:\aragost >nul

HTH

--
Greetings
Matthias

Richard Bonner

unread,
Apr 11, 2004, 8:46:33 AM4/11/04
to
John wrote:
> Hi,
> I've made a batch file for setting attributes (hidden):

> @echo off
> ATTRIB -H D:\aragost

> Since I don't want the echo I've put (as you can see) the command
> "echo off"
> at the beginning of the script. However I get the following echoing,
> and this disturbs me:

> Not resetting system file -
> Not resetting system file -
> Not resetting system file -

> etc., etc., etc.
(Snipped)


> Which command should I use to turn all this echoing completely?

> John

*** Matthias has answered this, but I thought I would add that these
error messages probably should remain visible so that you'll know
something has not happend as you wanted.

Of course, if this is not important to you or the task being done, then
by all means send the commands to NUL.

Richard Bonner
http://www.chebucto.ns.ca/~ak621/DOS/


iAN CooG

unread,
Apr 18, 2004, 5:37:41 PM4/18/04
to
John <za...@freesurf.ch> wrote:

> Which command should I use to turn all this echoing completely?

CTTY NUL
attrib ... etc
CTTY CON

--
-=[]=---iAN CooG/HokutoForce+TWT---=[]=-


ma...@toad-net.com

unread,
Apr 19, 2004, 12:27:37 PM4/19/04
to

This usually works but not always if the application does a ctty con by
itself.

Todd Vargo

unread,
Apr 19, 2004, 6:09:04 PM4/19/04
to

<ma...@toad-net.com> wrote in message
news:4083fdf9$0$248$4d5e...@reader.city-net.com...

>
> This usually works but not always if the application does a ctty con by
> itself.
>
>
> >CTTY NUL
> >attrib ... etc
> >CTTY CON

I don't know of any applications that actually do that. Please provide some
examples.

--
Todd Vargo (remove hyphen to reply by email)


0 new messages