The Bootcfg CMD command is a Windows command line utility that allows users to modify the boot configuration data stored in the boot.ini file. This command is used to set or change the boot configuration options, such as the default operating system, the timeout value, and the boot menu options. Bootcfg can also be used to create a new boot configuration file, or to repair an existing one.
Syntax of the Bootcfg CMD Command
The syntax of the Bootcfg CMD command is as follows:
- bootcfg [/add] [/copy] [/debug] [/default] [/delete] [/disable] [/enable] [/list] [/scan] [/rebuild] [/raw] [/timeout] [/displayorder] [/remove] [/syspart] [/bootlog] [/win95dos]
The following table provides a description of each of the options available with the Bootcfg CMD command.
Option | Description |
---|---|
/add | Adds a new entry to the boot configuration data. |
/copy | Copies the boot configuration data from one system to another. |
/debug | Enables debugging of the boot configuration data. |
/default | Sets the default operating system. |
/delete | Deletes an entry from the boot configuration data. |
/disable | Disables an entry in the boot configuration data. |
/enable | Enables an entry in the boot configuration data. |
/list | Lists the entries in the boot configuration data. |
/scan | Scans the system for bootable devices. |
/rebuild | Rebuilds the boot configuration data. |
/raw | Displays the raw boot configuration data. |
/timeout | Sets the timeout value for the boot menu. |
/displayorder | Sets the display order for the boot menu. |
/remove | Removes an entry from the boot configuration data. |
/syspart | Sets the system partition. |
/bootlog | Enables or disables boot logging. |
/win95dos | Enables or disables the Windows 95/98 boot menu. |
Examples of Using the Bootcfg CMD Command
The following are some examples of using the Bootcfg CMD command.
Example 1: List the Entries in the Boot Configuration Data
To list the entries in the boot configuration data, use the following command:
- bootcfg /list
Example 2: Set the Default Operating System
To set the default operating system, use the following command:
- bootcfg /default OS
Where OS is the name of the operating system you want to set as the default.
Example 3: Set the Timeout Value for the Boot Menu
To set the timeout value for the boot menu, use the following command:
- bootcfg /timeout 30
Where 30 is the number of seconds you want the boot menu to wait before automatically booting the default operating system.
Conclusion
The Bootcfg CMD command is a useful utility for modifying the boot configuration data stored in the boot.ini file. It can be used to set or change the boot configuration options, such as the default operating system, the timeout value, and the boot menu options. Bootcfg can also be used to create a new boot configuration file, or to repair an existing one.