title: Can I get command line arguments of other processes from .NET/C#?
body: <p>I have a project where I have multiple instances of an app running, each of which was started with different command line arguments. I'd like to have a way to click a button from one of those instances which then shuts down all of the instances and starts them back up again with the same command line arguments.</p>
  
  <p>I can get the processes themselves easily enough through <code>Process.GetProcessesByName()</code>, but whenever I do, the <code>StartInfo.Arguments</code> property is always an empty string. It looks like maybe that property is only valid before starting a process.</p>
  
  <p><a href="https://stackoverflow.com/questions/440932/reading-command-line-arguments-of-another-process-win32-c-code">This question</a> had some suggestions, but they're all in native code, and I'd like to do this directly from .NET. Any suggestions?</p>