Setting Process.ProcessName

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

I am using the Process class to create a process, and I would like to
set the ProcessName property. The property is read-only and is set to
the name of the EXE.

Is there a way to set the ProcessName?
 
Randy said:
I am using the Process class to create a process, and I would like to
set the ProcessName property. The property is read-only and is set to
the name of the EXE.

Is there a way to set the ProcessName?
No, the process name is the name of the executable that you are starting,
why would you want to change this?

Willy.
 
I am writing a CRON service to schedule the execution of methods on
classes in .NET assemblies. I was using the Process class to create a
new process to execute an executable which invokes the desired method
using reflection. But, I would like to be able to monitor how many
instances of each CRON job are running. So, I thought I would simple
allow each CRON job to name the process; allowing me to easily monitor
the number of instances.

Any suggestions on other approaches would be appreciated?
 
Back
Top