Is the name of process always the name of executable that is running? I'm
assuming a single process for a program. So in other words - if I want to
check if a program is running, can I do a
Process [] localByName = Process.GetProc essesByName( << Name of
executible without extension>> );
Will that work?
TIA - Jeff. 4 4774
Hi,
"UJ" <fr**@nowhere.c om> wrote in message
news:uI******** ******@TK2MSFTN GP09.phx.gbl... Is the name of process always the name of executable that is running? I'm assuming a single process for a program. So in other words - if I want to check if a program is running, can I do a Process [] localByName = Process.GetProc essesByName( << Name of executible without extension>> );
Will that work?
IIRC there are ways to change the name of the process, not only that but you
could find at a later date that somebody else selected the same name for a
completely unrelated program.
Is the target program yours?
What are you tring to do?
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
The target program is something I've written. I'm trying to find out if the
program is running and if so, shut it down. This is part of an auto update
process where I'll download a new program and then shut the program down (if
it's currently running) and restart it.
J.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:Ot******** ******@TK2MSFTN GP12.phx.gbl... Hi,
"UJ" <fr**@nowhere.c om> wrote in message news:uI******** ******@TK2MSFTN GP09.phx.gbl... Is the name of process always the name of executable that is running? I'm assuming a single process for a program. So in other words - if I want to check if a program is running, can I do a Process [] localByName = Process.GetProc essesByName( << Name of executible without extension>> );
Will that work?
IIRC there are ways to change the name of the process, not only that but you could find at a later date that somebody else selected the same name for a completely unrelated program.
Is the target program yours?
What are you tring to do?
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
Hi,
"UJ" <fr**@nowhere.c om> wrote in message
news:uK******** ******@TK2MSFTN GP10.phx.gbl... The target program is something I've written. I'm trying to find out if the program is running and if so, shut it down. This is part of an auto update process where I'll download a new program and then shut the program down (if it's currently running) and restart it.
Then I suggest you to use something else, take a look at this http://www.yoda.arachsys.com/csharp/...ation.instance you can
use something similar for your objective.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Cool. Thanks. That looks like a good way to do it.
J.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:uw******** ******@TK2MSFTN GP12.phx.gbl... Hi,
"UJ" <fr**@nowhere.c om> wrote in message news:uK******** ******@TK2MSFTN GP10.phx.gbl... The target program is something I've written. I'm trying to find out if the program is running and if so, shut it down. This is part of an auto update process where I'll download a new program and then shut the program down (if it's currently running) and restart it.
Then I suggest you to use something else, take a look at this http://www.yoda.arachsys.com/csharp/...ation.instance you can use something similar for your objective. -- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: william |
last post by:
Hi,
I have an application which uses XML config file
This application can be run twice or more on different config files
There can't be parallel execution on the same config file
My question is, how to handl this
My ideas
-Adding a mutex on the config file (I don't know how to do it
-Running an empty process with the configFile name and then, when the application is started, if a process with the config File name already exists. (But...
|
by: david_mys |
last post by:
I have a strange problem:
in visual C# i have 3 projects using a shared project. When I run these
projects
(either in debug or release mode and either from visual studio or directly
from
a folder) then 2 of them have a different process name (in windows task
manager)
then their filename; their .exe extension is cutted down to .ex or .e while
the third program has the correct name.
There are no differencies in the configuration...
|
by: mdb |
last post by:
When I view my running processes with SysInternals Process Explorer, most of
the processes have actual names (called "Description" in Process Explorer)
and Company Names set for the process. Mine (a .NET windows service) does
not. Anyone know how I can set this value?
--
-mdb
|
by: Scirious |
last post by:
People, when executing a Java application the procces name given to it
usually java.exe or javaw.exe. But how can I make it be called by the name
of my application?
Thanks,
Scirious.
|
by: Asad Asad |
last post by:
How can I hide a process name in Taskmanager,in Visual Basic 6.0?
I can hide/unhide a application(which is running) name in taskmanager by using following code:
Private Sub Command1_Click()
App.TaskVisible=True
End Sub
Private Sub Command2_Click()
App.TaskVisible=False
End Sub
| |
by: herman |
last post by:
Hi,
I would like to find out all the process id with the process name
'emacs'.
In the shell, i can do this:
$ ps -ef |grep emacs
root 20731 8690 0 12:37 pts/2 00:00:09 emacs-snapshot-gtk
root 25649 25357 0 13:55 pts/9 00:00:05 emacs-snapshot-gtk rtp.c
|
by: apuente |
last post by:
I created a service host which loads an assembly which contains the service processing code. This way I only have to write the service code once and new services only require coding of the service assembly and then configuring the service to use that assembly. On a single server it will be possible that more than one service is installed that uses this service host. The problem is that all the services will be listed in the system processes with...
|
by: sudhivns |
last post by:
Hi ,
VB Script, is there any method to find the process ID using Process name.
Thanks,
Sudhi
|
by: gloris |
last post by:
Hi,
What is the best way in python find the process name and owner?
Now i use WMI, but this version is too slow.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |