I use XP Pro at home and Redhat Linux in office.Using Python 2.3 and 2.5.
I use IDLE to edit and cmd line to test. I use Textpad to write code from scratch.
User Profile
Collapse
-
Thanks for the reply...
i am actually using try and a generic except to implement this.
I just wanted to know if there is any other function in python which doesnt touch win32api to find process id.
thanks again.
Cheers...Leave a comment:
-
Process id error
Hi Guys,
Given below is the function i have defined to find process id of the running process xyz.exe. But when i try to run this function when the process xyz.exe is not running, obviously "pid = p[0].Properties_('P rocessId').Valu e" shows error as the process doesn't exist.
but i want it to return pid="" ,to use that value to check if the process is running or not.I am now managing with a try block to catch...
No activity results to display
Show More
Leave a comment: