Skip to content
Advertisement

Scheduling Codeigniter php file in Windows Task Scheduler with controller name and function without using Cron

Task Scheduler Log I’m trying to schedule a codeigniter php file in Windows Task Scheduler. I have tried using .bat file as follows:

JavaScript

where mailtry is controller name and mailsend is controller function

I have also tried scheduling using powershell script using url as follows:

First:

JavaScript

Second:

JavaScript

Third:

JavaScript

Nothing works. How to schedule this? Any help is much appreciated.

Advertisement

Answer

Hoping that if you go on a browser and execute that link it successfully works.

Then you can actually configure a task scheduler to open a certain browser then go for that link to execute.enter image description here

At step 1 from the image put a path for a browser program like Firefox or google chrome within double quotes. e.g “C:Program Files (x86)Mozilla Firefoxfirefox.exe”

Then at step 2, simply add a link you wish to execute.

Then save your Task, you are done from there.

Reference: https://windowsloop.com/open-webpage-on-schedule-task-scheduler/

All the Best

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement