- @echo off
- echo.>>wget.log
- rem 使用wget下载网页首页文件,并记录日志
- .\wget -a wget.log -d http://www.xxx.com
- rem 判断index.html文件是否下载成功
- if exist index.html goto end
- echo.>>system.log
- echo ---------------------------->>system.log
- date/t>>system.log&&time/t>>system.log
- echo error occurred>>system.log
-
- reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /f
- reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /d "http://www1.xxx.com/" /f
复制代码 我是想在自动检测http://www.xxx.com 如果可以打开就下载index.html
批处理就退出
如果没有就继续检测 http://www1.xxx.com 如果可以打开下载index.html
注册表写入http://www1.xxx.com
批处理就退出
如果没有 http://www1.xx.com 那就继续检测http://www2.x.com 如果可以打开下载index.html
注册表写入http://www2.xxx.com
批处理结束
wget 网络有下载 大家自己下个 谢谢帮我改进下 谢谢
[ 本帖最后由 da9049514 于 2009-12-22 12:36 编辑 ] |