title 启动下一设备
!BAT
ls dev | set diskall=
set diskall=%diskall:~21,-3%
:start
call Fn.0 0 %diskall% | set tmp=
echo %diskall% | echo -n | set diskall=
if %tmp%a==a && set curdisk=hd0 && echo 没有下一设备了(重置当前设备为hd0) && goto :eof
if /i "%tmp%"<="%curdisk%" && goto :start
if /i "%tmp%">="%curdisk%" && set curdisk=%tmp% && chainloader (%tmp%) ;; boot
echo 下一设备%tmp%启动失败
:eof