Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to get the process information (script location) being executed by python.exe

$
0
0

We have a Hello.py which is being executed. The process that executes python script is python.exe.

We are looking for a way to find the information (location) of the script being executed (path of Hello.py) and eventually to find the process information.

Example: Hello.py is being executed by python.exe

How do we get the the Hello.py process information from process table in C#.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>