title: How to execute a command in windows cmd using Gradle?
body: <p>I am trying to execute this command using Gradle .</p>
  
  <pre><code>.\build\build.exe parse /p 246 /o ".\strings.xml.bcg" /novalidate /l 1033 /sr "@LbaRoot@\settings\default\lss\default.config" "..\app\src\main\res\values\strings.xml"
  </code></pre>
  
  <p>This works fine when I execute in command Line. I am trying to replicate the behaviour using Gradle</p>
  
  <pre><code>    task runLSBuild(type:Exec) {
      workingDir '../outer_build'
  
      //on windows:
      commandLine '.\\build\\build.exe','parse /p 246 /o ".\\strings.xml.bcg" /novalidate /l 1033 /sr "@LbaRoot@\\settings\\default\\lss\\default.config" "..\\app\\src\\main\\res\\values\\strings.xml"'
  }
  </code></pre>
  
  <p>But this fails with error ".\build\build.exe", The system cannot find the file specified. I need to run the program with working directory as outer_build.</p>
  
  <p>Any suggestions on where am I going wrong ?</p>