# CMake is not an operatable batch file, ...

**URL:** https://discourse.cmake.org/t/cmake-is-not-an-operatable-batch-file/14423
**Category:** Usage
**Created:** [July 23, 2025, 9:10am UTC](https://discourse.cmake.org/t/cmake-is-not-an-operatable-batch-file/14423 "2025-07-23T09:10:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Astrox](https://discourse.cmake.org/user_avatar/discourse.cmake.org/astrox/32/5678_2.png) [@Astrox](https://discourse.cmake.org/u/Astrox)
#### Post date: [July 23, 2025, 9:10am UTC](https://discourse.cmake.org/t/cmake-is-not-an-operatable-batch-file/14423/1 "2025-07-23T09:10:53Z")

</div>

I downloaded CMake version 3.3 something and I unzipped it, and I added it to my path and vscode cmake path and when I do “cmake --version” in the terminal it says “CMake is not an operatable batch file, …” but, it does come up with the version when I use normal command prompt not VSC terminal, please help?!

---

<div class="post-metadata">

### Author: ![vito.gamberini](https://discourse.cmake.org/user_avatar/discourse.cmake.org/vito.gamberini/32/4376_2.png) [@vito.gamberini](https://discourse.cmake.org/u/vito.gamberini)
#### Post date: [July 23, 2025, 1:57pm UTC](https://discourse.cmake.org/t/cmake-is-not-an-operatable-batch-file/14423/2 "2025-07-23T13:57:13Z")

</div>

Your VSC terminal does not have a cmake binary in `PATH`, that’s what the error means. Either you’re finding a separate CMake binary in your external shell (from a Visual Studio install maybe?), or your VSC terminal is inheriting a different environment.

---

<div class="post-metadata">

### Author: ![Astrox](https://discourse.cmake.org/user_avatar/discourse.cmake.org/astrox/32/5678_2.png) [@Astrox](https://discourse.cmake.org/u/Astrox)
#### Post date: [July 24, 2025, 8:26am UTC](https://discourse.cmake.org/t/cmake-is-not-an-operatable-batch-file/14423/3 "2025-07-24T08:26:44Z")

</div>

I might have two instances of CMake installed?

```auto
Bad CMake executable: "C:\Users\.../.pico-sdk/cmake/v3.31.5/bin/cmake". Check to make sure it is installed or the value of the "cmake.cmakePath" setting contains the correct path

```

---

<div class="post-metadata">

### Author: ![Astrox](https://discourse.cmake.org/user_avatar/discourse.cmake.org/astrox/32/5678_2.png) [@Astrox](https://discourse.cmake.org/u/Astrox)
#### Post date: [July 24, 2025, 9:57am UTC](https://discourse.cmake.org/t/cmake-is-not-an-operatable-batch-file/14423/4 "2025-07-24T09:57:26Z")

</div>

Should I delete that one inside of the Pico SDK?
