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

how do I use the "ECHO" command?

0 views
Skip to first unread message

Kenn Caesius

unread,
Mar 13, 2009, 5:35:24 PM3/13/09
to
I am not exactly sure if this correct newsgroup but it does involve
MS-DOS, as used in windows 95.

How do use the ECHO command so that does not display the contents of the
autoexec.bat and config.sys as Windows 95 boots up?

---End of message---

Sjouke Burry

unread,
Mar 13, 2009, 8:36:33 PM3/13/09
to
For the autoexec, ctty is a progam to switch the console
to the serial port, and back, and so can make output invisible.

thanatoid

unread,
Mar 13, 2009, 10:11:00 PM3/13/09
to
"Kenn Caesius" <xilotea...@yahoo.com> wrote in
news:w_qdnRaGOdsNXifU...@earthlink.com:

ECHO has nothing to do with that, it's the contents of the
MSDOS.SYS file which IS editable.
Google, it's fairly simple but too much typing for here

ECHO is just if you want the screen to tell you what it's doing
but does not involve the main 2 boot files.

--
"Who knows what the OP is talking about?"
(about thanatoid)

Todd Vargo

unread,
Mar 14, 2009, 2:40:59 AM3/14/09
to

You can start your autoexec.bat with @echo off to turn off command echoing
but there is no equivalent command for config.sys.

However, you can hide autoexec and config.sys behind the startup logo (the
default installation) by reenabling logo.sys in the root of C:. These sites
should help you set it up. Logo.sys is actually a 320x400 bitmap file which
you can customize.

Contents of the Windows Msdos.sys File
http://support.microsoft.com/kb/118579

Startup screens for Windows 95/98/XP
http://www.seasip.demon.co.uk/ZX/screens.html
http://www.webtechgeek.com/How-to-Change-windows-Startup-Graphic.htm
http://cexx.org/snicker/logos.htm

--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

Kenn Caesius

unread,
Mar 14, 2009, 5:08:04 PM3/14/09
to
Thank you all for replying but I would like clarify my question as it
seems there was some confusion as to what I wanted from what file.

Essentially what I wanted to know was how to use the "echo off" command
in the autoexec.bat file so that it does not display its contents
(namely the device drivers) as the as it boots up. I remember being
able to do this but it has been so long in working with MS-DOS that I
forgot the procedure; Todd Vargo, I will have to proceed with your
suggestion.

---End of message---

foxidrive

unread,
Mar 14, 2009, 10:31:07 PM3/14/09
to
On Sat, 14 Mar 2009 13:08:04 -0800, "Kenn Caesius"
<xilotea...@yahoo.com> wrote:

>Essentially what I wanted to know was how to use the "echo off" command
>in the autoexec.bat file so that it does not display its contents
>(namely the device drivers) as the as it boots up. I remember being
>able to do this but it has been so long in working with MS-DOS that I
>forgot the procedure; Todd Vargo, I will have to proceed with your
>suggestion.
>
>---End of message---

Todd's suggestion is what I'd do if the text irritates you.

You cannot use echo off to suppress device driver text - but you can use
the ctty command.

ctty nul

every command between here will have no screen output

ctty con

You must use the ctty con command at the end of the batch file to restore
the ctty device else the keyboard and screen will be disabled.


From THE BATPOWER FAQ,

18. TIDYING SCREEN OUTPUT FROM A BATCH FILE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Q: How do I stop commands from displaying output on screen ?
A: Just re-direct their output to the 'nul' device.
E.G. PAUSE>NUL Will just wait for a keypress before
continuing, without displaying the usual message:
"Press any key to continue..."
To hide error messages as well you'll need to use:
CTTY NUL
command that displays error you don't want to see
CTTY CON
Be Careful ! While CTTY NUL : the keyboard is ignored !

Q: Sometimes when I execute a batch file after running I'm
left with more than one prompt (as if I'd hit Enter).
A: This is because the batch file has trailing carriage-
returns. Use a plain text (ASCII) editor to remove them.
Alternately, if you use: @Echo off
as the first line of the batch file, the trailing <cr>'s
will be ignored; hence, no multiple prompts.

thanatoid

unread,
Mar 15, 2009, 2:30:41 AM3/15/09
to
"Kenn Caesius" <xilotea...@yahoo.com> wrote in
news:zuCdnVobmupRtCHU...@earthlink.com:

I could be wrong, searching in deep recesses of failing memory,
but wouldn't
ECHO OFF
as first line of autoexec.bat do it?

Know1

unread,
Mar 15, 2009, 3:47:32 AM3/15/09
to

"Kenn Caesius" <xilotea...@yahoo.com> wrote in message news:zuCdnVobmupRtCHU...@earthlink.com...

In Autoexec.bat...try appending >NUL
to any commands that appear on-screen.
Some work / some don`t.

ZACK`

unread,
Mar 15, 2009, 5:50:27 AM3/15/09
to
try ontrack data recovery
http://www.ontrackdatarecovery.com.au/

"Kenn Caesius" <xilotea...@yahoo.com> wrote in message

news:w_qdnRaGOdsNXifU...@earthlink.com...

Todd Vargo

unread,
Mar 15, 2009, 9:20:52 PM3/15/09
to
ZACK` wrote:
> try ontrack data recovery
> http://www.ontrackdatarecovery.com.au/

You are WAY offtrack.

>
> "Kenn Caesius" <xilotea...@yahoo.com> wrote in message
> news:w_qdnRaGOdsNXifU...@earthlink.com...
> >I am not exactly sure if this correct newsgroup but it does involve
> > MS-DOS, as used in windows 95.
> >
> > How do use the ECHO command so that does not display the contents of the
> > autoexec.bat and config.sys as Windows 95 boots up?

--

thanatoid

unread,
Mar 16, 2009, 2:49:29 AM3/16/09
to
"Todd Vargo" <tlv...@sbcglobal.netz> wrote in
news:JXgvl.44381$l71....@newsfe23.iad:

> ZACK` wrote:
>> try ontrack data recovery
>> http://www.ontrackdatarecovery.com.au/
>
> You are WAY offtrack.

He's a troll. He posted the exact same reply to two entirely
different questions.

>>
>> "Kenn Caesius" <xilotea...@yahoo.com> wrote in
>> message
>> news:w_qdnRaGOdsNXifU...@earthlink.com...
>> >I am not exactly sure if this correct newsgroup but it
>> >does involve
>> > MS-DOS, as used in windows 95.
>> >
>> > How do use the ECHO command so that does not display the
>> > contents of the autoexec.bat and config.sys as Windows
>> > 95 boots up?
>

--

Kenn Caesius

unread,
Mar 16, 2009, 8:12:30 PM3/16/09
to
Once again thank you everyone, I thought that it would only be proper
etiquette to offer some closure on this odd problem of mine.

After some experimenting with the "echo off" command as recommended by
Todd Vargo, I have discovered the following syntax modifies the contents
of their respective so that they do not expose themselves as windows 95
boots:

Config.sys
@ECHO OFF
DEVICE=C:\Windows\HIMEM.SYS
DOS=HIGH,UMB
DEVICE=C:\Windows\EMM386.EXE NOEMS
DEVICE=C:\WINDOWS\SETVER.EXE
DEVICE=C:\DOS\CDROM\CDROM.SYS /D:MSCD001

Autoexec.bat
C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD001
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS
SET TEMP=C:\DOS\Temp
PROMPT $p$g
@ECHO OFF

Despite the success, I do not understand why it works. When I compare
this the original text of the files, I realize that not only was the
syntax of the command important but also its location within the
commands of the file.

---End of message---

Todd Vargo

unread,
Mar 16, 2009, 11:55:16 PM3/16/09
to

"Kenn Caesius" <xilotea...@yahoo.com> wrote in message
news:8-6dnTyMCufNciPU...@earthlink.com...

Move @echo off to the top of the autoexec.bat. Note, if you press the pause
key when the text begins scrolling during boot, you should see an error
message something to the effect of,

There is an invalid command in your config.sys file
There is an error in your CONFIG.SYS file on line ...

This error is caused by the @echo off in the config.sys file.

Richard Bonner

unread,
Mar 20, 2009, 6:53:42 AM3/20/09
to
Kenn Caesius (xilotea...@yahoo.com) wrote:
> Thank you all for replying but I would like clarify my question as it
> seems there was some confusion as to what I wanted from what file.

> Essentially what I wanted to know was how to use the "echo off" command
> in the autoexec.bat file so that it does not display its contents

> (namely the device drivers) as it boots up. I remember being


> able to do this but it has been so long in working with MS-DOS that I
> forgot the procedure;

*** As has been suggested, to prevent commands from being echoed to the
screen, have the first line be:

@ECHO OFF

... or use "CTTY NUL" to hide all output and then "CTTY CON" to restore
the screen and keyboard usage. You can also check each driver's
documentation to see if it has a "Quiet" mode that prevents screen output
during loading.
--------

DOS users can hide all output and substitute a splash screen during
bootup by using "BLACKOUT" by JP Morris.

One or more links to websites
for the referred program(s)
can be found at:

http://www.chebucto.ca/~ak621/DOS/Websites.html


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

0 new messages