Reputation: 33
I have a C# application which internally creates a batch file and runs it. When I run the exe manually, everything works fine, but when i run it via task scheduler, it fails to execute the batch file. (I'm using Windows 8). Can anyone please help me? Thanks in advance
Upvotes: 1
Views: 222
Reputation: 27944
I guess the running directory is not correct. Your application creates the batch file on the wrong place or your application looks for the batch file on the wrong place. Check the running directory in the task scheduler to fix this.
Upvotes: 3