set efiname64 "uefipe1"
set efiname32 "cdboot8pe32"
echo Seach for "%efiname64%.efi"...
for %b in fs0 fs1 fs2 fs3 fs4 fs5 fs6 fs7 fs8 fs9 blk0 blk1 blk2 blk3 blk4 blk5 blk6 blk7 blk8 blk9
echo Seaching %b ...
if exist %b:\uefipe1\%efiname64%.efi then
echo %efiname64% found in %b:!
%b:
cd uefipe1
%efiname64%
if not %lasterror% == 0 then
%efiname32%
endif
exit
endif
endfor