| View previous topic :: View next topic |
| Author |
Message |
psjw12
Joined: 10 May 2007 Posts: 25
|
Posted: Wed Dec 12, 2007 9:56 pm Post subject: Location of Running process |
|
|
Some programs like Process Explorer are able to retrieve the location of a running process, is there a possible way in ahk?
I'm hopefully going to make a script to manage portable applications so on removal of the USB drive the applications running from the USB stick can be terminated. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Thu Dec 13, 2007 12:00 am Post subject: |
|
|
To get a list of running processes ( without path ) you may refer the 4th example given in AHK Doc under Process command.
Once you find the PID for each process, you may use shimanov's GetModuleFilenameEx() to retrieve the fullpath.
 |
|
| Back to top |
|
 |
|