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?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

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

PS - if my script is: cron.php ...what would be the argument to pass? (located in c:\scripts)
Php.exe c:\scripts\cron.php
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

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.