Re: find process by processname
From: Tom Krueger [MSFT] (a-tkrueg_at_online.microsoft.com)
Date: 11/30/04
- Next message: Christoph Nahr: "Re: How to simply load a freeekin bitmap from a resource?"
- Previous message: Kerry Jenkins: "Post-Mortem Debugging"
- Next in thread: Jeremy Chapman: "Re: find process by processname"
- Reply: Jeremy Chapman: "Re: find process by processname"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Nov 2004 09:20:42 -0800
Hello,
When does the executable name change?
Does it change while the process is running? (I don't believe this is
possible)
Or are you saying your application looks for a process named "X", however,
the application keeps getting renamed "X", "Y", "Z" so you cannot hardcode
in your application the name of the process to lookup?
I'm not aware of another way to determine a process (that's not saying there
isn't another way though).
Maybe we can solve your problem a different way. Could you give more
information on what the situation is and what you are trying to accomplish.
Do you control the name of this other process? How often does this other
process change it's name?
If you control the other process name and/or if does not change frequently
you may be able to use a config file, however, then you are still having to
update that config file on each client everytime the you expect the process
name to change. If the clients are always connected you could have a
central config file on a server that you update.
Let us know more about the problem,
-- Tom Krueger Smart Client DevCenter - http://msdn.microsoft.com/smartclient/ Mobile DevCenter - http://msdn.microsoft.com/mobility This posting is provided "as is" with no warranties and confers no rights. "Jeremy Chapman" <NoSpam@Please.com> wrote in message news:OB8Xahl1EHA.304@TK2MSFTNGP11.phx.gbl... >I wanted to find a process by the ProcessName property, but I discovered > that if the executable name changes, the ProcessName reflects that. Is > there some way for me to identify a process by something that may not > change? > >
- Next message: Christoph Nahr: "Re: How to simply load a freeekin bitmap from a resource?"
- Previous message: Kerry Jenkins: "Post-Mortem Debugging"
- Next in thread: Jeremy Chapman: "Re: find process by processname"
- Reply: Jeremy Chapman: "Re: find process by processname"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|