Re: Get the pid of a os.startfile(filename)
Hi! That works perfect! But how I do it in a Win98? Does the win32all library have a standard way to do it? Thank you Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Get the pid of a os.startfile(filename)
Hi ! With W2K or WXP : tasklist /FI "IMAGENAME eq exename.exe" And, with Python, how capture this information : def findPID(exename): import os a = os.popen4('tasklist /FI "IMAGENAME eq '+exename+'"') a[0].flush() try: info=a[1].readlines()[3].split() except