- Open a notepad and write the following command
- Save the file with any with .bat extension.
- You can directly run this .bat file also. In windows 7 make sure to run it under Administration privileges. But it is not nice to run the batch file manually all the time. So we can use Windows task scheduler to do this.
Path to your
php.exe file -f "path to your php script where you want to execute "
E.g.:
C:\wamp\bin\php\php5.3.13\php.exe
-f "C:\wamp\www\TestFramework\src\controllers\Email.php"
No comments:
Post a Comment