https://files.cnblogs.com/files/liuzhaoyzz/detectefi.rar
@echo off
pushd %~dp0
reg add "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v "DisableUNCCheck" /t "REG_DWORD" /d "1" /f 1>nul 2>nul
rem cd /d "%~dp0"
detectefi |find /i "UEFI" && call :UEFI|| call :BIOS
echo 继续下一句
pause
exit /b
pause
:BIOS
echo BIOS启动
pause
exit /b
:UEFI
echo UEFI启动
pause
exit /b
pause