@echo off
find /i "Detected boot environment" "%systemdrive%\windows\Panther\setupact.log" 1>nul 2>nul || echo 这是WINPE无法制作! && pause && exit /b
for /f "delims=" %%i in (‘find /i "Detected boot environment" "%systemdrive%\windows\Panther\setupact.log"‘) do set bootmode=%%i
set bootmode=%bootmode:~-4%
echo %bootmode%
if "%bootmode%"=="BIOS" (
echo BIOS启动
) else (
echo UEFI启动
)
pause
原文地址:https://www.cnblogs.com/liuzhaoyzz/p/10193228.html
时间: 2024-10-08 12:41:41