@echo off 

Set Dir=%1
Set LogFile=C:\Windows\Log\FastBoot.log
Set ScoreLevel=Med

echo %Date% %Time% Start FastBoot command... > %LogFile%

if not exist C:\Windows\Log\OSInfo.ini echo OS is not Windows 8. >> %LogFile%
if not exist C:\Windows\Log\OSInfo.ini goto Quit

if not exist c:\%Dir%\patch\AsFastBoot\AsGetWE.exe echo AsGetWE.exe not exist. >> %LogFile%
if not exist c:\%Dir%\patch\AsFastBoot\AsGetWE.exe goto Quit

start /w c:\%Dir%\patch\AsFastBoot\AsGetWE.exe
if %ERRORLEVEL%==1 Set ScoreLevel=LOW
if %ERRORLEVEL%==2 Set ScoreLevel=MEDIUM
if %ERRORLEVEL%==3 Set ScoreLevel=HIGH

echo Windows Score level is '%ScoreLevel%' >> %LogFile%

:: Only low level
if %ScoreLevel%==LOW start /w c:\%Dir%\patch\AsFastBoot\InstallTool.exe install


:Quit
echo %Date% %Time% End FastBoot command. >> %LogFile%
exit
