Magento cron run in window xamp and wamp

By | February 23, 2014

Recently face the issues running cron in windows for magento in xamp and wamp. so found the solution which will help other to work.How to use CRON in xampp or wamp windows simple step will help you

Start the Cron
To create the batch file

Open Notepad
Paste the line “C:\Program Files (x86)\Mozilla Firefox\firefox.exe” http://localhost/yourfile.php
Click “File” -> “Save As”
Ensure “Save as type:” is set to “All Files”
Save the file as “cron.bat” to your C drive

To schedule the batch file to run

Open Command Prompt
Paste the following schtasks /create /sc minute /mo 10 /tn “PHP Cron Job” /tr C:\wamp\www\cron.bat
Press Enter
this script will allow to run the cron for every 10 mins

STOP the Cron
Command : SchTasks /Delete /TN “My Task”

Than press enter and follow the instruction.

Note: please replace “your Task Name” with “My Task”

schtasks /create /sc minute /mo 10 /tn “php cron job” /tr C:\wamp\www\cron.bat

hope this will help you

2 thoughts on “Magento cron run in window xamp and wamp

  1. Mkhululi Ncube

    Hie every one. Failing to run a cron job on magento 2 . running in on localhost, xampp and windows 8. Someone help me with step by step setting up.

    Reply

Leave a Reply