Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Windows process

by vladdrak (Monk)
on Sep 17, 2004 at 00:20 UTC ( [id://391619]=note: print w/replies, xml ) Need Help??


in reply to Windows process

You can use the tlist.exe executable from the Resource Kit to get the 'CmdLine' for a running process. You need to pass tlist the pid as an arg and then parse the output, as you'll also get all the loaded modules and memory info. Another option would be to write the PID of the process out to a file and then check the file. As bsdz mentioned, you can also get the CmdLine param from WMI, on XP/2003. Tlist will work on NT4+.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-18 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found