我在PowerShell中那种跑出来的选项现在......下载Windows中大型文件的命令提示符/ PowerShell的
尝试1
使用IWR。它的工作原理,显示了进步,但它的10X速度较慢,不冲水,直到当文件在内存中:(。
powershell -command "& { iwr https://github.com/mitchellspryn/AirsimHighPolySuv/releases/download/V1.0.0/SUV.zip -OutFile SUV.zip }"
尝试2
使用的.Net Web客户端在PowerShell中,它的工作原理,但目前尚无你不能按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传输。它的工作原理,显示进步和近乎完美...直到你发现它mysteriously doesn't work on GitHub(错误与403禁止)!
powershell -command "& { Start-BitsTransfer -Source https://github.com/mitchellspryn/AirsimHighPolySuv/releases/download/V1.0.0/SUV.zip -Destination SUV.zip }"
为什么单独运行'powershell.exe'('powershell.exe -command ...')?只需从PowerShell命令行直接运行所需的命令即可。 –
我从另一个构建脚本中使用它,并将整个脚本转换为PS并不是我们现在的目标。 – ShitalShah