仅以编程方式为Windows和Linux编写CRONtab,而不使用任何应用程序

I am trying to create a CRON JOB or Schedule Task(for Windows).

I searched over net and found several tutorials, But ended up with lot of confusion.

Some try to explain using a Cpanel, some use a Task Scheduler. As a developer what if i don't have direct access to Cpanel or SSH. Is there any method which programmatically executes the cron command.

I just want to know In-order to execute my php script(Script which delivers push messages) using a CRON, Where should i give the command

* * * * * /usr/php/php.exe /root/push.php

Also i found some uses vi editor, Actually its for UNIX.

I want to test the cron job initially on my localhost (XAMPP, windows machine), Later on my company's server(Windows) and finally on Clients Server(usually a LINUX based).

If you want to use a scheduled task in windows you must go trough the control panel. No other option. When you want to create a cronjob. (only unix based) use:

sudo crontab -e

and paste this command in there.

* * * * * /path/to/php /path/to/push.php

This job wil run every minute.