The bootcfg command is a Recovery Console command used to build or modify the boot.ini file, a hidden file that is used to identify in what folder, on which partition, and on which hard drive Windows is located.
bootcfg /list
/list = This option will list every entry in the boot list in the boot.ini file.
bootcfg /scan
/scan = Using this option will instruct bootcfg to scan all drives for installations of Windows and then display the results.
bootcfg /rebuild
/rebuild = This option will step you through the process of rebuilding the boot.ini file.
bootcfg /default
/default = the /default switch sets the default boot entry in the boot.ini file.
bootcfg /add
/add = This option allows for the manual entry of a Windows installation in the boot.ini boot list.
bootcfg /rebuild
In the above example, the bootcfg command scans all drives for any Windows installations, displays the results, and steps you through building the boot.ini file.
The bootcfg command is only available from within the Recovery Console in Windows 2000 and Windows XP.

