Last active
June 11, 2021 02:31
-
-
Save guitarrapc/928ecef212b182ae82f70b5067f1ec7c to your computer and use it in GitHub Desktop.
Get current installed Visual Studio version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WHERE "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" >nul 2>&1 && (for /f "usebackq tokens=2*" %%A in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" ^| findstr DisplayVersion`) do set VS_VERSION=%%A) || (set VS_VERSION=NOT FOUND) | |
echo Visual Studio version %VS_VERSION% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment