- May
- 13,202
- 180
I get an endless stream of these.
vcvars64.bat calls vcvarsall.bat and there, line 97 is the FOR statement below;
V28 runs the bat file without error, but when it's over, the environment has not been altered.
CMD runs it and the environment is properly updated.
Code:
v:\> "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
TCC: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat [97] Unknown command "all"
[ERROR:vcvarsall.bat] Invalid argument found :
vcvars64.bat calls vcvarsall.bat and there, line 97 is the FOR statement below;
Code:
:parse_loop
for /F "tokens=1,* delims= " %%a in ("%__VCVARSALL_ARGS_LIST%") do (
if "%VSCMD_DEBUG%" GEQ "2" (
@echo [DEBUG:%~nx0] inner argument {%%a}
)
call :parse_argument %%a
set "__VCVARSALL_ARGS_LIST=%%b"
goto :parse_loop
)
V28 runs the bat file without error, but when it's over, the environment has not been altered.
CMD runs it and the environment is properly updated.