Class TasklistUtil


  • public final class TasklistUtil
    extends Object
    Utility class that finds all running processes with the given name by using microsoft's command line until "tasklist.exe".

    Requires running under MS Windows!

    • Method Detail

      • findPIDsForProcessName

        public static Collection<Integer> findPIDsForProcessName​(String processName)
        Find all processes with the given name
        Parameters:
        processName - the process name to scan for
        Returns:
        All PIDs that run a process with that name