我现在有点没办法了...
尝试 1
在 Powershell 中使用 iwr。它可以工作,显示进度,但速度要慢 10 倍,并且直到文件在内存中时才会刷新:(。
powershell -command "& { iwr https://github.com/mitchellspryn/AirsimHighPolySuv/releases/download/V1.0.0/SUV.zip -OutFile SUV.zip }"
尝试 2
在 Powershell 中使用 .Net webclient。它有效,但没有显示任何进展,并且您无法通过 Ctrl+C 终止 :(。最后一个问题是一个很大的挫折。
powershell -command "& { (New-Object System.Net.WebClient).DownloadFile('https://github.com/mitchellspryn/AirsimHighPolySuv/releases/download/V1.0.0/SUV.zip', 'SUV.zip') }"
尝试 3
在 Powershell 中使用 BITS 传输。它可以工作,显示进度并且几乎完美......直到你发现它在 GitHub 上神秘地不起作用(错误 403 被禁止)!
powershell -command "& { Start-BitsTransfer -Source https://github.com/mitchellspryn/AirsimHighPolySuv/releases/download/V1.0.0/SUV.zip -Destination SUV.zip }"