Syntax
ProcessExeFile <pid>Description
Returns the file path of the .exe file associated with the specified process.Parameters
<pid>
- The process ID returned by statements such as WindowProcess and Command.
Remarks
This statement can be used with WindowProcess to obtain the name of the executable file associated with a window.Example
WaitForWindow Caption="Notepad*" Result=hndl
ProcessExeFile WindowProcess hndlThe above script fragment waits for a window with a caption beginning with "Notepad" to appear and then obtains the .exe file of the owning process.