cron.cmd 976 B

123456789101112131415161718
  1. @echo off
  2. REM
  3. REM To be scheduled by the following command:
  4. REM
  5. REM schtasks /create /tn "iTop Cron" /sc minute /tr "\"C:\Program Files\EasyPHP-5.3.6.0\www\iTop-trunk\webservices\cron.cmd\""
  6. REM
  7. REM
  8. REM PHP_PATH must point to php.exe, adjust the path to suit your own installation
  9. SET PHP_PATH=C:\Program Files\EasyPHP-5.3.6.0\php\php.exe
  10. REM PHP_INI must contain the full path to a PHP.ini file suitable for Command Line mode execution
  11. SET PHP_INI=C:\Program Files\EasyPHP-5.3.6.0\php\php-cli.ini
  12. REM The double dash (--) separates the parameters parsed by php.exe from the script's specific parameters
  13. REM %~p0 expands to the path to this file (including the trailing backslash)
  14. SET CRON_SCRIPT=%~p0cron.php
  15. REM Adjust the path below if you use a param files stored in a different location
  16. SET PARAMS_FILE=%~p0cron.params
  17. REM Actual PHP invocation
  18. "%PHP_PATH%" -c "%PHP_INI%" -f "%CRON_SCRIPT%" -- --param_file="%PARAMS_FILE%" --verbose=1 >> "%~p0log.txt"