在Windows XP中,如何在局域网内的某台计算机上运行exe文件,并通过我的计算机中的批处理文件使其在该计算机上运行?

发布于 2024-10-09 22:25:19 字数 847 浏览 0 评论 0原文

问题是这样的。我们正在开发一个应用程序,该应用程序需要花费大量时间才能运行,而且我们还存在有限的许可证问题。

所以我们购买了一台配置非常高的新电脑。现在这台新 PC 在 LAN 中,所有 4 个开发人员都应该使用这台 PC 来运行应用程序。

场景:
开发人员已准备好运行的所有文件。现在,他将所有文件复制到新 PC 上的共享目录中。 然后,他单击本地计算机中的一个批处理文件,该文件必须调用另一台计算机上的 exe 并在另一台计算机上运行该工具。该工具完成运行后,会将结果放入文本文件中,供用户稍后获取。 这样,该工具运行速度非常快,并且解决了许可证问题。

问题定义:
通常,每当我们双击共享计算机上的 exe 时,该 exe 就会在我的电脑上本地运行,这是我不希望发生的情况。

如何调用 LAN 上其他计算机上的 exe 并使其在该计算机上运行?
Windows XP 下可以吗?
如果是,我该怎么做?

注意:我最终必须有一个简单的批处理文件,将在本地计算机上单击该文件,然后在其他计算机上运行 exe。

编辑1: 我在互联网上发现了一些东西,比如
WMIC 实用程序
PsExec 实用程序 - http://technet.microsoft.com/en-us/sysinternals/bb897553< /a>
以上任何内容对我的问题有用吗?


The problem goes this way. We are developing an application which is taking huge time to run and also we have limited license problem.

So we have purchased a new computer with a very high configuration. Now this new PC is in LAN and all the 4 developers should use this PC for running the application.

The scenario:
The developer has all the files ready to be run. Now he copies all the files into a shared directory on the new PC.
Then he clicks a batch file in the local computer which has to call the exe on the other computer and run the tool on other computer. After the tool finishes running, it puts the result in a text file which can be taken by user later.
In this way, the tool runs very fast and also the license issue is solved.

Problem definition:
Typically whenever we double click an exe on shared computer, the exe runs locally on my PC which I dont want to happen.

How do I call an exe on some other computer on LAN and make it run on that computer?
Is it possible in Windows XP?
If yes, how do I go about it?

Note: I have to finally have a simple batch file which will be clicked on the local computer and it runs the exe on other computer.

EDIT1 :
I found some things in internet like
WMIC utility
PsExec utility - http://technet.microsoft.com/en-us/sysinternals/bb897553
Is any of the above useful to my problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

写下不归期 2024-10-16 22:25:19

Mark Russinovich 的 PsExec 正是您想要的。您将需要目标计算机上的管理员权限。例如:(

PSEXEC \\othermachine z:\program.exe

您可能还想指定用户名/密码的参数 - 文档 提供了您可以使用的所有选项。)

Mark Russinovich's PsExec is what you want. You will need administrator privileges on the target machine. For example:

PSEXEC \\othermachine z:\program.exe

(You may also want to specify arguments for username/password - the documentation gives all the options you can use.)

生死何惧 2024-10-16 22:25:19

也许这个“解决方案”(更多的是一种黑客而不是任何东西 - 除了聪明的)可以帮助你吗?

Perhaps this "solution" (more of a hack than anything - but a clever one) could help you?

做个ˇ局外人 2024-10-16 22:25:19

我想你需要的是 rsh。这取决于您所拥有的 Windows 版本。

I guess what you need is rsh. This depends on the Windows version that you have.

云朵有点甜 2024-10-16 22:25:19

我建议用你喜欢的任何语言编写一个小脚本(尽管我推荐Python,因为我已经做过类似的事情)。该脚本应作为共享 PC 上的服务运行,并在网络上侦听从开发人员 PC 上的另一个 Python 脚本发送的特定命令。
这会导致共享 PC 上的脚本运行您的可执行文件。由于您在共享 PC 上也有一个共享目录,因此编写文件复制脚本也应该很容易。

I would advise writing a little script in any language you like (although I'd recommend Python since I've done something similar). This script should run as a service on the shared PC and listen on the network for a particular command on the network which you send from another Python script on the developer's PC.
This causes the script on the shared PC to run your executable. Since you also have a shared directory on the shared PC it should be easy to script the copying of the files too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文