[comp.sys.ibm.pc] DOS command doesn't work in batch file when "echo off"

brandon@tdi2.UUCP (03/18/87)

Quoted from <5792@mimsy.UUCP> ["DOS command in batch file does not work when "echo off""], by deba@mimsy.UUCP (Deba Patnaik)...
+---------------
| PROMPT command does not work when "ECHO OFF'" but works when
| "ECHO ON". These are the lines in the batch file.
| 
| ECHO OFF
| IF %1 == RED PROMPT $e[41m
| IF %1 == GREEN PROMPT $e[42m
| 
| If you have a CGA card try it with echo on and off. If you know
| the reason why it does not work please let me know. Hope it is
| not a bug in 3.1 DOS.
+---------------

Works fine from AUTOEXEC.BAT on both mono and color (different prompt strings,
of course) under DOS 2.11 and DOS 3.1, on my system.

++Brandon
-- 
``for is he not of the Children of Luthien?  Never shall that line fail, though
the years may lengthen beyond count.''  --J. R. R. Tolkien

Brandon S. Allbery	           UUCP: cbatt!cwruecmp!ncoast!tdi2!brandon
Tridelta Industries, Inc.         CSNET: ncoast!allbery@Case
7350 Corporate Blvd.	       INTERNET: ncoast!allbery%Case.CSNET@relay.CS.NET
Mentor, Ohio 44060		  PHONE: +1 216 255 1080 (home) +1 216 974 9210