我有一个要求:“请尝试使用 [FTP SERVER IP ADDRESS] 作为 FTP URL。请做一张 CD(更改目录)到 SFCD40DAT。然后请为 FTPDRFTIN 做一个 PUT”
我可以使用命令提示符来做到这一点:
如何使用 .NET 2.0 实现相同的目标
You can use WebClient class and it's FileUpload method. This way you can point to the address/folder directly and don't deal with low level commands.