[net.micro.pc] Shutting up the batch files

singhal@hound.UUCP (S.SINGHAL) (04/24/86)

This is in response to all the questions about how to set echo off as the
default for all batch files.  Following is an article which was posted on the
net last year and I had saved it.  I used it and it works perfectly and
provides me with exactly the environment I want.

---------------------------------------------------------------------------
Thanks to all who replied, or posted answers, to my original query. Since
I wanted a totally quiet set of batch files, including autoexec.bat, I made
the two changes below to my command.com.  My .bat files now run silently
without the need for "echo off" as the first line, and without any need to
erase the unwanted "echo off" echo.  The first correction shuts up the
autoexec.bat file on its first invocation, the second speads quiet over
both normal .bat files and those invoked with a second command.com, yet
lets the DOS prompt show up when needed.  Ideal.  Just the way Microsoft
could have done it in the first place.

>From: Mark D. Freeman, who credits
PC Magazine, November 26, 1985, page 235:

To set the default to echo off in both autoexec.bat and other batch files for
DOS 3.1 only:

debug command.com
-e 105B 2
-e 1967 0
-w
-q

Now, if I could just get the VDISK setup routine to do its job without
bragging about it on the screen ...

--------------------------------------------------------------------

---Sharad Singhal

courtney@hp-pcd.UUCP (courtney) (04/29/86)

This is great, but what about those of us running DOS 2.x ???
Anyone have the ECHO OFF patch for these versions?

ear@duke.UUCP (Eric A. Raymond) (05/01/86)

In article <1727@hound.UUCP> singhal@hound.UUCP (S.SINGHAL) writes:

>
>To set the default to echo off in both autoexec.bat and other batch files for
>DOS 3.1 only:
>

Does anyone out there have similar patches for DOS 3.0 ?

>
>Now, if I could just get the VDISK setup routine to do its job without
>bragging about it on the screen ...
>

That's easy, just redirect the output to the null device (nul:).
(i.e. append "> nul:" at the end of your Device= line in your config.sys)


-- 
Eric A. Raymond                                   UUCP: ...decvax!mcnc!duke!ear