- @echo off & cd /d "%~dp0"
- set "url=https://osce14-p.activeupdate.trendmicro.com/activeupdate/server.ini"
- certutil -urlcache -split -f "%url%" "_tmp.data" | findstr "0x" && (echo download file failed. & pause&exit)
- for /f "tokens=1,2 delims==," %%i in ('type "_tmp.data" ^| findstr /C:"P.2=" /C:"Https="') do set "%%i=%%j"
- del /f "_tmp.data"
- echo %Https%/%P.2%
- pause&exit
复制代码
|