Jump to content

Help to edit BCD file


cnckane

Recommended Posts

Hello!

I want create a multiboot DVD, but I don't know how can I edit the BCD file.

I have 2 wim files .

How can I add these files to the bcd?

Rem BCD (boot configuration data) editor for multiple vista pe

REM THIS IS THE ORIGINAL BCD FILE EXTRACTED FROM ANY VISTA WINPE / VISTA DVD (I USED VISTA INSTALLATION)

set BCD-File="c:\bcd 1\BCD"

REM SET THE NAME FOR THE VISTA PE HERE

set pename="Your PE Name"

REM SET THE NAME FOR THE WIM.FILE HERE WITH PATH

set filena=[boot]\sources\bootsdf.wim

for /f "eol=r tokens=1-2" %%a in ('bcdedit /store %BCD-File% /ENUM all') do set rdo=%%b

for /f "tokens=1-7" %%a in ('Bcdedit /store %BCD-File% /copy {default} /d %pename%') do set guid1=%%g

bcdedit /store %BCD-File% /set %guid1:~0,38% DEVICE ramdisk=%filena%,%rdo%

bcdedit /store %BCD-File% /set %guid1:~0,38% OSDEVICE ramdisk=%filena%,%rdo%

bcdedit /store %BCD-File% /ENUM

I tried this bat, but always adds boot.wim file, and I can"t delet the odler BCD entry.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...