title: Batch running of VS code coverage tools
body: <p>I came up a batch file to generate code coverage file as is written in this <a href="https://stackoverflow.com/questions/4951089/how-to-use-ms-code-coverage-tool-in-command-line">post</a>.</p>
  
  <pre><code>cl /Zi hello.cpp -link /Profile
  vsinstr -coverage hello.exe
  start vsperfmon /coverage /output:run.coverage
  hello
  vsperfcmd /shutdown
  </code></pre>
  
  <p>However, I got this error message when I run the batch file. </p>
  
  <p><img src="https://i.stack.imgur.com/7xt5w.jpg" alt="enter image description here"></p>
  
  <p>I had to run <code>vsperfcmd /shutdown</code> manually to finish it. 
  What might be wrong?</p>