如何使用C#从远程服务器的共享位置复制文本文件 [英] How to copy a text file from shared location of remote server using C#

查看:69
本文介绍了如何使用C#从远程服务器的共享位置复制文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#从远程服务器的共享位置复制文本文件
或如何使用C#编码从远程服务器的共享位置读取内容文本文件.
我已经尝试过使用WebClientclass.但它不起作用.我正在使用ftp://hostname/folderpath/textfile.txt作为url.
给我一些解决办法

在此先感谢.
:confused::: O

How to copy a text file from shared location of remote server using C#
or how to read the contents text file from the shared location of remote server using C# coding.
I have tried by using WebClientclass. but its not working. i am using ftp://hostname/folderpath/textfile.txt as url.
Give me some solution

thanks in advance.
:confused: :-O

推荐答案

请参阅此链接
http://bytes.com/topic/c-sharp/answers/247637-reading-远程文件 [^ ]

希望你能在这里得到答案.您需要的只是从远程位置访问文件的权限.
Please see this link
http://bytes.com/topic/c-sharp/answers/247637-reading-remote-files[^]

Hope you will get the answer here. All you need is the permission to access file from the remote location.


这篇关于如何使用C#从远程服务器的共享位置复制文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆