I found this post here : Run Cron Job on PHP Script, on localhost in Windows which is working perfectly. Instead of a PHP file I want to run an URL instead, like http://localhost/test-cron-job
I tried to simply change this line here:
"C:\xampp\php\php.exe" -f "C:\Users\Matthew\Documents\Work\cronjob\my_script.php"
to this:
"C:\xampp\php\php.exe" -f "http://localhost/test-cron-job"
But it is not working at all. What can I do to make this work?