:: *****************************************************************************************************************************************************************
:: 20231229
:: 该脚本可以用于机台自动dump BIOS Report Card所需log时使用.
:: 注意:
:: 1.运行"Dump all the above BIOS report card logs"前要提前在SUT进行closemnf的操作.
:: 2.要把机台所适用的"FPTW64.exe\MEInfoWin64.exe\SmbiosDump64.exe\PlatCfg2W64.exe"相关tool放到该脚本所在的文件夹.
:: 作者: Darren Zhang
*****************************************************************************************************************************************************************
@echo off
:start
echo Please enter the following items to run:
echo 1.MEInfoDump
echo 2.SmbiosDump
echo 3.BIOSAttributes
echo 4.Dump all the above BIOS report card logs (Note: SUT needs closemnf in advance)
echo 5.Exit
echo.
echo Your options are :
set /p id=
if "%id%"=="1" goto MEIDC
if "%id%"=="2" goto SBD
if "%id%"=="3" goto BAD
if "%id%"=="4" goto DATAL
if "%id%"=="5" goto Exit
cls
echo.
echo Your input is incorrect,Please re-select the item to run.
cls
goto start
:DATAL
echo.
echo ****** "Dump all the above BIOS report card logs" ******
MEInfoWin64.exe > "%cd%\log\MEInfo.txt"
MEInfoWin64.exe -fwsts > "%cd%\log\MEInfo_fwsts.txt"
SmbiosDump64.exe > "%cd%\log\SMBIOS.txt"
PlatCfg2W64.exe -xml > "%cd%\log\Attributes.txt"
ping 127.0.0.1 -n 10 >nul
echo Complete the "BIOS report card logs" log dump !
echo.
goto Pause
:MEIDC
rem echo "Check whether closemnf before dump MEInfo log"
cd "%cd%\RunMe_About BIOS Report Card log dump automatically"
if exist Closemnf.txt (goto MEInfoDump) else (goto Closemnf)
:MEInfoDump
echo ****** "MEInfo"/"MEInfo -fwsts" log dump ******
rem echo "Create a log folder in the current path to store the following two logs"
MEInfoWin64.exe > "%cd%\log\MEInfo.txt"
MEInfoWin64.exe -fwsts > "%cd%\log\MEInfo_fwsts.txt"
echo.
echo Complete the "MEInfo"/"MEInfo -fwsts" log dump !
del closemnf.txt
echo.
goto start
:Closemnf
FPTW64.exe -closemnf
if errorlevel 0 echo "closemnf done!" > closemnf.txt
goto MEInfoDump
:SBD
echo ****** SMBIOS log dump ******
SmbiosDump64.exe > "%cd%\log\SMBIOS.txt"
echo Complete the SMBIOS log dump !
echo.
goto start
:BAD
echo ****** BIOS Attributes xml log dump ******
PlatCfg2W64.exe -xml > "%cd%\log\Attributes.txt"
echo Complete the BIOS Attributes log dump !
echo.
goto start
:Exit
exit
:Pause
pause