Finding Full Path to Process EXE
misceverything at gmail.com
misceverything at gmail.com
Sat Mar 29 10:58:03 EDT 2008
On Mar 28, 4:53 pm, Tim Golden <m... at timgolden.me.uk> wrote:
> misceveryth... at gmail.com wrote:
> > Hello,
>
> > I would like to write a script that would enumerate all running
> > processes and return the full path to the EXE of each running
> > process. However, I can't seem to find any good info on how to do
> > this..any help is greatly appreciated. Thanks.
>
> I have this strange feeling of deja vu. Try this:
>
> http://timgolden.me.uk/python/wmi_cookbook.html#running_processes
>
> (You want the .ExecutablePath or .CommandLine attributes I imagine)
>
> TJG
Thanks, Tim! I was able to find plenty out there about enumerating
processes, but the .ExecutablePath was exactly what I needed.
More information about the Python-list
mailing list