如何在远程计算机上运行.exe文件 [英] How to run an .exe file on a remote machine

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

问题描述

我创建了两个测试.Net Remoting的应用程序。这些应用程序分别部署在本地计算机和远程计算机上。如果两个应用程序都在运行,则.Net Remoting功能正常。问题是我必须手动执行 remoteApplication.exe ,这非常耗时(转到另一个房间)。所以我想知道是否可以通过 localApplication.exe中的某些代码运行 remoteApplication.exe 这意味着每当启动 localApplication.exe 时,
remoteApplication.exe
可以自动启动。

I have created two applications to test .Net Remoting. These applications are deployed on both the local machine and the remote machine, respectively. If both of the applications are

 running, the .Net Remoting functionality works fine. The problem is that I have to manually execute remoteApplication.exe, which is really time consuming (go to another room). So I am

wondering whether it is possible to run the remoteApplication.exe by some codes in the localApplication.exe.  It means whenever the localApplication.exe is started,

remoteApplication.exe
can be started automatically.

推荐答案

这实际上不是一个Remoting和运行时序列化问题,而是一个问题如何测试室可以改进。

有几种可能性:

1)使用远程桌面登录远程计算机并控制该计算机
2)写一个允许您远程激活应用程序的自定义服务(但要注意安全风险)
3)将应用程序添加到远程PC上Windows的启动文件夹

This is not actually a Remoting and Runtime Serialization question, but rather a question how your test room can be improved.

There are several possibilities:

1) Use remote desktop to login to the remote computer and control that computer
2) Write a custom service that allows you to activate applications remotely (but beware of security risks)
3) Add the application to the startup folder of Windows on the remote pc


这篇关于如何在远程计算机上运行.exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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