C#流程属性 [英] C# Process Attributes

查看:118
本文介绍了C#流程属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我有一个问题,是否可以在进程运行时设置(更改)参数?

Hello everyone.

I have one question is it possible to Set (Change) Arguments while process is running?

//Start process with arguments (-applaunch 42690 +connect +password)
Process MW3 = new Process();
                MW3.StartInfo.Arguments = String.Format("-applaunch 42690 +connect {0} +password {1}", myIPTb.Text.Trim(), myPasswordTb.Text.Trim());
                MW3.StartInfo.FileName = myDialogTb.Text;
                MW3.Start();

推荐答案

否.发出Start指令后,命令参数已被拆分并传递给进程.如果要在此之后与流程进行沟通,则必须正确地完成工作! :laugh:
No. Once you have issued the Start instruction, the command arguments have already been split up and passed through to the process. If you want to communicate with the process after that point, you will have to do the job properly! :laugh:


报价:

如果您想在此之后与流程进行交流,您将必须正确地完成工作!

If you want to communicate with the process after that point, you will have to do the job properly!



如何?我是tbh编程的新手,我只了解有关流程的基础知识.您能否给我一些链接或文章,以便之后"进行交流?我真的很感激.

顺便说一句,为什么有人删除了我的帖子?



How? I am new to programming tbh and i know only basics about Processes. Can you give me some links or article how to communicate "after that point" ? I would really appreciated it.

Btw why someone deleted my post ?


这篇关于C#流程属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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