0

For example, I know a process Firefox.exe is running. How do I get the path of that process?

After a little searching , all I could find was this thread. I don't think that code is translatable to Python.

BASEFlow
  • 11
  • 5
  • 1
    Using python's [psutil](https://psutil.readthedocs.io/en/latest/). You can iterate over all the processes, find the one matching by name, and get it's command line parameters. Possible answer in [Find if process is running in Windows psutil](https://stackoverflow.com/questions/24136733/find-if-process-is-running-in-windows-psutil). Many more examples available. – IamFr0ssT May 26 '22 at 13:43

0 Answers0