# "vcvarsall.bat" freezes on new 1809-based Windows images

**URL:** <https://travis-ci.community/t/vcvarsall-bat-freezes-on-new-1809-based-windows-images/7098>\
**Category:** Windows\
**Created:** [February 5, 2020, 12:26am UTC](https://travis-ci.community/t/vcvarsall-bat-freezes-on-new-1809-based-windows-images/7098 "2020-02-05T00:26:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [February 10, 2020, 9:27am UTC](https://travis-ci.community/t/vcvarsall-bat-freezes-on-new-1809-based-windows-images/7098/6 "2020-02-10T09:27:20Z")

</div>

Okay, found it.

The behavior change happens when [KB4534273](https://support.microsoft.com/en-us/help/4534273/windows-10-update-kb4534273) (a recent update for 1809) is installed.

Git Bash starts formatting the single-quoted part as a single argument (as it should) and treating `/c` as a path ([as it usually does](https://travis-ci.community/t/wsl1-unix-paths-on-the-command-line-are-being-changed-in-a-strange-way/6231/2)) – which it didn’t do before for some reason. So in fact, what you see now is the correct behavior.

As such, `cmd /C '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 && <etc>'` turns into `C:\Windows\system32\cmd.exe C:/ "\"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat\" amd64 && <etc>"` argument for `CreateProcess`.

Since Cmd, unlike Bash, expects the code on the command line to not be a single argument but multiple, one for each lexeme, you need to represent it accordingly as multiple arguments, quoting Bash special syntax as necessary (and also [prevent treating `/c` as path](https://travis-ci.community/t/wsl1-unix-paths-on-the-command-line-are-being-changed-in-a-strange-way/6231/2)):

```auto
cmd.exe //C 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat' amd64 '&&' <etc>

```

---

_[View the full topic](https://travis-ci.community/t/vcvarsall-bat-freezes-on-new-1809-based-windows-images/7098)._
