How to pass parameters to another process in c#
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just created an application that launches processes with the following code I would like to be able to pass the parameters from this application to the process I've launched. where I have to enter the parameters in the project of the process that I've launched? I tried to put them in static void Main (string [] args) {... but they are not available in other forms. thanks for the help 回答1: Process p= new Process(); p.StartInfo.FileName = "demo.exe"; p.StartInfo.Arguments = "a b"; p.Start(); or Process.Start("demo.exe", "a b"); in demo.exe