AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Location of Running process

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
psjw12



Joined: 10 May 2007
Posts: 25

PostPosted: Wed Dec 12, 2007 9:56 pm    Post subject: Location of Running process Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6264

PostPosted: Thu Dec 13, 2007 12:00 am    Post subject: Reply with quote

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.

Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group