@echo -off
@fs0:
@if exist Startup.nsh then
@goto Flash
@else
@goto CheckFs1
@endif
@:CheckFs1
@fs1:
@if exist Startup.nsh then
@goto FLash
@else
@goto CheckFs2
@endif
@:CheckFs2
@fs2:
@if exist Startup.nsh then
@goto FLash
@else
@goto CheckFs3
@endif
@:CheckFs3
@fs3:
@if exist Startup.nsh then
@goto FLash
@else
@goto CheckFs4
@endif
@:CheckFs4
@fs4:
@if exist Startup.nsh then
@goto FLash
@else
@goto CheckFs2
@endif
@:FLash
afuefix64.efi bios.bin /p /b /n /x /l /reboot
@goto end
@:end