How to use CRON in xampp or wamp windows

Topics focus on Web Developments, Programming, Database, Digital Marketing Tutorials, Code Snippets, SEO, Social Media Marketing and Inspirational articles.

How to use CRON in xampp or wamp windows

How to use CRON in xampp or wamp windows

How to use CRON in xampp or wamp windows

I have explained step by step to be followed to use in development.

To create the batch file Open Notepad. Paste the line:

1
"C:Program Files (x86)Mozilla Firefoxfirefox.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

1
"schtasks /create /sc minute /mo 20 /tn "PHP Cron Job" /tr C:wampwwwcron.bat"

Press Enter This will make the script run every 20 minutes, the first time 20 minutes from now.

Add comment


 

Pin It on Pinterest

Share This