❔ Gleaning process launch information from Process reference attained via GetProcessById?
Given a process ID I would like to determine all parameters necessary to relaunch that process (same parameters, environment, etc.). How could this be done?
I am currently monitoring the process via Process.GetProcessById and waiting for its exit, after which I do some processing. At the end of that processing I would like to relaunch the previously monitored process.
I am currently monitoring the process via Process.GetProcessById and waiting for its exit, after which I do some processing. At the end of that processing I would like to relaunch the previously monitored process.