@echo off
::基于mkisofs制作0PE.ISO Pseudo 2009.06.16
::2013.5.16增加支持UEFI
set ver=SYS
cd /d "%~dp0"
path "%~dp0bin";%path%
set efi=-eltorito-alt-boot -b EFI/boot/0PEefi -no-emul-boot
if not exist DIY\EFI\boot\bootx64.efi set efi=
if defined efi copy /y bin\0PEefi DIY\EFI\boot\0PEefi>nul
if not exist DIY\EFI\boot\0PEefi set efi=
mkisofs.exe -hide-joliet boot.catalog -hide-joliet 0PEefi -l -joliet-long -relaxed-filenames -gbk4dos-filenames -gbk4win-filenames -no-emul-boot -boot-load-size 4 -o 0PE.ISO -v -V "0PE%ver%" -b grldr %efi% DIY
if defined efi del /F /Q DIY\EFI\boot\0PEefi>nul