starting a process and monitoring that process

M

Mike Fellows

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
 
P

::P:e:s:c:e:::M:a:r:c:o::

Mike Fellows said:
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:blush::::p:e:s:c:e::
(e-mail address removed)
per contatti PVT elinimare NOSPAM
 
M

Mike Fellows

Worked Perfectly

Thanks


::P:e:s:c:e:::M:a:r:c:o:: said:
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:blush::::p:e:s:c:e::
(e-mail address removed)
per contatti PVT elinimare NOSPAM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top