Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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();
Posted

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:
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Nov-11 7:17am    
All correct, a 5.
--SA
Quote:
If you want to communicate with the process after that point, you will have to do the job properly!


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 ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900