如何远程运行应用程序 [英] How to run app remotely

查看:102
本文介绍了如何远程运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们

我需要远程运行一个应用程序,以便我的另一台机器上的应用程序能够在自己的主机上创建一个文件夹。我尝试过WCF,但不确定是否可以使用它在主机内创建文件夹。

我感谢任何帮助和建议:)

Hi friends
I need to run an application remotely so that the application on my other machine so that it creates a folder in its own host. I tried WCF but am not sure it is possible to use it for creating a folder inside the host.
I appreciate any help and suggestion :)

推荐答案

听起来你正试图用本地和远程组件组装一个应用程序让本地实例向远程指令发送指令。



首先,应用程序使用用户的安全上下文运行 - 启动程序的用户或用户服务配置为使用。应用程序可以执行授予该用户的任何操作。所以是的,它可以在文件系统的任何地方创建用户具有写权限的文件夹。这与WCF无关。



其次,您需要在主机和远程之间建立通信方式。 WCF是这样做的一种方式。 WCF有点复杂,但它允许许多类型的传输,例如tcp,http,命名管道等。根据您的能力和防火墙问题,还有许多其他方法可以建立通信。例如,远程主机可以运行简单的Web服务器。这个网站上有很多关于如何建立tcp监听器的例子。这可能比配置WCF更容易。
It sounds like you are trying to assemble an application with both a local and remote component, having the local instance send instructions to the remote.

Firstly, applications run using the security context of a user -- either the user who launched the program, or user that a service is configured to use. The application can perform any operations granted to that user. So yes it can create folders anywhere on the filesystem that the user has write permissions. This has nothing to do with WCF.

Secondly, you need to establish a means of communication between host and remote. WCF is one way of doing this. WCF is a bit complicated, but it allows many types of transport e.g. tcp, http, named pipes, etc. There are also many other ways to establish communication depending on your abilities and firewall issues. For example the remote host could run a simple web server. There are many examples on this site about how to establish a tcp listener. This may be easier than configuring WCF.


这篇关于如何远程运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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