Home All Groups Group Topic Archive Search About

Changing my ProcessName?

Author
17 Jan 2006 10:33 PM
gregory_may
I have several instances (Around 20) of a .Net application running on a
server.  In task manager they all show as something like
"MyApplication.exe".

I would like to make the filemanager name show something like "MyApplication
Instance1", Is this possible?  Right now if one process starts acting funny,
its impossible to tell what instance is a problem (Because they all look the
same in Task Manager).

I tried using the "ProcessName" method, and its "ReadOnly":
    Process.GetProcessesByName("MyApplication")(0).ProcessName =
"MyApplication Instance1"

Any ideas?

Author
17 Jan 2006 10:27 PM
Mattias Sjögren
>I would like to make the filemanager name show something like "MyApplication
>Instance1", Is this possible?

No


>Right now if one process starts acting funny,
>its impossible to tell what instance is a problem (Because they all look the
>same in Task Manager).

They should all have a unique process ID (PID), just make sure you
show that column in Task Manager and it should be a lot easier to tell
them apart. You can compare it to the Process.Id property.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.