title: Running bat files in Jenkins
body: <p>I have a simple question.  I want to run a bat file that should run post build.  The bat file takes in to parameters previousVersion and currentVersion (These parameters are entered as Validating String Parameters before the build starts).  </p>
  
  <p>This is what I have tried
  Execute Windows Batch Command</p>
  
  <pre><code>set v = %currentVersion%
  set pv = %previousVersion%
  cmd \k "C:\jenkins\workspace\mybatfile.bat %pv% %p%"
  </code></pre>
  
  <p>The error I get is that cmd is not recognized as an internal or external command operable program or batch file exit 9009</p>