title: Using VSPerf.exe instead of VSPerfCmd.exe
body: <p>I would like to prepare a number of Visual Studio Profiler (VSP) reports using a batch script. On Windows 7 I used VSPerfCmd.exe in the following way:</p>
  
  <pre><code>VSPerfCmd /start:sample /output:%OUTPUT_FILE% /launch:%APP% /args:"..."
  VSPerfCmd /shutdown
  </code></pre>
  
  <p><code>VSPerfCmd /shutdown</code> waits until the application has finished its execution, closes data collection and only then the VSP report is generated. This is what I need.</p>
  
  <p>I switched to Windows Server 2012 and now <code>VSPerfCmd</code> does not work; I need to use <code>VSPerf</code> instead. The problem is that I cannot get the same behavior as VSPerfCmd.</p>
  
  <p>Specifically, the <code>/shutdown</code> option is no longer available. Available options do not wait until the application has finished but stop or detach from the process right after execution. This means I can't use them in a batch script, where I run several processes one after another. Any ideas how to get the desired behavior?</p>