放到 U盘 根目录,更改文件名为:startup.nsh
。
最简单的,一个重启命令即可:
reset
加上日志文件,跑完后以 log.txt 文件内行数为圈数计算即可:
fs0:
time >> log.txt
reset
限定圈数,跑完后停留在 UEFI Shell 下,输出提示文字:
@echo -off
cls
set endtest 0
if %T% == "" then
echo "Setting test cycles: 1000"
set T 1000
set Counter 0
endif
for %a run (%Counter% %T%)
if %Counter% == %a then
set endtest 1
else
if %endtest% == 1 then
set endtest 0
set Counter %a
echo "Total test cycles: %T%"
echo "Completed Cycles: %Counter%"
stall 2000000
reset
endif
endif
endfor
echo "***********************************************"
echo " %T% cycles reboot stress test finish. "
echo "***********************************************"