diff --git a/msvc/vs19/msbuild.bat b/msvc/vs19/msbuild.bat index 38b63305..f119c3e9 100644 --- a/msvc/vs19/msbuild.bat +++ b/msvc/vs19/msbuild.bat @@ -14,7 +14,7 @@ set vs_version=2019 set vsw_exe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -for /f "usebackq tokens=*" %%i in (`!vsw_exe! -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do ( +for /f "usebackq tokens=*" %%i in (`"!vsw_exe!" -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do ( set InstallDir=%%i )