# is there a .bat file that sets up the environment for vtk c++ programming?

**URL:** https://discourse.vtk.org/t/is-there-a-bat-file-that-sets-up-the-environment-for-vtk-c-programming/9950
**Category:** Support
**Created:** [November 25, 2022, 3:35am UTC](https://discourse.vtk.org/t/is-there-a-bat-file-that-sets-up-the-environment-for-vtk-c-programming/9950 "2022-11-25T03:35:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bunny](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@bunny](https://discourse.vtk.org/u/bunny)
#### Post date: [November 25, 2022, 3:35am UTC](https://discourse.vtk.org/t/is-there-a-bat-file-that-sets-up-the-environment-for-vtk-c-programming/9950/1 "2022-11-25T03:35:49Z")

</div>

It is very hard to build VTK with cmake, I wander if there is there a .bat file that config all env, path and starts visual studio IDE.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [November 25, 2022, 7:24am UTC](https://discourse.vtk.org/t/is-there-a-bat-file-that-sets-up-the-environment-for-vtk-c-programming/9950/2 "2022-11-25T07:24:58Z")

</div>

Hi @bunny

I’m afraid not, but to be honest building VTK with cmake is trivial. See the build guide here:  
[https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/build.md#windows](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/build.md#windows)

However, this build guide is designed to not use VisualStudio but ninja instead.
