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
Quote
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
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.



Help
Back to top









