在c#中关闭并运行远程计算机中的应用程序 [英] close and run applicaton in a remote computer in c#

查看:281
本文介绍了在c#中关闭并运行远程计算机中的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在pc1中有一个应用程序,其设置在pc2

,在完成所需设置后,我希望应用程序关闭并再次在pc1中运行



mmmmm我是这个领域的新人,希望你能给我一些可以提供帮助的线索



非常感谢

解决方案

它可以在几个不同级别的网络,远程处理或WCF之一上完成。

请在我过去的解决方案中查看我对这些方法的概述:

我如何将byte []发送给其他人个人计算机 [ ^ ],

通信b / w局域网上的两个Windows应用程序。 [ ^ ]。



-SA


你可以使用WMI。



首先你需要在PC1上启用WMI服务:如何启用WMI服务 [ ^ ]



然后你可以用这个脚本或将它们翻译成C#app(在PC2上):用于控制进程的脚本远程机器 [ ^ ]



告诉你是否需要更多关于步骤2的帮助;)


亲爱的_SA



非常感谢你的想法

i会尝试并回来

i have an application in pc1 and its setting in pc2
and after doing the desired settings i want the application to close and run again in pc1

mmmmm i am new in this area and wish u could give me some clues that could help

thanks alot

解决方案

It can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

—SA


You can use WMI for that.

First you need enable the WMI service on the PC1: How to enable WMI service[^]

Then you can use this scripts or translate them to C# app (on PC2): Scripts for controlling processes on remote machine[^]

Tell if you need more help with the step 2 ;)


dear _SA

thanks alot for ur idea
i will try it and come back


这篇关于在c#中关闭并运行远程计算机中的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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