BootPrep Advanced Commands

The following table shows advanced task code samples.

Task Syntax
Display the online Help. A:\>BootPrep /?
Copy the PARTITION BOOT sector to A:\Bootrec.old. Command runs in read-only mode. A:\>BootPrep /r
Copy the PARTITION BOOT sector to A:\Bootrec.old and copy the master boot record sector to A:\Mbr.old. Command runs in read-only mode. A:\>BootPrep /r /mmbr.old
Copy the PARTITION BOOT sector to A:\Bootrec.old. Command runs in read-only mode. A:\>BootPrep /r /m
Copy the PARTITION BOOT sector of drive C to A:\Bootrec.old, and then replace it with a new PARTITION BOOT sector using internal data. Command runs in read/write mode. A:\>BootPrep
Replace the PARTITION BOOT sector with a new sector using internal data. Command runs in read/write mode.

The new sector is not saved because you have specified no output file for the old partition boot record.

A:\>BootPrep /b.
Copy the PARTITION BOOT sector of the F drive to A:\Bootrec.old, and then replace it with a new PARTITION BOOT sector using internal data. Command runs in read/write mode. A:\>BootPrep /dF.
Copy the PARTITION BOOT sector of the C drive to A:\Bootrec.old, and then replace it with a new PARTITION BOOT sector from A:\SectFile.Sec. Command runs in read/write mode. A:\>BootPrep /iSectFile.sec.
Automatically answer "Yes" to all questions. Command runs in read/write mode.

This command copies the PARTITION BOOT sector of the C drive to A:\Bootrec.old, and then replaces it with a new PARTITION BOOT sector using internal data.

A:\>BootPrep /y

The following table shows examples of incorrectly formatted commands.

Syntax Result
A:\>BootPrep /r /b /m Command runs in read-only mode.

No action occurs because you have specified no output file for the partition boot record or the master boot record.

A:\>BootPrep /r /b Command runs in read-only mode.

No action occurs because you have specified no output file for the partition boot record.

See Also

BootPrep | BootPrep Commands | CompactFlash

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.