Skip to content

Instantly share code, notes, and snippets.

@Devaniti
Last active July 14, 2022 10:02
Show Gist options
  • Save Devaniti/5b078265fdb200036b797989b36bd5e6 to your computer and use it in GitHub Desktop.
Save Devaniti/5b078265fdb200036b797989b36bd5e6 to your computer and use it in GitHub Desktop.
Script for finding Windows SDK path
@echo off
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -property installationPath`) do (
set VSDetectedDir=%%i
)
call "%VSDetectedDir%\Common7\Tools\VsDevCmd.bat" > nul
echo %WindowsSdkVerBinPath%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment