简体   繁体   English

具有远程C#的FileDialog

[英]FileDialog with Remoting C#

I need to develop an app in C# that is like the Restore Database at SQL Management Studio. 我需要使用C#开发类似于SQL Management Studio的“还原数据库”的应用程序。 It's basically a FileDialog that remotely shows the files/folder on the server. 它基本上是一个FileDialog,可以远程显示服务器上的文件/文件夹。 I think its pretty simple, but since I'm starting developing apps using Remote (.NET) I need some help. 我认为这很简单,但是由于我开始使用Remote(.NET)开发应用程序,因此我需要一些帮助。 Of course I'm not asking to have a ready-to-go code, I would appreciate some tutorials and how to start developing things remotely and using Windows Form. 当然,我并不是要准备一个现成的代码,我希望了解一些教程以及如何开始使用Windows Form进行远程开发。

Thanks ! 谢谢 !

Leo 狮子座

That depends on the network access you're going to have to the remote machine. 这取决于您对远程计算机的网络访问权限。 If you have access to the file system, all you need to do is point the regular file dialog to the right network path. 如果您可以访问文件系统,则只需将常规文件对话框指向正确的网络路径即可。

If you can't reach the remote machine's file system, you'll need to create an agent that runs on that machine and offers access to the files. 如果无法访问远程计算机的文件系统,则需要创建一个在该计算机上运行并提供对文件访问权限的代理。 You can do that, but unless you're really careful you're going to introduce a major security hole. 您可以这样做,但是除非您非常小心,否则将引入一个主要的安全漏洞。 Instead, you can just enable the regular Windows network file access. 相反,您可以只启用常规Windows网络文件访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM