各位有识之士,本人想通过C#实现类似于FolderBrowserDialog控件所拥有的功能,不过要求就是其指定的目录不是本地机器,而是远程的服务器,不需要能够创建新的文件夹,只要能够读到远程的目录结构就好,不知各位大侠有否高招,望不吝赐教!
解决方案 »
- 找不到microsoft office interop excel,求指教!!
- C# winform安装程序,如何在安装时安装所需的字库?
- 哪错了。各位大侠帮一下
- 谢谢。气球提示的问题
- C#怎样支持WSP协议?
- 如何把一个string转换成guid啊?
- 看C#高级编程很枯燥啊..还有些看不懂..实际应用的场景也很少..怎么看呐?推荐一本好书来吧?
- 有没有http协议的qq接口或者Web Service
- 水晶报表出现提示-The type initializer for "CrystalDecisions.CrystalReports.Engine.ReportDocument" threw an exception, 如何解决?
- 请问下 控件的值是先赋给变量还是直接使用?
- 怎么
- javascript传值给TextBox(求助)
只是你要有有效的访问权限.
远程访问与通用控件是没有关系的.不知道你要的是什么样的功能:)
下面是sdk中的例子。
先使用Wmi开通连接,再Copy文件
using System;
using System.Management;// This example demonstrates how to connect to remote machine
// using supplied credentials.
class Sample_ConnectionOptions
{
public static int Main(string[] args) {
ConnectionOptions options = new ConnectionOptions();
options.Username = UserName; //could be in domain\user format
options.Password = SecurelyStoredPassword;
ManagementScope scope = new ManagementScope(
"\\\\servername\\root\\cimv2",
options);
try {
scope.Connect();
ManagementObject disk = new ManagementObject(
scope,
new ManagementPath("Win32_logicaldisk='c:'"),
null);
disk.Get();
}
catch (Exception e) {
Console.WriteLine("Failed to connect: " + e.Message);
}
return 0;
}
}
简单的处理类可以使用,
http://blog.csdn.net/zhzuo/archive/2005/03/08/315125.aspx