如题,现在在做一个统一门户系统,目前只支持web端的管理,其中有一家公司系统是exe可执行文件的,放在windows2003服务器上,我怎么远程能调用的过来他的exe执行文件?请知道的告知解决方案等,先谢了。

解决方案 »

  1.   

    你的意思就是在WEB上调用执行服务器上的exe程序呗,这个简单,不过运行之后的事想过吗?
      

  2.   

    楼上的,你理解错了,我不是要远程执行它的exe,我是要在本地调用到他服务器上的这个exe,我还要进他们系统执行日常工作,远程调用上有什么用啊理解错误,不过谢谢。
      

  3.   

    有permission吗?chmod 777如果它是excutable的应该可以本地调用。。      try
          {
          Runtime rt = Rintime.getRuntime() ;
          Process p = rt.exec("Program.exe") ;
          InputStream in = p.getInputStream() ;
          OutputStream out = p.getOutputStream ();
          InputSream err = p,getErrorStram() ;      //do whatever you want
          //some more code
           
          p.destroy() ;
          }catch(Exception exc){/*handle exception*/}
      

  4.   

    exe后面我可能会需要带参数进去,如果它是excutable的应该可以本地调用。。?能给我讲下吗?
      

  5.   

    建议lz的公司系统的exe可执行文件采用系统集成技术(如Web Service)以进程远程调用和访问
      

  6.   

    经过和行里商量,应该可以让非PC用户远程登录到那台服务器上,然后相当于本地调用,调它的exe还要传参数,是不是只要他的exe支持传参数就可以?
      

  7.   

    你的a服务器上有个exe的cs程序,你在b客户端上浏览器上调出来看看,直接掉我没有寻求到办法。
      

  8.   

    对不住,我说错了,我顺着php了。。正常的是:Runtime.exec() runs programs locally, just as if you'd typed the command into a command shell. On a Linux box, it's as if you'd typed the command into a local bash shell; on a Windows box, it's as if you'd typed the command into a DOS command shell. In other words, the command is interpreted locally.Here are some pitfalls people encounter when trying to run a command remotely:    *      Trying to include a remote hostname in the path to the executable. For example, trying this on a Windows box:      Runtime.exec("\\\\remotehost\\programname")      It doesn't work. That line is interpreted locally: if \\remotehost\programname resolves to a valid program on a share, that program will be read from the share and run locally.
        *      Believing a command will work in Runtime.exec() because it works in a telnet session. But a telnet session is not a local command shell, it's a window to a shell running somewhere else.So what does work?To run a command remotely, you need a server on a remote machine that will accept a request for some service, and then make a request from the local program. Among the ways to do this are:    *      Define a CGI script on a remote Web server that runs the desired program. When the local program makes an HTTP connection to the appropriate URL, the program is run.
        *      Run an RMI server on a remote machine and request services through an RMI call from the local machine.
        *      Run a remote execution server (shell protocol) on the remote machine and use the corresponding client on the local machine. For example:      System.exec("rsh remotemachine programname")    *      Run a secure shell server on the remote machine and use the corresponding client on the local machine. For example:      System.exec("ssh remotemachine programname")    * Make up your own remote execution protocol and write server and client code.Any of these approaches requires setting up security so access is limited to authorized users and password prompts don't show up at inconvenient times. There are many options here; the the key issue is that some server must run on the remote machine and the local machine must know how to request the needed service.Good luck!
      

  9.   

    本地调用网上有例子,远程调用好象困难,可以商量一下把他们的exe放到你的服务器上吗?
      

  10.   

    不需要远程调用嘛,使用js就可以了。js执行客户exe文件。
      

  11.   

    给远程写个java程序,java程序调用exe,运程调用java程序
      

  12.   

    给远程写个java程序,java程序调用exe,本地调用远程java程序,即RMI技术
      

  13.   

    我想楼主想写个JAVA客服端去下载自己服务器上的病毒.exe去执行吧,  你那需求做项目也没有什么可能遇到, 不过不知道你把JAVA客服端做好了怎么传播 这倒是你应该研究的为题
      

  14.   

    看来大家都没明白我的意思,我不是要远程执行一个exe,如果是那样java的rmi可以这我知道。安全问题我也有考虑,但就这变态需求,我访问过很多人都说这么做技术上可能实现不了。人家这exe是个cs版的系统,我需要做的是能够调起人家的系统,不是远程执行就行了,如果说他的exe每个客户端都有的话,那这好办,网页里使用js本地调用,并且设置下我的web为可信站点就可以。但是这个exe是放在服务器端,需要通过我的客户端来调用,希望让大家明白我的意思了。还在和客户磨这块的需求,技术上我还不知道要怎么实现,就算我在执行病毒
      

  15.   

    你本地调用了远程的java程序了,问题你怎么让客户看见人家的系统啊?我不是要远程执行个东西,我是相当于我通过IE进入我的系统,然后有个按钮去调人家的exe系统,压根就不是本地的exe,怎么调?
      

  16.   

    webservice技术 axis,我做过类似的这个
      

  17.   

    zhangenming20080324  你的问题解决了没有?我也遇到同样的问题了
      

  18.   

    这个如果。exe不配合做修改是不可能实现的。