This is a multi-part message in MIME format.

------=_NextPart_000_0029_01C3843A.7DC7C6C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, all:

Do you know how tokill or stop process of a program? I want to kill all =
MS Project instance before launch a new one. How to do it?

thanks,

Dennis

------=_NextPart_000_0029_01C3843A.7DC7C6C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi, all:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Do you know how tokill or stop process of a program? =
I want to=20
kill all MS Project instance before launch a new one. How to do =
it?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>thanks,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Dennis</FONT></DIV></BODY></HTML>

------=_NextPart_000_0029_01C3843A.7DC7C6C0--

Re: How to kill a running program? by Herfried

Herfried
Fri Sep 26 11:37:44 CDT 2003

"Wongalogic" <DennisH@BlueVisions.com.au> schrieb:
> Do you know how tokill or stop process of a program? I want to kill
> all MS Project instance before launch a new one. How to do it?

You can enumerate the processes using the 'Process' class and terminate a
process by calling its 'Kill' method.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Re: How to kill a running program? by Ken

Ken
Fri Sep 26 12:03:03 CDT 2003

This is a multi-part message in MIME format.

------=_NextPart_000_0016_01C3842E.85448C50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

Use process.kill. Here is an example on how to kill all running =
word apps.

Dim prWord As Process

For Each prWord In Process.GetProcessesByName("WINWORD")

prWord.Kill()

Next

Ken

-------------------

"Wongalogic" <DennisH@BlueVisions.com.au> wrote in message =
news:O3zdwa%23gDHA.524@tk2msftngp13.phx.gbl...
Hi, all:

Do you know how tokill or stop process of a program? I want to kill =
all MS Project instance before launch a new one. How to do it?

thanks,

Dennis
------=_NextPart_000_0016_01C3842E.85448C50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Use =
process.kill.&nbsp; Here is=20
an example on how to kill all running word apps.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>
<P></FONT><FONT color=3D#0000ff size=3D2>Dim</FONT><FONT size=3D2> =
prWord </FONT><FONT=20
color=3D#0000ff size=3D2>As</FONT><FONT size=3D2> Process</P>
<P></FONT><FONT color=3D#0000ff size=3D2>For</FONT><FONT size=3D2> =
</FONT><FONT=20
color=3D#0000ff size=3D2>Each</FONT><FONT size=3D2> prWord </FONT><FONT =
color=3D#0000ff=20
size=3D2>In</FONT><FONT size=3D2> =
Process.GetProcessesByName("WINWORD")</P>
<P>prWord.Kill()</P>
<P></FONT><FONT color=3D#0000ff size=3D2>Next</FONT></P>
<P><FONT color=3D#0000ff size=3D2>Ken</FONT></P>
<P><FONT color=3D#0000ff size=3D2>-------------------</P></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Wongalogic" &lt;<A=20
=
href=3D"mailto:DennisH@BlueVisions.com.au">DennisH@BlueVisions.com.au</A>=
&gt;=20
wrote in message <A=20
=
href=3D"news:O3zdwa%23gDHA.524@tk2msftngp13.phx.gbl">news:O3zdwa%23gDHA.5=
24@tk2msftngp13.phx.gbl</A>...</DIV>
<DIV><FONT size=3D2>Hi, all:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Do you know how tokill or stop process of a =
program? I want=20
to kill all MS Project instance before launch a new one. How to do=20
it?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>thanks,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Dennis</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0016_01C3842E.85448C50--