On 11/19/07, bob gailer <[EMAIL PROTECTED]> wrote: > > Patrick Li wrote: > > Hi, > > > > I am trying to write a program that will perform some operation on the > > user's computer when the user launches a particular executable(s) on > > the computer and when the user closes them. > > > > One way to achieve this is by polling the process table periodically > > and checking to see if one of the running processes matches the > > executable name that I am looking for. However, I would much prefer > > not polling so frequently as it seems to be a waste of user's system > > resource. > If you have control over the user's environment give him a .bat file > that will perform some operation on his computer and launch the > executable.
Thought about that, too. Unfortunately I'll have no control over the user's environment. All I will know is the name of the executable file as well as the path at which it is located.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32