I have the following file placed directly in the C drive on my SQL server:
The job is configured as below
But when i run the job it just loops and loops. If I run the file manually it works perfectly. What am I doing wrong?
I had the same issue. I did resolve it by using below command and giving permissions to the .bat file for this user NT Service\SQLSERVERAGENT
cmd.exe /c E:\tools\test.bat