如何在Process.Start之后将参数传递给Process? [英] how to pass parameters to Process after Process.Start?

查看:290
本文介绍了如何在Process.Start之后将参数传递给Process?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我使用Process来运行ffmpeg,当它运行时如何传递参数。(在Process.Start()之后)

Hi everyone!
I using Process to run ffmpeg, when it running how can I pass parameters.(after Process.Start())

ffmpeg.exe -f dshow -i video="Integrated Webcam":audio="Microphone (High Definition Audio Device)"  webcam.flv



在命令行中运行时,按Q键退出。

在进程中,然后如何停止


when run in command line, press key "Q" to quit.
While on Process, then how to stop

推荐答案

过程开始后你不能这样做。如果是您的应用程序,您可以使用一种或另一种形式的IPC编程是否进行此类通信,但是然后使用 Process.Start 将毫无意义,因为您宁愿这样做在同一过程中。



-SA
You cannot do it after process start. If it was your application, you could program if for such communication using one or another form of IPC, but then using Process.Start would be pointless, because you would rather do it in the same process.

—SA


这篇关于如何在Process.Start之后将参数传递给Process?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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