I try to run abc.php file with scheduled task in windows server 2003.
I tried from command promt ;
schtasks /create /sc minute /mo 1 /tn "mytask" /tr "C:\PATHOFPHP\php.exe C:\wamp..\abc.php" still not working
Also i tried the other way
start->programs->accesories->system tools ->scheduled tasks. not working.
In my task window ;
run: php5.3.13\php.exe c:\wamp\www..\abc.php
start in : C:\wamp\bin\php\php5.3.13
0
votes
2 Answers
0
votes
try this,
Open -> Control panel - > Administrative Tools - > task Scheduler
open task Scheduler and create new basic task as below screen shot :

2) after that select Daily and click next
3) Specify the start date and end date click next
4) Action program click next

5) Start a Program browse Program/Script, here in this section create one test.bat file with the following content as below and browse here.
@echo off
"c:\Program Files\Internet Explorer\iexplore.exe"
sleep1
start "webpage name" "http://www.google.com/"
in the above example I am using google page you can use your php page.
6) click finish