Tip: Modify boot. ini to generate color boot menus.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.