xampp php cron jobs on windows xp

Is there a way to schedule php files on a xampp install on windows xp similar to cron jobs?
Starquest321Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
gr8gonzoConnect With a Mentor ConsultantCommented:
Use the windows scheduler to execute php.exe and pass the script filename and path as an argument.
0
 
Loganathan NatarajanConnect With a Mentor LAMP DeveloperCommented:
Cron jobs are available only in Linux OS. Windows you should use scheduler as @gr8gonzo suggested.
0
 
Starquest321Author Commented:
Perfect....thanks.

PS - if my script is: cron.php ...what would be the argument to pass? (located in c:\scripts)
0
 
gr8gonzoConsultantCommented:
Php.exe c:\scripts\cron.php
0
 
Loganathan NatarajanLAMP DeveloperCommented:
You can also create batch file to use your cron and add the batch file into windows scheduler.

if you have not added predefined variable , you need to give full path like,

d:\xampp\php\php.exe d:\xampp\htdocs\prj\index.php"

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.