The boot. ini (hidden file) in the C drive root directory can use the ANSI control code to control the color displayed in the Startup menu.CodeTo design a colorful Windows boot menu. This also helps you understand the ANSI control code and its escape. Of course, the color menu is also very personalized.
The boot. ini (hidden file) in the C root directory can use the ANSI control code to control the color displayed in the Startup menu, for example, the following boot. ini:
Code:
Timeout = 30
Default = multi (0) disk (0) RDISK (0) Partition (3)/Windows
[Operating systems]
Multi (0) disk (0) RDISK (0) Partition (2)/Windows = "[1; 32 mmicrosoft [1; 34 mwindows [1; 33mxp professional "/noexecute = optin/fastdetect
C:/avldrxp. bin = "[1; 36 mavlgo-peldr"/noguiboot
Multi (0) disk (0) RDISK (0) Partition (3)/Windows = "[1; 31 mmicrosoft [1; 33 mwindmows [1; 35 msermver 2003 "/noexecute = optout/fastdetect
C:/1.bin= "[1; 37mms-dos"
Running
ANSI control code:
The arrow + "[" declares the start of the escape sequence
The following "1" defines the default font width. For text attributes, these values are meaningful: 0, 1, 22, 4, 24, 5, 25, 7, and 27, respectively: default Value: bold, non-bold, underline, non-underline, flickering, non-blinking, reverse, non-reversed.
30 m -- 37 m set the foreground color
40 m -- 47 m set the background color
Optional colors: Red, green, yellow, blue, magenta, cyan, and white.
Their corresponding color code is:
30 (black), 31 (red), 32 (green), 33 (yellow), 34 (blue), 35 (magenta), 36 (blue), 37 (white ).
Set the background color using the same color method. However, replace the first digit "3" with "4", 40 (black), 41 (red), and 42 (green), 43 (yellow), 44 (blue), 45 (Foreign red), 46 (blue), 47 (white ).
For example, [1; 32 m; 43 m bold Green foreground yellow background
Note:
Boot. INI is an important file in the system. Modify it with caution. modify the content in double quotation marks such as "Microsoft Windows XP Professional". Do not modify the content outside!
> Click to learn more about Vista skills <
ArticleCopyright from http://vista.zol.com.cn owned by original author