title: How to run .cmd file as task in Gradle?
body: <p>I have <code>.cmd</code> file that I want to include everytime build.gradle is run by Android Studio.</p>
  
  <p>Let's say the filename is <code>create-artifacts.cmd</code> and so in my module's <code>build.gradle</code>.</p>
  
  <pre><code>android {
      ...
  
      task createArtifacts(type:Exec) {
          commandLine = ["create-artifacts.cmd"]
          workingDir = file("$rootDir")
      }
  }
  </code></pre>
  
  <p>How may I be helped with this?</p>