title: xp_cmdshell bat file doesn't actually run
body: <p>I can run this SQL command just fine from SSMS, and the .bat file runs:</p>
  
  <pre><code>EXECUTE xp_cmdshell 'C:\ReportPrinting\KarlTest\test.bat @TrxOid'
  </code></pre>
  
  <p>I put it into a stored procedure and, after getting past a lot of permission issues, the stored procedure executes just fine.  Hence, I know that xp_cmndshell is now actually being performed.  </p>
  
  <p>However, the batch file does not actually run.  So it appears that SQL Server is properly sending the command to Windows, but Windows doesn't run it.  </p>
  
  <p>What do I need to be considering?  </p>