Archive: finding process by process arguments


finding process by process arguments
Is there a way to use "process arguments" info to uniquely find a process. My requirement is to find a java process which is running my application. If I use
Processes::FindProcess "java"

I will find all java processes, not just mine.


You can use the following for every PID you find.

http://www.winterdom.com/dev/ptk/cmdline.html

You could also use WMI, which is not available on earlier versions of Windows, to get the information for all of the processes without finding the PID first.

http://windowsxp.mvps.org/listproc.htm