Не могу разобраться с [more=батником]
Код: @echo off
color 3b
REM
http://www.onestyle.com.ua/txt.php?u=585 REM
http://www.wapbbs.com/bbs/archive/index.php/t-143141&goto=lastpage REM Указываем файл для модификации
set "BCD-File=C:\!newBCD\BCD"
if exist %BCD-File% del %BCD-File%
Bcdedit /createstore %BCD-File%
Bcdedit /store %BCD-File% /create {bootmgr}
Bcdedit /store %BCD-File% /set {bootmgr} description "Windows Boot Manager"
:: Устаноить время ожидания
Bcdedit /store %BCD-File% /set {bootmgr} timeout 7
Bcdedit /store "%BCD-File%" /set {bootmgr} nointegritychecks 1
Bcdedit /store %BCD-File% /create {ramdiskoptions}
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdidevice boot
Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
:: Создаём первый пункт меню
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /application osloader') do set guid1=%%c
Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid1% detecthal Yes
Bcdedit /store %BCD-File% /set %guid1% winpe Yes
Bcdedit /store %BCD-File% /set %guid1% ems No
REM Bcdedit /store %BCD-File% /set %guid1% locale ru-ru
REM Bcdedit /store %BCD-File% /set %guid1% inherit {bootloadersettings}
REM Bcdedit /store %BCD-File% /set %guid1% path \windows\system32\boot\winload.exe
Bcdedit /store %BCD-File% /set %guid1% osdevice ramdisk=[boot]\sources\Make_PE3.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid1% device ramdisk=[boot]\sources\Make_PE3.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid1% description "WinPe - 260 ЊЎ"
:: Создаём второй пункт меню
for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /application osloader') do set guid2=%%c
Bcdedit /store %BCD-File% /set %guid2% systemroot \Windows
Bcdedit /store %BCD-File% /set %guid2% detecthal Yes
Bcdedit /store %BCD-File% /set %guid2% winpe Yes
Bcdedit /store %BCD-File% /set %guid2% ems No
REM Bcdedit /store %BCD-File% /set %guid2% locale ru-ru
REM Bcdedit /store %BCD-File% /set %guid2% inherit {bootloadersettings}
REM Bcdedit /store %BCD-File% /set %guid2% path \windows\system32\boot\winload.exe
Bcdedit /store %BCD-File% /set %guid2% osdevice ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid2% device ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}
Bcdedit /store %BCD-File% /set %guid2% description "WinPe - 245 ЊЎ -®ў®Ґ"
Bcdedit /store %BCD-File% /create {ntldr} /d "Microsoft Windows XP"
Bcdedit /store %BCD-File% /set {ntldr} device partition=C:
Bcdedit /store %BCD-File% /set {ntldr} path \ntldr
:: Отображать 4 пункта в загрузочном меню
Bcdedit /store %BCD-File% /set {bootmgr} displayorder %guid1% %guid2% {ntldr}
:: Установить пункт меню по умолчанию
Bcdedit /store %BCD-File% /default %guid2%
REM Bcdedit /store %BCD-File% /default {ntldr}
pause
cls
Bcdedit /store %BCD-File% /enum all /v
pause