title: How to run wmic command in a batch file
body: <p>I am running couple of wmic commands in a btach file to find a process and killing it.</p>
  
  <p>wmic Path win32_process Where "CommandLine Like '%app1%'" Call Terminate</p>
  
  <p>wmic Path win32_process Where "CommandLine Like '%app2%'" Call Terminate</p>
  
  <p>These commands run fine when I run from console individually but when I run them using a batch file , I get error as below:</p>
  
  <p>wmic Path win32_process Where "CommandLine Like ''" Call Terminate</p>
  
  <p>No Instance(s) Available.</p>
  
  <p>Can someone point out whats the issue with the command if its run from a batch file.</p>