Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!cwruecmp!hal!ncoast!tdi2!brandon From: brandon@tdi2.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: DOS command doesn't work in batch file when "echo off" Message-ID: <149@tdi2.UUCP> Date: Wed, 18-Mar-87 12:01:59 EST Article-I.D.: tdi2.149 Posted: Wed Mar 18 12:01:59 1987 Date-Received: Sun, 22-Mar-87 21:44:53 EST References: <5792@mimsy.UUCP> Reply-To: brandon@tdi2.UUCP (Brandon Allbery) Followup-To: comp.sys.ibm.pc Organization: Tridelta Industries, Inc., Mentor, OH Lines: 26 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