12/30/2023 0 Comments Foxit phantom pdf printerYou could choose to make Processlist a class attribute, and periodically refresh Processlist using a Timer, by calling Processlist = Process.GetProcesses().ToList() on the Tick event. 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()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |