cl 2>&1 | find "18.00." > NUL && set VS_VERSION=12\r
cl 2>&1 | find "19.00." > NUL && set VS_VERSION=14\r
cl 2>&1 | find "19.10." > NUL && set VS_VERSION=15\r
+ cl 2>&1 | find "19.11." > NUL && set VS_VERSION=15\r
if not defined VS_VERSION (\r
echo Error: Visual Studio version too old or version detection failed.\r
endlocal\r