对于 210MB 的文件,在 Powershell 中使用如下脚本需要 10 多分钟:
$webclient = New-Object System.Net.WebClient
$uri1 = New-Object System.Uri($Ftp2)
$webclient.UploadFile($uri1, $File2)
但是,使用 FileZilla,同一文件只需不到 2 分钟。
FileZilla 优化了吗?我可以以某种方式改进 Powershell 调用吗?
我更喜欢使用 PS,因为我有上传多 GB 文件的脚本......