有没有办法将值从一个exe传递到另一个exe再次启动进程 [英] Is there any way to pass values from one exe to another exe with Starting the process again

查看:92
本文介绍了有没有办法将值从一个exe传递到另一个exe再次启动进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何在启动进程时将参数从一个exe传递到另一个exe。

但是我的要求是我需要通过参数将一些确认发送回旧的exe。



流程正在运行。有没有办法将参数传递给正在运行的exe。



怎么做。

I know how to pass parameters from one exe to another while starting the process.
But my requirement is that I need to send some acknowledgement back to the old exe by means of parameter.

The process is running. Is there any way to pass parameters to a running exe.

How to do this.

推荐答案

是的......没有。

你不能只发送一个字符串参数 - 你必须使用某种形式的进程间通信,比如套接字或管道。



这应该让你知道该怎么做: http://msdn.microsoft.com/en-gb/library/windows/desktop/aa365574(v = vs.85).aspx [ ^ ]
Yes...and no.
You can't just send a string argument - you would have to use some form of interprocess communications, such as Sockets or Pipes.

This should give you an idea what to do: http://msdn.microsoft.com/en-gb/library/windows/desktop/aa365574(v=vs.85).aspx[^]


这篇关于有没有办法将值从一个exe传递到另一个exe再次启动进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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