f$GetPID
f$GetPID
This function calculates the ID for a given process name. (This number can also be verified in the task manager). A process ID that is already known can be entered instead of the process name in order to check if the process is still running. Note: for the latter you must enter the process ID as a string.
Syntax: | PID = f$GetPID(Processname) | ||
| Argument | Type | Meaning |
| Program | String | Program name or PID |
Result: | Integer | Process ID for the process or –1 if the process is not running. | |
Example: | PID = f$createprocess('','notepad.exe c:\\temp\\brief.txt','','') PID = f$GetPID(f$FormatNumber(PID,'#')) | ||