Get the file path of the parent of a process

By PID (process ID), we get the path to the file of the process that launched it.


pid - process ID


The path to the parent of the process, or an empty string if it fails or if the parent does not already exist.

Author: admin