But I atone. Here's an ahk script from Skrommel that displays the .exe file and path next to the mouse for whatever window the mouse is hovering over.
You could use the GetModuleFileNameEx(p_pid) subroutine to get the path and open the folder, and put it in an .ahk or .exe file to use as a context menu choice.
;WinProcPath.ahk
; Show the filename of the windows below the mouse
;Skrommel @ 2007
#SingleInstance,Force
#NoEnv
Loop
{
MouseGetPos,x,y,winid,ctrlid
WinGet,pid,Pid,ahk_id %winid%
path:=GetModuleFileNameEx(pid)
ToolTip,%path%
Sleep,100
}
GetModuleFileNameEx(p_pid) ;by shimanov at www.autohotkey
{
If A_OSVersion in WIN_95,WIN_98,WIN_ME
{
WinGet,name,ProcessName,ahk_id %p_pid%
Return,name
}
h_process:=DllCall("OpenProcess","uint",0x10|0x400,"int",false,"uint",p_pid) ; PROCESS_VM_READ=0x0010 PROCESS_QUERY_INFORMATION=0x0400
If (ErrorLevel or h_process=0)
Return
name_size=255
VarSetCapacity(name,name_size)
result:=DllCall("psapi.dll\GetModuleFileNameExA","uint",h_process,"uint",0,"str",name,"uint",name_size)
DllCall("CloseHandle",h_process)
Return,name
}