As I mentioned above, is there a way to find out what python scripts are running in Windows?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have PowerShell installed, you can get that information by using Windows Management Instrumentation (WMI) and some scripting…
Open the PowerShell and use these two lines, it should could you started:
This will show you the command line arguments used to start the python process, which should contain the name of the main script file ran by Python. For a test program I have, it displays the following:
In case you have multiple scripts running, the var
$pyswill be an array, so to access it you’ll have to access the individual elements like so:EDIT: Or you could do it all in one single line, again in PowerShell:
I hope you get the general idea.