Computing.Net > Forums > Disk Operating System > Text color for menu.bat

Text color for menu.bat

Reply to Message Icon

Original Message
Name: matt simon
Date: January 20, 2006 at 09:31:35 Pacific
Subject: Text color for menu.bat
OS: any
CPU/Ram: any
Comment:

I have a boot disk with a menu.bat file. Can I change the color of the text that displays when I run the menu.bat file?

I know you can do it within a config.sys file, but can you in a .bat file?

- Matt


Report Offensive Message For Removal


Response Number 1
Name: Grusomhat
Date: January 20, 2006 at 09:59:20 Pacific
Subject: Text color for menu.bat
Reply: (edit)

Yes if it is a bat file you can edit it by right clicking it and going edit. And you will need to put in "Color " and after color you will need to type in what colors you want accoriding to the following list
Numbers are background colors, letters a text
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White
example "Color 0c" Would have a black background and red text.

You will need to type this in probaly after
"@echo off" which will most likely be at the top. If there is allready a color there just alter that one.

To find out which colors you like just open a command prompt and type in color the same way you would in the bat file.

Ignorance is Bliss but Knowledge is Power


Report Offensive Follow Up For Removal

Response Number 2
Name: jboy
Date: January 20, 2006 at 17:24:27 Pacific
Subject: Text color for menu.bat
Reply: (edit)

I don't think so (a little too much 'bliss' perhaps?)

Not so much rightclicking in DOS either

I have never heard of "color" as an M$-DOS command - - source?

The colours supported in config.sys are part of the multiconfig options (menucolor) - to employ coloured text in a batch file something like ANSI.SYS must be loaded from config.sys

Please use the specs field correctly - "any" is just so much BS, and not exactly helpful

I agree; Computing.Net participants need to proofread


Report Offensive Follow Up For Removal

Response Number 3
Name: Grusomhat
Date: January 20, 2006 at 17:38:30 Pacific
Subject: Text color for menu.bat
Reply: (edit)

jboy i Clicked onto this from the general forums menu not realising that it is in the dos section. And having no o/s displayed didnt help. I will be more carefull when i post next time.

matt simon make sure you fill out details instead of just "any"

Ignorance is Bliss but Knowledge is Power


Report Offensive Follow Up For Removal

Response Number 4
Name: jboy
Date: January 20, 2006 at 17:48:58 Pacific
Subject: Text color for menu.bat
Reply: (edit)

Heh - ok, that'd explain it then

I've often said these forums need colour coding or a fetching graphic to differentiate them.

The assumption is that 'matt' is using some form of DOS by the reference to config.sys, but specific instructions would depend on just what version & type

I agree; Computing.Net participants need to proofread


Report Offensive Follow Up For Removal

Response Number 5
Name: bebop
Date: January 25, 2006 at 06:43:45 Pacific
Subject: Text color for menu.bat
Reply: (edit)

set textColor = color[yellow on blue]


Report Offensive Follow Up For Removal


Response Number 6
Name: bebop
Date: January 25, 2006 at 07:05:46 Pacific
Subject: Text color for menu.bat
Reply: (edit)

sorry, I was to hasty...
it is only:
color [and a hexnumber]
such as:
color fc
will give a white backgroun and red text
test in cmd window
or have a look at:
http://www.robvanderwoude.com/index.html


Report Offensive Follow Up For Removal

Response Number 7
Name: jboy
Date: January 27, 2006 at 07:13:15 Pacific
Subject: Text color for menu.bat
Reply: (edit)

Really?

You are quite mistaken - none of that is native to standalone M$-DOS (there are no 'windows' CMD or otherwise)

Science is built up with facts, as a house is with stones. But a collection of facts is not more a science than a heap of stones is a home


Report Offensive Follow Up For Removal

Response Number 8
Name: Mechanix2Go
Date: January 27, 2006 at 21:09:48 Pacific
Subject: Text color for menu.bat
Reply: (edit)

There's no COLOR command, either.

Well... maybe in DOS 17.2.36; but we're not there yet.


If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Response Number 9
Name: jboy
Date: January 28, 2006 at 11:40:07 Pacific
Subject: Text color for menu.bat
Reply: (edit)

Heh - sure. Frequently folks want a little more colour in their command line beyond the hard wired grey.

Traditionally you used ANSI or some other console driver, or there were command line gizmos from Norton et al - the menucolor option wasn't until DOS6, and wouldn't last much beyond the boot menu

One of the first 'neat' things I remember doing in DOS was patching command.com with debug to change the default colour

Science is built up with facts, as a house is with stones. But a collection of facts is not more a science than a heap of stones is a home


Report Offensive Follow Up For Removal

Response Number 10
Name: Zenith
Date: January 31, 2006 at 15:54:18 Pacific
Subject: Text color for menu.bat
Reply: (edit)

http://www.computerhope.com/ansisys.htm#06

WILL POST FOR FOOD.



Report Offensive Follow Up For Removal

Response Number 11
Name: mbisgeier
Date: February 20, 2006 at 09:47:35 Pacific
Subject: Text color for menu.bat
Reply: (edit)

The old Norton Utilities had a little program called sa.exe (for "System Attributes") - if you had ansi.sys loaded as a device in config.sys, you could use sa to set colors, e.g., "sa bri whi on blu" sets the screen to bright white text on a blue background. I use this all the time on the DOS machine.


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Text color for menu.bat

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge