运行时替换文件 [英] Replace a file while running it
问题描述
我怎么能这样做,我希望它会从ftp服务器下载a用新的替换文件
我只需要一个替换文件的代码
您好Noam12498,
删除文件然后上传新文件很容易,您可以参考以下链接,了解有关如何删除以及如何从FTP上传的示例。
删除
https://docs.microsoft.com/en-us/dotnet/api/system .net.ftpwebrequest?view = netframework-4.7.2
上传
https://docs.microsoft.com/en-us/dotnet/framework/network-编程/如何上传文件与ftp
最好的问候,
Wendy
How can i do it like i want it will download from a ftp server a replace the file with a new one
i just need a code for replace a file
Hi Noam12498,
It is easy to delete a file and then upload a new file, you could refer to the link below with examples about how delete and how to upload from FTP.
Delete
https://docs.microsoft.com/en-us/dotnet/api/system.net.ftpwebrequest?view=netframework-4.7.2
Upload
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-upload-files-with-ftp
Best Regards,
Wendy
这篇关于运行时替换文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!