@echo -off
cls

if %1 == "" then
goto error1
endif

if not exist %1 then
goto error2
endif

echo WARNING!!
echo DO NOT turn off the system power,
echo if the BIOS update process has not been finished yet.
echo " "

AfuEfix64 %1 /P /B /N /X /R /ME
goto ends

:error1
echo Please input BIOS_File_Name !
echo ex:flash.nsh BIOS.rom
goto ends

:error2
echo BIOS_File %1 can not be found ! 
goto ends

:ends
