[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
大概像这样
  1. powershell "$a=iwr https://nr.ele.me/eleme_nr_bfe_retail/eb_download/config/download;iwr $a.downloadUrl -outfile ($a.downloadUrl -replace '.+/')"
复制代码

TOP

回复 7# Batcher


    之前是用F11看的,3楼的链接里是调用这个来获得下载地址的吧

TOP

回复 10# Batcher


    是我理解错了

TOP

win7试试这个ai给的方法
  1. #@&cls&powershell "type '%~f0'|out-string|iex"&pause&exit
  2. $wc = New-Object System.Net.WebClient
  3. $wc.DownloadString('https://nr.ele.me/eleme_nr_bfe_retail/eb_download/config/download') -match 'http[^"]+'
  4. $sourceStream = $wc.OpenRead($matches[0])
  5. $targetStream = new-object System.IO.FileStream(("$pwd\"+($matches[0]-replace'.+/')), [System.IO.FileMode]::Create)
  6. $gzipStream = new-object System.IO.Compression.GZipStream($sourceStream, [System.IO.Compression.CompressionMode]::Decompress)
  7. $buffer = new-object byte[](1024)
  8. while($true)
  9. {
  10.   $read = $gzipStream.Read($buffer, 0, 1024)
  11.   if($read -le 0){ break }
  12.   $targetStream.Write($buffer, 0, $read)
  13. }
  14. $gzipStream.Close()
  15. $targetStream.Close()
  16. $sourceStream.Close()
复制代码

TOP

回复 19# jyswjjgdwtdtj


    可能不通用吧

TOP

回复 21# q9339


下在当前目录,没有就不知道什么原因了

TOP

返回列表