@echo off pushd %~dp0 bcdedit > nul if errorlevel 1 goto _ADMIN :_SRC for %%A in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do ( if exist %%A\boot.sdi ( if exist %%A\boot.wim set SRC=%%A ) ) :_RAMDISK bcdedit /create {ramdiskoptions} /d "Ramdisk ¿É¼Ç" bcdedit /deletevalue {ramdiskoptions} description bcdedit /set {ramdiskoptions} ramdisksdidevice partition=%SRC% bcdedit /set {ramdiskoptions} ramdisksdipath \boot.sdi bcdedit /create /d "PE·Î ºÎÆÃÇϱâ" /application OSLOADER > GUIDTEMP.TXT :_KOR for /F "tokens=1" %%B in (GUIDTEMP.TXT) do ( bcdedit /set %%B device ramdisk=[%SRC%]\boot.wim,{ramdiskoptions} if errorlevel 1 goto _ENG bcdedit /set %%B osdevice ramdisk=[%SRC%]\boot.wim,{ramdiskoptions} bcdedit /set %%B path \windows\system32\winload.exe bcdedit /set %%B systemroot \windows bcdedit /set %%B winpe yes bcdedit /set %%B detecthal yes bcdedit /set %%B ems yes bcdedit /displayorder %%B /addlast bcdedit /timeout 5 del GUIDTEMP.TXT goto _EXIT ) :_ENG for /F "tokens=3" %%C in (GUIDTEMP.TXT) do ( bcdedit /set %%C device ramdisk=[%SRC%]\boot.wim,{ramdiskoptions} bcdedit /set %%C osdevice ramdisk=[%SRC%]\boot.wim,{ramdiskoptions} bcdedit /set %%C path \windows\system32\winload.exe bcdedit /set %%C systemroot \windows bcdedit /set %%C winpe yes bcdedit /set %%C detecthal yes bcdedit /set %%C ems yes bcdedit /displayorder %%C /addlast bcdedit /timeout 5 del GUIDTEMP.TXT goto _EXIT ) :_ADMIN cls echo. echo. echo. echo ¿ìŬ¸¯ ÇØ¼­ °ü¸®ÀÚ ±ÇÇÑÀ¸·Î ½ÇÇàÇØÁÖ¼¼¿ä. echo. echo. echo. pause goto _EXIT :_EXIT exit