

You may also wish to alert IT support if a Foxit is waiting more 5 or 10 mins to run. You may need to implement a queue to keep track of pdfs waiting to run. insert code to run next foxit process here. Now, only start a new Foxit process if one isn't already running. 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()
