473,378 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Setting Process.ProcessName

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?

Nov 22 '05 #1
2 2190

"Randy" <Ra*************@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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.
Nov 22 '05 #2
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?

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Randy | last post by:
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...
8
by: Mohammad-Reza | last post by:
Hi Please tell me how I can find that a process CPU usage like TaskManager. Thanks.
0
by: Gaby | last post by:
Hi all, I’ve made a procedure to find a specific process. This works fine under XP or 2000 but not work under xp embedded. Any idea why? See procedure: static public bool IsRunning(string...
4
by: web1110 | last post by:
Given a Process, is there a way to get the full path name of the executable?
5
by: kd | last post by:
Hi All, If the name of a process is known, is it possible to check whether it is in execution? What I did was to fetch all the processes running on the system using Process.GetProcesses() and...
5
by: Benzi Eilon | last post by:
I have written a C# application which should run as a Windows Service. I must avoid having multiple instances of the application on one machine so I inserted the following code at the beginning of...
4
by: Nayan | last post by:
The base process owns this thread. But the visible window is owned by the thread. How do I get the owner Process ID from a Thread ID? To understand, look at this "<<--" pointer in the...
0
by: =?Utf-8?B?Um9i?= | last post by:
I've a requirement to monitor when certain applications are started. I'm using WMI called from VS Stusio 2005 in VB to trap Excel and Word starting. I've written the following console application...
5
by: ags5406 | last post by:
I've a Windows Service that keeps a particular executable running. If the executable fails for whatever reason, the Service restarts it. Right now I'm using a loop to check if the process is...
3
by: Reverend Fuzzy | last post by:
Does anyone know off-hand of a quick routine to identify and kill a running process by filename? My goal is to see if "outlook.exe" is still running after it terminates (which it sometimes...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.