Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!think!ames!ptsfa!ihnp4!inuxc!iuvax!bobmon From: bobmon@iuvax.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: DOS command in batch file does not work when "echo off" Message-ID: <3350@iuvax.UUCP> Date: Mon, 16-Mar-87 20:05:59 EST Article-I.D.: iuvax.3350 Posted: Mon Mar 16 20:05:59 1987 Date-Received: Wed, 18-Mar-87 01:35:59 EST References: <5792@mimsy.UUCP> Reply-To: bobmon@iuvax.UUCP (RAMontante) Organization: Indiana University, Bloomington Lines: 31 Summary: "prompt" works for me. --> Also, a question/request. deba@mimsy.UUCP (Deba Patnaik) writes: >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 > [...] I'm using (Zenith's release of) MSDOS v3.1, with (Zenith's version of) a CGA card. I do just this in my AUTOEXEC.BAT file; the very first line is "echo off" and a subsequent line defines a fairly long and involved prompt (33 char's that set up four different colors...). It works fine for me. The differences that I can see between my .BAT file and the example are that my "prompt..." command is on a line by itself rather than being the end of an "if" statement, and I have some other "echo..." commands between the initial "echo off" and the "prompt..." (intermediate colors, etc.). Which sort of brings me to my question/request. A while ago there was much posting about patches to make "echo off" the default. I saw patches specifying at least two different locations. Unfortunately, _my_ MSDOS didn't have the indicated original value in *either* location, so I haven't made the patch. So, does anyone have an "echo off" patch that will work with Zenith's MSDOS v3.1? Even more important (to me), can anyone supply some context for this patch? That is, what are the preceding and following byte values? Is the value-to-be-changed in code, or a data table, or what? ~-~-~-~-~ RAMontante (iuvax!bobmon) Computer Science "Have you hugged ME today?" Indiana University