Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change name of process in Task Manager [duplicate]

Tags:

c#

taskmanager

I have a windows form application running on a server. Now I need to have multiple instances of the same application running at the same time. Each instance will connect to a different database. During the application startup I change the title so I can identify which DB is connecting to, but I'd like to change the name in the Task Manager also. This because I have another application that act as a supervisor, killing and starting the process as needed. I have to find a way to clearly identify the process to kill.

like image 616
WaveMax Avatar asked Feb 05 '13 15:02

WaveMax


People also ask

Why are there so many duplicate processes in Task Manager?

This is pretty normal as processes takes time to end on task manager after you exit on the program. As for the multiple processes on each application, it is actually normal. Programs run 1 process per tab, extensions and GPU processes.

Can you rename a process in Task Manager?

If a program listed in the "Processes" section of Windows Task Manager has a blank "Description" field, you can change the name of the process to help you better identify which program it is. To change the name of a process in Task Manager, you only need to change the name field displayed in the program's properties.

Why do programs have multiple processes?

A computer program is a passive collection of instructions, a process is the actual execution of those instructions. Several processes may be associated with the same program; for example, opening up several instances of the same program often means more than one process is being executed.

Is there a way to rename a process in Task Manager?

However the process name in task manager gives it away, and a sneaky user could easily kill the task in the Processes menu. Is there a way to change the name given in there (using NT4), or can someone recommend a better URL logging utility (a local program is needed since we don't control the proxy server etc). AFAIK you can't rename the process.

How do I change the name of a process in Windows?

If a program listed in the "Processes" section of Windows Task Manager has a blank "Description" field, you can change the name of the process to help you better identify which program it is. Right-click an empty space on the taskbar. Click "Image Name" to sort the processes alphabetically.

How to kill a process from the task manager?

If the user wants to be able to kill the process from the taskmanager specifically, they can use the applications tab to pick the correct process (you will need to give it a unique window title), then they can right click>Go To process and kill from there. Not the answer you're looking for?

Is there a way to change the process name given in NT4?

Is there a way to change the name given in there (using NT4), or can someone recommend a better URL logging utility (a local program is needed since we don't control the proxy server etc). AFAIK you can't rename the process.


1 Answers

Have your supervisor create a temporary copy of the executable, including your identifying information, and start that... so that Task Manager will look like

My process - database 1.exe
My process - database 2.exe
et cetera
like image 101
Stu Avatar answered Sep 30 '22 05:09

Stu