diff --git a/c/vs.bat b/c/vs.bat index 700ab7e5f9..fa1910b3de 100644 --- a/c/vs.bat +++ b/c/vs.bat @@ -29,4 +29,6 @@ set INCLUDE= set LIB= set LIBPATH= +:: Visual Studio 2017's vcvarsall.bat changes the directory to %USERPROFILE%\Source if the directory exists. See https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html +set VSCMD_START_DIR=%CD% "%BATDIR%\vcvarsall.bat" %1