I want to run php script through windows task scheduler.
Following is the content of .bat file -
cd C:\test_folder
"C:\Program Files (x86)\PHP\v5.6\php.exe" -f test.php
This .bat file executes successfully if I run it manually but fails in task scheduler showing last run result as 0xFF.
I have multiple versions of PHP installed and have to run test.php on older version. That is why I have to mention full path of php.exe even though PHP environment variable is set.