diff --git a/share/dev/windows/ocio.bat b/share/dev/windows/ocio.bat index 9dd42745be..df0d1a81dc 100644 --- a/share/dev/windows/ocio.bat +++ b/share/dev/windows/ocio.bat @@ -77,7 +77,7 @@ if NOT "%~1"=="" ( rem If not overridden by the cmd line args, find and use the latest Visual Studio if NOT DEFINED MSVS_PATH ( - for /f %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( + for /f "delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( echo Found Visual Studio installation at '%%i' set MSVS_PATH=%%i ) diff --git a/share/dev/windows/ocio_deps.bat b/share/dev/windows/ocio_deps.bat index c616bebf5a..4c567954ba 100644 --- a/share/dev/windows/ocio_deps.bat +++ b/share/dev/windows/ocio_deps.bat @@ -105,7 +105,7 @@ if ErrorLevel 1 ( echo Checking for Microsoft Visual Studio... set MSVS_PATH= -for /f %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( +for /f "delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( echo Found Visual Studio installation at '%%i' set MSVS_PATH=%%i )