cls
@echo WARNING!!
@echo DO NOT turn off the system power,
@echo if the BIOS update process has not been finished yet.
@echo Press any key to start BIOS update process.
pause > null
if "%1"=="" goto error1
if not exist %1 goto error2
amidedos /dms
fpt -f %1
fpt -verify %1
if ERRORLEVEL 3 goto error3
if ERRORLEVEL 2 goto error3
if ERRORLEVEL 1 goto error3