I would like to know if I can change the name of the process I am running at run time. Namely:
public static void Main()
{
Process.GetCurrentProcess().ProcessName; // Aquí tendríamos el nombre original que aparece en el ensamblado
//Asignar un nombre nuevo
Process.GetCurrentProcess().ProcessName; // Aquí tener el nombre modificado
}
I would like to know if this is possible and if so, how to do it.
Thank you and regards
No. According to the official documentation :
This means that the property
ProcessName
is nothing more than the name of the executable file with which you start the process and this is something that can only be assigned at the time of starting the process instance.