How can I obtain the command line arguments of another process?
Using static functions of the System.Diagnostics.Process
class I can obtain a list of running processes, e.g. by name:
Process[] processList = Process.GetProcessesByName(processName);
However, there is no way to access the command line used to start this process. How would one do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…