0
votes

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

2

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 : enter image description here

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

enter image description here

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
0
votes

You will need to create a .bat file and run it on your schedule: Open -> Control panel - > Administrative Tools - > task Scheduler

Here is an example of how you would do it:

@echo off
start "abc.php running" "C:\Program Files (x86)\PHP\v5.3\php.exe" -f C:\wwwroot\reminder-email.php