php定時執行任務(windows7)

來源:互聯網
上載者:User

標籤:計劃任務

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檔案

這是我自己計劃任務的設定選項:


條件設定根據自己的需求來設定



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.