PC Review


Reply
Thread Tools Rate Thread

Killing a process

 
 
jerith.alphonse@gmail.com
Guest
Posts: n/a
 
      16th Oct 2006
Hi.

I want to write a application in vb.

it should kill an application which is running already.

Note:- I don want to use this find window funda. ie by catching the
window title and terminating

can any one help me?

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      16th Oct 2006
<(E-Mail Removed)> schrieb:
> it should kill an application which is running already.
>
> Note:- I don want to use this find window funda. ie by catching the
> window title and terminating


Check out 'System.Diagnostics.Process'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
 
Reply With Quote
 
 
 
 
Miro
Guest
Posts: n/a
 
      16th Oct 2006
This should get you started.

'Where textbox1.text = "NOTEPAD" not NOTEPAD.EXE
Dim myProcesses() As Process
Dim myProcess As Process

myProcesses = Process.GetProcessesByName(Trim(TextBox1.Text))
For Each myProcess In myProcesses
myProcess.Kill()
Next


Miro


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi.
>
> I want to write a application in vb.
>
> it should kill an application which is running already.
>
> Note:- I don want to use this find window funda. ie by catching the
> window title and terminating
>
> can any one help me?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing a child process of NTVDM.exe without killing NTVDM.exe itself tristin.colby@gmail.com Microsoft Windows 2000 CMD Promt 1 22nd Jan 2010 07:51 PM
Killing VB softly with his song, Killing VB softly...with a song............. clintonG Microsoft VB .NET 39 25th Oct 2005 03:42 PM
Re: Killing VB softly with his song, Killing VB softly...with a song............. pH Microsoft VB .NET 2 24th Oct 2005 04:27 AM
Killing print drivers from a user's profile without killing entire profile? Jessica Nielsen Microsoft Windows 2000 Printing 1 17th Jun 2004 09:29 PM
Killing parent process does not kill child process Chris Coates Microsoft Windows 2000 0 23rd Feb 2004 08:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 AM.