# Exec commandLine issues with periods on Windows

**URL:** <https://discuss.gradle.org/t/exec-commandline-issues-with-periods-on-windows/11020>\
**Category:** Bugs\
**Created:** [August 5, 2015, 6:43pm UTC](https://discuss.gradle.org/t/exec-commandline-issues-with-periods-on-windows/11020 "2015-08-05T18:43:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vultron81](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@vultron81](https://discuss.gradle.org/u/vultron81)\
**Post date:** [August 5, 2015, 6:43pm UTC](https://discuss.gradle.org/t/exec-commandline-issues-with-periods-on-windows/11020/1 "2015-08-05T18:43:49Z")

</div>

Take the following build.gradle file using v2.5:

```
apply plugin: 'base'

task testPython(type: Exec) {
    commandLine 'python2.7', 'test.py', '-h'
}
test.dependsOn(testPython)

```

This executes just fine on Linux. However on Windows I copied the python.exe and renamed it to python2.7.exe. However, Gradle is unable to find this application since I believe it is looking for python2.7 without the exe extension. If I name the application python2.7 (without the exe) it works fine.
