rainbowzc

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

schtasks /create /sc minute /mo 20 /tn "TestBatch" /tr C:/TestBatch.bat

TestBatch.bat

echo "---------------------批处理开始------------------------------"
ping sz.tencent.com > D:/a.txt
ping sz1.tencent.com >> D:a.txt
ping sz2.tencent.com >> D:/a.txt
ping sz3.tencent.com >> D:/a.txt
ping sz4.tencent.com >> D:/a.txt
ping sz5.tencent.com >> D:/a.txt
ping sz6.tencent.com >> D:/a.txt
ping sz7.tencent.com >> D:/a.txt
exit

posted on 2014-04-28 10:29  ct  阅读(1504)  评论(0编辑  收藏  举报