@echo off
FOR /F "tokens=2 delims==" %%I IN (
'wmic datafile where "name='%programfiles(x86):\=\\%\\Microsoft\\Edge\\Application\\msedge.exe'" get version /format:list'
) DO SET "edgeversion=%%I"
IF "%edgeversion%"=="" (
set edgeversion=0
) ELSE (
for /F "tokens=1 delims=." %%a in ("%edgeversion%") do set edgeversion=%%a
)
IF %edgeversion% GEQ 89 (
echo.VERSION OK
) ELSE (
echo.VERISON FAIL
)
pause