[net.micro.pc] PC-DOS 3.1 and "echo off"

nather@utastro.UUCP (Ed Nather) (01/18/86)

I am using a patched version of command.com for PC-DOS 2.1 that
sets the batch file interpreter to the "echo off" condition by default, and
it is great!  .bat files run silently, without screen chatter, as they
should.

For several reasons (none very good) I'd like to use PC-DOS 3.1, but not at
the expense of bat-chatter.  If anyone knows how to patch the 3.x command.com
so it runs .bat files silently, please send it to me, or post it to the net.
The patch for 2.x I am using does not work on 3.x (*sigh*).  I have a kludge
that erases the "echo off" which is echoed when the batch command "echo off"
is executed, but it is irritating after getting used to the real thing.

Thanks.

-- 
Ed Nather
Astronomy Dept, U of Texas @ Austin
{allegra,ihnp4}!{noao,ut-sally}!utastro!nather
nather@astro.UTEXAS.EDU

connery@bnrmtv.UUCP (Glenn Connery) (01/21/86)

From Compuserve... the patch for echo off is as follows:

   debug COMMAND.COM
   -E 1967<cr>
   xxxx:1967  01.00<cr>
   -W<cr>
   -Q<cr>

Seems to work just perfectly--it doesn't have the bug some other patches
exhibit which disables the prompts during a nested COMMAND.COM session.

Glenn

connery@bnrmtv.UUCP (Glenn Connery) (01/23/86)

A better patch for avoiding the floppy diskette timeout problems on ATs
running xtals >15MHz...
;
; Change Diskette Parameter Table's motor startup delay
; by Glenn Connery, BNR, January 1986.
;
; The Diskette Parameter Table is pointed to by interrupt vector 1E at
; address 78H.  The table consists of 11 bytes (0..A) the last of which
; is the motor start up time, in 1/8ths of a second (normal clock).  By
; modifying this value you can correct for the faster crystal installed
; in your PC-AT.
;
; The normal value is 8 (is 1 second).  Running a 9MHz machine instead of
; a 6MHz machine means that 0C (or 1.5 seconds normal time) should be used.
;
; No warranty is made of the suitability of this program for any purpose
; nor any guarantee that it will function as specified.  Use it at your
; own risk.
;
code          segment   public
	      assume    cs:code,ds:nothing
	      org       100h
;
start:        mov       ax,0
	      mov       ds,ax
;
	      mov       bx,ds:[78h]     ;offset
	      mov       es,ds:[7Ah]     ;segment
;
; and finally, stuff the new delay period into the appropriate place in the
; table... this is the byte to change for different crystal speeds
;
	      mov       byte ptr es:[bx+0Ah],0CH
;
exit:         mov       al,0
	      mov       ah,4ch
	      int       21h
;
code          ends
	      end       start

-----
Glenn

cgf@infinet.UUCP (Chris Faylor) (01/24/86)

In article <284@utastro.UUCP> nather@utastro.UUCP (Ed Nather) writes:
>I am using a patched version of command.com for PC-DOS 2.1 that
>sets the batch file interpreter to the "echo off" condition by default ...
>
>...  If anyone knows how to patch the 3.x command.com
>so it runs .bat files silently, please send it to me, or post it to the net.
>...

I have installed a patch for 3.1 that does this, but I've lost it.
Problem is, it does not stifle the chatter from autoexec.bat.  Does anyone
know of a patch to set echo to "OFF" for autoexec.bat?
-- 
			-cgf-

I feel more like I do now than I did when I first got here.

		decvax!wanginst!infinet!cgf
		emacs!infinet!cgf@cca-unix.ARPA

nather@utastro.UUCP (01/26/86)

> Problem is, it does not stifle the chatter from autoexec.bat.  Does anyone
> know of a patch to set echo to "OFF" for autoexec.bat?
> 			-cgf-
> 

Here's a kludge that works, if you have the ansi.sys driver installed by
your config.sys file.  First two lines in autoexec.bat:

      echo off
      echo <ESC>[A<ESC>[K<ESC[A

where <ESC> is the ASCII code for Escape.  Works for either DOS 2.x or 3.x.

It just erases the "echo off" echo, it doesn't really fix the problem.

Aside: can anyone at Microsoft explain why the DOS 2.x "link" program would
accept either "/" or "\" as a pathname separator, but the new, improved
linker that comes with Microsoft C v3.0 accepts ONLY "\"?  Is this a product
improvement you are proud of?

-- 
Ed Nather
Astronomy Dept, U of Texas @ Austin
{allegra,ihnp4}!{noao,ut-sally}!utastro!nather
nather@astro.UTEXAS.EDU

2212msr@whuts.UUCP (ROBIN) (02/04/86)

> For several reasons (none very good) I'd like to use PC-DOS 3.1, but not at
> the expense of bat-chatter.  If anyone knows how to patch the 3.x command.com
> so it runs .bat files silently, please send it to me, or post it to the net.
> The patch for 2.x I am using does not work on 3.x (*sigh*).  I have a kludge
> that erases the "echo off" which is echoed when the batch command "echo off"
> is executed, but it is irritating after getting used to the real thing.
> 
> Thanks.
> 
> -- 
> Ed Nather
> Astronomy Dept, U of Texas @ Austin
> {allegra,ihnp4}!{noao,ut-sally}!utastro!nather
> nather@astro.UTEXAS.EDU

This patch changes echo default to echo off (DOS 3.1 only!).

debug command.com
-e 1967<cr>
xxxx:1967   01.00<cr>
-w <cr>
writing xxxx bytes
-q<cr>

Max S. Robin
AT&T Bell Laboratories
Rm. 3E-318A
Whippany, NJ 07981
201-386-6865
email:whuxg!2212msr