How to use CRON in xampp or wamp windows? Step by step to be followed to use in development

4
52
views
Advertisement

To create the batch file
  1. Open Notepad.
  2. Paste the line “C:Program Files (x86)Mozilla Firefoxfirefox.exe” http://localhost/yourfile.php
  3. Click “File” -> “Save As”
  4. Ensure “Save as type:” is set to “All Files”
  5. Save the file as “cron.bat” to your C drive
To schedule the batch file to run
  1. Open Command Prompt
  2. Paste the following “schtasks /create /sc minute /mo 20 /tn “PHP Cron Job” /tr C:wampwwwcron.bat”
  3. Press Enter
  4. This will make the script run every 20 minutes, the first time 20 minutes from now.

I hope this will help you, Thanks for reading my blog. Please leave your comments here. 🙂

Thanx,
Mayank Zalavadia  🙂

4 COMMENTS