From be634ff738f672cdd6f3f99b8046909b73d8ffb5 Mon Sep 17 00:00:00 2001 From: Bob Burger Date: Tue, 15 Aug 2017 17:07:12 -0400 Subject: [PATCH] fix c/vs.bat for Visual Studio 2017 when %USERPROFILE%\Source exists original commit: 9289177cc07782674c17555a37fd0e769da742ae --- c/vs.bat | 2 ++ 1 file changed, 2 insertions(+) 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