4

对于 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 文件的脚本......

4

1 回答 1

2

设置 proxy = null 并没有改变时间,但是,使用 FTPWebRequest 就可以了。

于 2013-02-19T17:30:30.320 回答