[net.micro.pc] ECHO OFF in batch files in MS-DOS 3.1 and PC-DOS 3.2

reintom@rocky2.UUCP (Tom Reingold) (07/07/86)

A little while back, I asked for help in setting ECHO to OFF
as the default in batch files.  I use Zenith's MS-DOS, not
IBM's PC-DOS.  I don't know what version of PC-DOS my
version corresponds to.  When I type "ver", I get

IO.SYS Version 3.05
MS-DOS Version 3.10

I am posting my finding for anyone else who is looking for
what I needed.

With the suggestion from nasser@ucbvax.Berkley.EDU, I looked
for all values of 01 between offsets 1900 and 1cff.  I found
ten of them and, one by one, changed them to 00 and tried
each copy to see the effect.  Upon the third try, I found
that changing 01 to 00 at offset 1987, ECHO was OFF in batch
files unless it was turned ON with an "echo on" statement.

He also said that he had to do the same at offset 1b1c for
his version, which I think was PC-DOS version 3.2.

This is a catch-as-catch-can method for making these changes
and I have no idea how people can do so much by reading
values in an executable file, but I am pleased and impressed
anyway.

Tom Reingold