title: How to run bat file in jenkins
body: <p>My jenkins is installed in <code>C:\Program Files (x86)\Jenkins</code></p>
  
  <p>bat file is located in <code>C:\Users\Admin\workspace\demoWork\run.bat</code></p>
  
  <p>When i run this bat file from cmd everything works fine. But when i try from jenkins executing batch command as mentioned in Image, Jenkins displays error as </p>
  
  <blockquote>
    <p>Build step 'Execute Windows batch command' marked build as failure</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/tUeJ8.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/tUeJ8.jpg" alt="enter image description here"></a></p>
  
  <p>Also inside jenkins folder automatically workspace folder gets created with Job title name. Can you guys please explain me in detail</p>