I want to run a PHP file via Task Scheduler on Windows.
Everything runs except a parameter comes in.
This runs:
cmd /C C:\php\php.exe
“C:\cron\cronrun.php” >>
“C:\cron\log\cronrun.log” 2>&1
This is not running:
cmd /C C:\php\php.exe
“C:\cron\cronrun.php” –run >>
“C:\cron\log\cronrun.log” 2>&1
How can I run a job which includes an argument?
Thanks for help.
-lony
Sources:
Try adding
--before the--runlike this:The clue is in the usage message: