General discussion

Locked

Editing Properties of the Command Prompt

By kshipley ·
How do you change the background color of the command prompt window in Win 98 and Win 98SE?

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Editing Properties of the Command Prompt

by jmstitt In reply to Editing Properties of the ...

One way to do this is to hit start, go to run. Type "command" and hit enter. When the command window appears, select the properties button for the window. It is the button with the hand pointing to a sheet button. Then you can adjust all the properties for the command window. You could also edit the properties for the command prompt itself. It is located in c:\windows and is called command.com. You can edit it properties directly. You could also hit the start button, go to programs and look for the selection "ms-dos prompt." Then right click on it and go to properties. That would also give you the properties sheets for the command prompt.

HTH

Collapse -

Editing Properties of the Command Prompt

by kshipley In reply to Editing Properties of the ...

I tried this before posting my request.
This only works with NT.

Thank you for your time.

Collapse -

Editing Properties of the Command Prompt

by Ann777 In reply to Editing Properties of the ...

For Win95, 98, 98se... do the below (I believe the previous answer only works with WinNT):

In CONFIG.SYS ... add a line that says DEVICE=C:\WINDOWS\COMMAND\ANSI.SYS and then save and reboot.

Then you can play with prompts and colors by typingthings like:

prompt $e[30;41m$p$g$e[37;44m (sets a directory in black with red text, and typing will be white on a blue background.

prompt $e[0m$p$g (returns everything back to normal).
prompt '.../\...' will prompt with .../\... (so you can draw if you like)

You can place prompt commands in AUTOEXEC.BAT if you want the color changes (or whatever changes) to start when the computer boots.

Here's the list of what you can do with ANSI.SYS :
$g = the greater than sign
$l = the less than sign
$b = the vertical bar
$q = the equal sign
$t = the time
$d = the date
$v = the DOS version
$n = default drive letter
$p = current directory
$e = the escape character
$h = is a destructive backspace (you can erase the milliseconds of time)
$_ = a line feed or hard return
$$ = the dollar sign

And I'll put the colors in a comment.... I'm probably nearing the 1930 character limit here.

Collapse -

Editing Properties of the Command Prompt

by Ann777 In reply to Editing Properties of the ...

Colors:
0=all attributes off (white on balack bkgrd)
1=high intensity (bold)
2=normal intensity
4=underline (monochrome monitors only)
5=blink
7=reverse video
8=invisible
30=black foreground
31=red foreground
32=greenforeground
33=yellow foreground
34=blue foreground
35=magenta foreground
36=cyan foreground
37=white foreground
40=black background
41=red background
42=green background
43=yellow background
44=blue background
45 magenta background
46=cyan background
47=whitebackground

Collapse -

Editing Properties of the Command Prompt

by kshipley In reply to Editing Properties of the ...

Looks promising. Thank you for your time and detail.

Collapse -

Editing Properties of the Command Prompt

by kshipley In reply to Editing Properties of the ...

This question was closed by the author

Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums