@echo off
set ff=winpefiles
for %%x in (A B C D E F G H I J K L M N O P Q R S T U V W) DO if exist %%x:\外置程序\winpe.ini goto end
for %%x in (A B C D E F G H I J K L M N O P Q R S T U V) DO (
if exist %%x:\bootcd.iso set fn=%%x:\bootcd.iso
if exist %%x:\bootcd.iso GOTO iso
if exist %%x:\%ff%.iso set fn=%%x:\%ff%.iso
if exist %%x:\%ff%.iso GOTO iso
if exist %%x:\%ff%.img set fn=%%x:\%ff%.img
if exist %%x:\%ff%.img GOTO img
)
goto end