Search code examples
windowsbatch-filescheduled-tasksbatch-processing

Batch file is not running through Windows 7 Task Scheduler


I have a batch file that executes a php script which fetches files(pdfs) from the backend and saves locally. I have tried executing the batch file through command prompt and it works perfectly.

But when I setup a Windows Task Scheduler to run this batch, it is not working. The command prompt window pop ups and displays alot of unreadable characters and hangs there.

I have also chosen the option for the bat to run with highest privileges but no difference.

Any idea what's wrong?


Solution

  • My mistake. Managed to solve it. The path to php was not set properly.

    Now it is fine.