How To Setup Cron Job In Windows Using Wamp/Xampp Server?

Feb 19, 2015, by admin

You have to follow below some very simple steps to run cron file in windows system.

xm

1. The First thing you should do is to create a cron.php file

2. Open the file cron.php and paste or type the code given below
D:\xampp\php\php.exe D:\xampp\htdocs\executecron.php

The path may be varies depending upon your xampp folder

3. And now we had to schedule the task to run

Click on start > All Programs > Accessories > System Tools > Scheduled Tasks and put a name for the task and in the run text field give the path of the Cron.php file and set the schedule job and its done