How to modify boot. ini to make the Start menu color

Source: Internet
Author: User

The C-Packing directory of the boot. ini (hidden file) can use the ANSI control code to control the boot menu to display color, such as the following boot. INI:

Timeout=30

Default=multi (0) disk (0) rdisk (0) partition (3) WINDOWS

[Operating Systems]

multi (0) disk (0) rdisk (0) partition (2) windows= "[1;32mmicrosoft [1;34mwindows [1;33MXP Professional]/noexecute=optin/ Fastdetect

C:avldrxp.bin= "[1;36mavlgo-peldr"/noguiboot

multi (0) disk (0) rdisk (0) partition (3) windows= "[1;31mmicrosoft [1;33mwindmows [1;35msermver 2003]/noexecute=optout/ Fastdetect

C:1.bin= "[1;37mms-dos"

Effect diagram of the operation

About ANSI control codes:

The arrow + "[" declares the beginning 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, 27, respectively: default, Bold, non-bold, underline, non-underline, flashing, non-flashing, inverse, non-explicit.

30m--37m set foreground color

40m--47m set background color

Optional colors: Red, green, yellow, blue, magenta, cyan, and white.

The color codes they correspond to are:

30 (Black), 31 (red), 32 (green), 33 (yellow), 34 (blue), 35 (magenta), 36 (cyan), 37 (white).

Use the same color method to set the background color, but to replace the first number "3" with "4",

40 (Black), 41 (red), 42 (green), 43 (yellow), 44 (blue), 45 (magenta), 46 (cyan), 47 (white).

such as can [1;32m;43m bold green foreground yellow background

Warm tip: boot. INI is an important system file, carefully modified, only modify the contents of the "Microsoft Windows XP Professional" Double quotation marks, do not modify the outside Oh.

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.