submenu "Detect Windows 10 iso files" --class=find.efi {
for iso_file in (*,*)/cn_windows_10_*.iso ; do
if [ -e "${iso_file}" ]; then
menuentry "${iso_file}" --class=iso {chainloader ${1}}
fi
done
menuentry "Cancel" --class=canel {configfile ${prefix}/grub.cfg}
}
纯手敲,没测试……