The Windows XP Recovery Console Bootcfg command can edit or create a boot.ini file. It can scan you hard drives for Windows NT 4.0, Windows 2000 (NT 5.0), and Windows XP (NT 5.1) ,and update boot.ini, or recreate a missing one.

The /add switch scans for all versions of Windows NT and displays the result:

Scanning all disks for Windows Installations                              Please wait, since this may take a while...                              Total Identified Windows Installs: 2                              \[1\] C:\Windows                              \[2\] D:\Windows                              Select installation to add: (select a number)                              Enter Load Identifier: (Custom description for an operating system loading from the Boot menu)                              Enter Operating System Load Options: (/fastdetect)
This process adds a new entry, which becomes the default selection.

The /default switch automatically selects a new default selection.

The /rebuild switch is similar to the /add switch:

Scanning all disks for Windows Installations                              Please wait, since this may take a while...                              Total Identified Windows Installs: 2                              \[1\] C:\Windows                              Add installation to boot list? (Yes/No/All):                              Enter Load Identifier: (Custom description for an operating system loading from the Boot menu)                              Enter Operating System Load Options: (that is: /fastdetect)                              \[2\] D:\Windows                              Add installation to boot list? (Yes/No/All):                              Enter Load Identifier: (Custom description for an operating system loading from the Boot menu)                              Enter Operating System Load Options: (that is: /fastdetect)
The /scan switch displays:
Scanning all disks for Windows Installations                              Please wait, since this may take a while...                              Total Identified Windows Installs: 2                              \[1\] C:\Windows                              \[2\] D:\Windows
The /list switch displays the boot.ini file:
Total entries in boot list: 2                              \[1\] Microsoft Windows Whistler Professional                              Operating System Load Options: /fastdetect                              Operating System Location: D:\Windows                              \[2\] Microsoft Windows Whistler Server                              Operating System Load Options: /fastdetect                              Operating System Location: C:\Windows
The /redirect switch enables redirection in the boot loader for the Headless Administration feature. You might enter:

bootcfg /redirect com1 115200 or
bootcfg /redirect useBiosSettings

To disable the redirection:

bootcfg /disableredirect