How can I insert parameters into an EXE file after it is executed using the code and not manually?
I've tried to insert inside the arguments of Process.StartInfo.Arguments and not worked. Tried to look in the site and not found something usefull.
[P1.StartInfo.WorkingDirectory = @"D:\try";
P1.StartInfo.FileName = "CMD.exe";
P1.StartInfo.Arguments = "/k cmbs_tcx.exe -han";
P1.StartInfo.UseShellExecute = true;
P1.StartInfo.CreateNoWindow = true;
P2.StartInfo.WorkingDirectory = P1.StartInfo.WorkingDirectory;
P2.StartInfo.FileName = P1.StartInfo.FileName;
P2.StartInfo.Arguments = "/k han_client.exe 127.0.0.1 & 1 6 0 2 1 3 0 0 0 1 1 32534 1 4 0 2 0 2";
P2.StartInfo.UseShellExecute = true;
P2.StartInfo.CreateNoWindow = true;
P1.Start();
P2.Start();][1]
I look forward to seeing the EXE running after getting the latest arguments. The link includes pictures which describes what you see after opening the file and I want to give parameters to activate the menu.