|
先说明一点,2.3版本的,修改了路径依旧不能解决,在2.2版本是可以的的。找到你目录下面的cron.cmd文件
iTop\web\webservices\cron.cmd
右键编辑,把下面三个地方的路径修改为你本地文件的路径就可以了。@echo off
REM
REM To be scheduled by the following command:
REM
REM schtasks /create /tn "iTop Cron" /sc minute /tr "\"D:\Soft\wamp64\www\iTop\web\webservices\cron.cmd\""
REM
REM
REM PHP_PATH must point to php.exe, adjust the path to suit your own installation
SET PHP_PATH=D:\Soft\wamp64\bin\php\php5.6.25\php.exe
REM PHP_INI must contain the full path to a PHP.ini file suitable for Command Line mode execution
SET PHP_INI=D:\Soft\wamp64\bin\php\php5.6.25\php.ini
REM The double dash (--) separates the parameters parsed by php.exe from the script's specific parameters
REM %~p0 expands to the path to this file (including the trailing backslash)
SET CRON_SCRIPT=%~p0cron.php
REM Adjust the path below if you use a param files stored in a different location
SET PARAMS_FILE=%~p0cron.params
REM Actual PHP invocation
"%PHP_PATH%" -c "%PHP_INI%" -f "%CRON_SCRIPT%" -- --param_file="%PARAMS_FILE%" --verbose=1 >> "%~p0log.txt"
|
|