How to run a PHP file in a scheduled task (Windows Task Scheduler)

The Run command should be

C:\Path\to\php.exe -f "C:\Path\to\file.php"

From the command line help of php.exe:

-f         Parse and execute <file>.

Leave a Comment