只需一步,快速开始
@echo off color 0c title 自动采集...... setlocal enableextensions SET Yoururl=http://localhost/high/web SET YouriePath=MiniIE SET Youriexe=MiniIE SET Username=admin SET Password=****** SET Spassword=****** IF NOT EXIST C:\WINDOWS\Tasks\autorobot.job echo %Spassword%|@schtasks /Create /tn autorobot /tr "D:\AppServ\www\High\autorobot.bat" /sc DAILY /st 00:00:00 echo ====================================================== echo 正在登录管理后台...... echo ====================================================== start %YouriePath%\%Youriexe%.exe "%Yoururl%/admincp_auto.php?username=%Username%&password=%Password%" ping 192.168.192.192 -n 1 -w 60000 ::在下面的括号中填入你的采集机器人的id for %%I in (1 6 8 9 11 12 13 14 15 16 17 18 19 20 21 22) do ( title robotid=%%I 正在采集中...... echo ====================================================== echo robotid=%%I 正在采集中...... echo ====================================================== start %YouriePath%\%Youriexe%.exe "%Yoururl%/admincp.php?action=robots&op=robot&clearcache=1&robotid=%%I" ping 192.168.192.192 -n 1 -w 180000 ) tskill %Youriexe% endlocal ::======================参数说明=========================== :: Yoururl=supesite的url :: Yoururl=ie程序的路径,可以是相对路径,结尾没有“\” :: Youriexe=ie程序名称,不含.exe :: Username=你的站点的管理员的用户名 :: Password=你的站点的管理员的密码 :: Spassword=你的系统当前用户名的密码
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-12-24 11:11 , Processed in 0.025857 second(s), 4 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.