|
本帖最后由 nttwqz 于 2018-3-27 13:22 编辑
- @echo off
- title %~n0
- echo 最新版检测中,请稍候...
- set tempfilename=g4dtemp%random%.log
- aria2c -d %temp% -o %tempfilename% http://grub4dos.chenall.net >nul
- for /f "tokens=2,3 delims=/" %%a in ('type "%temp%\%tempfilename%" ^| findstr /i "<h1.*.7z" ^| find /n /v "" ^| find "[1]"') do (
- set "name=%%b"
- set "tempurl=http://grub4dos.chenall.net/%%a/%%b"
- )
- cls & echo;最新版: %name%
- echo;
- echo;是否下载?
- set tempfilename=g4dtemp%random%.log
- aria2c -d %temp% -o %tempfilename% %tempurl% >nul
- for /f tokens^=2^ delims^=^" %%i in ('type "%temp%\%tempfilename%" ^| find "<tr><td>File:</td><td><a href="') do set "url=%%i"
- pause>nul
- aria2c -d "%~dp0" %url%
- pushd %temp%
- del /f /q g4d*.log >nul 2>nul
- pause>nul
复制代码
基于aria2c实现,请自行下载该文件 |
评分
-
查看全部评分
|