Killing a process

Discussion in 'Microsoft VB .NET' started by jerith.alphonse@gmail.com, Oct 16, 2006.

  1. Guest

    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?
     
    , Oct 16, 2006
    #1
    1. Advertisements

  2. <> 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/>
     
    Herfried K. Wagner [MVP], Oct 16, 2006
    #2
    1. Advertisements

  3. Miro Guest

    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


    <> wrote in message
    news:...
    > 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?
    >
     
    Miro, Oct 16, 2006
    #3
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. ray well

    process killing

    ray well, Nov 3, 2003, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    191
    ray well
    Nov 3, 2003
  2. Dougal Fair

    Killing Access Tasks

    Dougal Fair, Jan 10, 2004, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    369
    Mary Chipman
    Jan 11, 2004
  3. Joey

    Killing aspwp process using a web service

    Joey, Mar 7, 2004, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    315
  4. clintonG
    Replies:
    39
    Views:
    1,007
    clintonG
    Oct 25, 2005
  5. pH
    Replies:
    2
    Views:
    504
  6. Marina

    OT: Debugger is killing process when done

    Marina, Dec 15, 2005, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    300
    Ken Tucker [MVP]
    Dec 16, 2005
  7. Miro

    Killing a Process if no App.

    Miro, Jul 27, 2006, in forum: Microsoft VB .NET
    Replies:
    4
    Views:
    261
    Guest
    Jul 29, 2006
  8. Ronald S. Cook

    Dim p As Process = New Process() vs Dim p as New Process()

    Ronald S. Cook, Apr 11, 2007, in forum: Microsoft VB .NET
    Replies:
    6
    Views:
    1,402
    rowe_newsgroups
    Apr 12, 2007
Loading...