473,395 Members | 1,783 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,395 software developers and data experts.

starting a process and monitoring that process

Hi,

If i start a process using
System.Diagnostics.Process.Start(myprog.exe, myattributes)
is it possible to monitor that process from code so that i know when it has
completed/closed?

Thanks

Mike
Nov 20 '05 #1
2 994

"Mike Fellows" <mi***************@equityhouse.co.uk> ha scritto nel
messaggio news:OLeAc.1064$eX3.787@newsfe5-win...
Hi,

If i start a process using
System.Diagnostics.Process.Start(myprog.exe, myattributes)
is it possible to monitor that process from code so that i know when it has completed/closed?


Dim PRC as System.Diagnostics.Process

PRC = PRC.Start(myprog.exe, myattributes)

prc.HasExited when is true the process i terminated ...
--
Ciao

::M:a:r:c:o:::P:e:s:c:e::
it***************@hotmail.com
per contatti PVT elinimare NOSPAM
Nov 20 '05 #2
Worked Perfectly

Thanks
"::P:e:s:c:e:::M:a:r:c:o::" <it***************@hotmail.com> wrote in message
news:OC**************@TK2MSFTNGP09.phx.gbl...

"Mike Fellows" <mi***************@equityhouse.co.uk> ha scritto nel
messaggio news:OLeAc.1064$eX3.787@newsfe5-win...
Hi,

If i start a process using
System.Diagnostics.Process.Start(myprog.exe, myattributes)
is it possible to monitor that process from code so that i know when it

has
completed/closed?


Dim PRC as System.Diagnostics.Process

PRC = PRC.Start(myprog.exe, myattributes)

prc.HasExited when is true the process i terminated ...
--
Ciao

::M:a:r:c:o:::P:e:s:c:e::
it***************@hotmail.com
per contatti PVT elinimare NOSPAM

Nov 20 '05 #3

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

Similar topics

2
by: Yvan | last post by:
Hi, I will first expose what I need to do, and then how I did it so far: I have a simple java application that is monitoring the status of several services, the configuration for this monitoring...
12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
0
by: Ralf Gross | last post by:
Hi, I'm monitoring a RedHat Enterprise 4 server with a DB2 8.2 database. Last week I added some processes which should be checked, to the net-snmp config. db2fmcd db2fmp db2dasrrm db2fmd
3
by: Christopher | last post by:
One of our ASP.NET Pages is starting a new Process using the Process object. When the process starts, it is started under the ASPNET User. We tried editing the web.config file and the...
12
by: Raymond Lewallen | last post by:
How to wait for a process to stop completion is my goal. Obviously, the looping while waiting for the HasExited property is not a solution.. but thats the best I can come up off the top of my...
6
by: Laser Lu | last post by:
Thanks for looking at this post:) Does anyone knows how to make the asp.net process runs in the UserInteractive mode? I just want to show some Windows Forms in my asp.net application on the...
7
by: Ahmed Perlom | last post by:
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the...
1
by: ropo | last post by:
I have a .NET 2.0 app that at one point starts an old MFC App through System.Diagnostics.Process.Start from a model form/ I then wait for it to finish by calling StartedProcess.WaitForExit(); ...
1
by: nasha | last post by:
Hi, I am working with a test harness and I need to monitor a process. If the process isn't done in a specific alloted time, I need to abort the process. The code goes something like this... ...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...

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.