开发者

In Windows XP, how to run a exe on some computer in LAN and make it run on that computer by using a batch file in my computer?

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:

Ty开发者_Python百科pically 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?


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.)


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜