anchor.diff:  
   
   
  +:haderrorshutdown
  +echo An error was encountered, shutting down the profiler
  +%pt%\vsperfcmd /shutdown
  +
   :haderror
   echo An error was encountered
   pause
  
positive.code: 
  
  
  ::Create the output directory, if it didn't exist
  mkdir %outputdir%
  
  
  
negative.code: 
  :: Launch the application via the profiler
  %pt%\vsperfcmd /launch:%app%
  if errorlevel 1 goto haderrorshutdown
  
  :: Shut down the profiler (this command waits, until the application is terminated)
  %pt%\vsperfcmd /shutdown
  