Article View: net.micro.pc
Article #5959Re: silent batch files
From: Glenn Connery
Date: Fri, 14 Mar 1986 22:02
Date: Fri, 14 Mar 1986 22:02
69 lines
2610 bytes
2610 bytes
This has been asked before and presumably will be again. I thought I
might as well do a general posting. Again, those who may need this in
the future please save it.
DOS 3.0 Patch for noecho in batch files:
========================================
Following is a file containing debug commands to default to noecho
for the DOS 3.0 command.com. it consists of two sections--the code
section sets echo off for normal batch files, and the one byte
patch sets echo off for autoexec.bat. from pcshare june/85.
simply perform the command:
debug command.com <noecho.dbg
and this file will do the rest. make sure to copy your command.com
before doing this, just in case...
-----------------cut here (create noecho.dbg)------------------
r
d a60 l 2
e a60 00 00
d 180c l 2
e 180c a8 2c
e 18b8 01
e 35ce 00
e 35d4 00
d 44b3 l 12
e 44b3 0d 0a 00 50 1e 55 89 e5 8b 46 08
d 44be l 12
e 44be 8e d8 e8 0d f1 5d 1f 58 e9 f8 e2
u 180b l 3
u 44b3
w
q
-----------------cut here--------------------------------------
DOS 3.1 Patch for noecho in batch files:
========================================
The following is from a general Compuserve posting for DOS 3.1:
DEBUG COMMAND.COM
-E 1967<cr>
xxxx:1967 01.00<cr>
-W<cr>
-Q<cr>
Note 1: The default for AUTOEXEC.BAT files will still be ECHO OFF.
Note 2: If the last thing done in a .BAT file is to do ECHO ON, then
you will get two prompts at exit.
The following is from Calvin R. Shields as reprinted in PC Mazazine Vol. 4
No. 4, p. 235 and will set ECHO OFF in your AUTOEXEC.BAT file.
DEBUG COMMAND.COM
-E 105B<cr>
xxxx:105B 03.02<cr>
-W<cr>
-Q<cr>
There are patches for earlier versions of DOS that I used to have, and
I'm sure they're around someplace, but I seem to have lost them along the
way. I know that they're still around someplace on PC Share if anyone
needs them...
--
Glenn Connery, Bell Northern Research, Mountain View, CA
{hplabs,amdahl,3comvax}!bnrmtv!connery
Technical Details
Message-ID:
<282@bnrmtv.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!hplabs!amdahl!bnrmtv!conneryReferences:
<11592@watnot.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bnrmtv.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!hplabs!amdahl!bnrmtv!connery From: connery@bnrmtv.UUCP (Glenn Connery) Newsgroups: net.micro.pc Subject: Re: silent batch files Message-ID: <282@bnrmtv.UUCP> Date: Fri, 14-Mar-86 17:02:55 EST Article-I.D.: bnrmtv.282 Posted: Fri Mar 14 17:02:55 1986 Date-Received: Sun, 16-Mar-86 08:40:43 EST References: <11592@watnot.UUCP> Distribution: net Organization: Bell Northern Research, Mtn. View, CA Lines: 69