Autohotkey Open Folder of Current Application or Process <p>In this code no open current application folder because the FilePath variable include exe file name</p> <pre><code>F11:: PID = 0 WinGet, hWnd,, A DllCall("GetWindowThreadProcessId", "UInt", hWnd, "UInt *", PID) hProcess := DllCall("OpenProcess", "UInt", 0x400 | 0x10, "Int", False , "UInt", PID) PathLength = 260*2 VarSetCapacity(FilePath, PathLength, 0) DllCall("Psapi.dll\GetModuleFileNameExW", "UInt", hProcess, "Int", 0, "Str", FilePath, "UInt", PathLength) DllCall("CloseHandle", "UInt", hProcess) Run, Explorer %FilePath% </code></pre> <p>Thanks in advance for any assistance. </p>