Archive: Execute process and get process id


Execute process and get process id
Is there any way to execute a console program (without waiting) and get the process id so that I can kill it later?

I tried using execDos. ExecDos returns a window handle but its not useful. I need the process id so that I can kill it after the installation is over. I can't get the process id by enumerating running processes since multiple instances will be running at a time.

Is there any way to get the process id?


Found a solution using ProcFunc.
Please close this thread.