如何远程运行应用程序

编程入门 行业动态 更新时间:2024-10-11 23:24:35
本文介绍了如何远程运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨朋友们 我需要远程运行一个应用程序,以便我的另一台机器上的应用程序能够在自己的主机上创建一个文件夹。我尝试过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.

更多推荐

如何远程运行应用程序

本文发布于:2023-11-25 05:57:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1628589.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!