GetProcessParameter

Retrieve command line or working directory of a process.

OutputVar := GetProcessParameter(ProcessID, CmdOrWorkingDirectory)
Function Example: CMD := GetProcessParameter(GetCurrentProcessId())

Parameters

OutputVar

The name of the variable in which to store the command line string or working directory of target process.

ProcessID

Process id of target process.

CmdOrWorkingDirectory (optional)

0 for command line (default) or 1 for working directory.

Examples

MsgBox "Command line: " GetProcessParameter(GetCurrentProcessId()) "`nWorking Dir: " GetProcessParameter(GetCurrentProcessId(),1)