I can run this SQL command just fine from SSMS, and the .bat file runs:
EXECUTE xp_cmdshell 'C:\ReportPrinting\KarlTest\test.bat @TrxOid'
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.
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.
What do I need to be considering?