標籤:計劃任務
1:先寫自己的php檔案,這裡是我的一些php檔案
2:建立.bat檔案
寫入內容:E:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab1.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe 這是我的php.exe路徑E:\WampSever\task\Grab1.php 這是我的要定時啟動並執行php檔案路徑
提示:要是定時執行多個php檔案時候只要連起來就可以
E:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab1.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab2.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab3.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab4.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab5.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab6.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab7.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab8.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab9.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab10.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab11.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab12.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab13.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab14.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab15.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab16.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab17.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab18.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab19.phpE:\WampSever\wamp\bin\php\php5.4.12\php.exe -q E:\WampSever\task\Grab20.php
3:bat檔案建立OK後就可以建立工作排程器
觸發器裡面建立設定執行時間
操作裡面建立瀏覽剛才建立的.bat檔案
這是我自己計劃任務的設定選項:
條件設定根據自己的需求來設定