Re: Finding Full Path to Process EXE



misceverything@xxxxxxxxx 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
.



Relevant Pages

  • Re: convert VB script code to vb (cheap & dirty)
    ... an exe, there are other "cheap-and-dirty" ways to do it. ... of the compiler, the runtime, your script and a little ... the compiler, the runtime and your source code into temporary ... running your vbs with wscript). ...
    (microsoft.public.scripting.vbscript)
  • Re: exe file
    ... "Train my users"? ... An EXE, ... than a VBS script at doing just about anything. ... to convey the general difference between compiled code ...
    (microsoft.public.scripting.vbscript)
  • Re: Cross Site Scripting for .exe?
    ... How can an exe take in these ... > number and no other info...How do i find out if my script has been ... The error message thrown probably, depending on method, does ... webserver input file input file from the DB checked for other keyword ...
    (alt.computer.security)
  • Re: Newbie Question HELP!
    ... >print because this only seems to run in python shell, or is there a way to ... Others have mentioned ways to get an EXE, but I am wondering if you are really ... go back to the "DOS"/console window (or start one and cd to the ... and you'll be able to re-run your script by just typing python myprog.py (or even just myprog.py ...
    (comp.lang.python)
  • Re: Speed quirk: redundant line gives six-fold speedup
    ... referenced again, directly or indirectly, by the rest of the script. ... In the sudoku solver, there is a min which is ...
    (comp.lang.python)