Retrieve command line or working directory of a process.
OutputVar := GetProcessParameter(ProcessID, CmdOrWorkingDirectory)Function Example: CMD := GetProcessParameter(GetCurrentProcessId())
The name of the variable in which to store the command line string or working directory of target process.
Process id of target process.
0 for command line (default) or 1 for working directory.
MsgBox "Command line: " GetProcessParameter(GetCurrentProcessId()) "`nWorking Dir: " GetProcessParameter(GetCurrentProcessId(),1)