If(p.ProcessName = "Foxit process name here") //Replace with the name of the foxit process When running the above code, you should see the name of the Foxit process in your output window.Īlternatively, put a break-point on the foreach line and hover over the list to see all the names that way. foreach(Process p in Processlist)Ĭonsole.WriteLine("Process " + p.Id + " is named '" + p.ProcessName + "'") This gives you a list of currently running processes. List Processlist = Process.GetProcesses().ToList()
0 Comments
Leave a Reply. |