PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Process Control

ProcessExeFile

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 hndl

The 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.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.