![]() IF %Firmware%=0x1 ECHO The PC is booted in BIOS mode. replace the spaces with a TAB character followed by a space. IF x%Firmware%=x ECHO for /f "tokens=2* delims= " IF x%Firmware%=x ECHO Common fix: In the command above: IF x%Firmware%=x ECHO ERROR: Can't figure out which firmware we're on. ![]() ECHO -ĮCHO Checking to see if the PC is booted in BIOS or UEFI mode.įor /f "tokens=2* delims= " %%A in ('reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType') DO SET Firmware=%%BĮCHO Note: delims is a TAB followed by a space.
0 Comments
Leave a Reply. |