本帖最后由 pcl_test 于 2017-4-15 20:05 编辑
批处理简易版- @echo off
- set "rar=C:\Program Files\WinRAR\winrar.exe"
- set "url=https://laod.cn/hosts/2017-google-hosts.html"
- for /f "delims=" %%a in ('mshta http://bathome.net/s/hta/index.html "var m=web('%url%').match(/(https:\/\/iiio.io\/download\/\d+\/?).+?密码\s*?[::]\s*?([^<\s]+)/);download(m[1]+'windows用批处理.zip');m[2]"') do set "pw=%%a"
- if defined pw (
- "%rar%" e -y -p"%pw%" "windows用批处理.zip"
- >nul ping /n 3 0
- "Windows自动替换脚本.bat"
- )
- pause
复制代码
|