How to kill a process

Discussion in 'ASP .Net' started by ClearConcepts, Jun 24, 2006.

  1. Hi All,

    I have created a process in my application and another exe is started in
    that process. I want to terminate the process, but I can't use kill() or
    CloseMainwindow() method, because if some processing is happening in the
    invoked exe, it needs to wait till the process is finished and then the
    process should be terminated. Is tehre any way to control the termination of
    the process?

    I am starting the process as below

    nProc = new System.Diagnostics.Process();
    nProc.StartInfo.FileName = @"C:\Sample.exe";
    nProc.Start();

    Regards
    ClearConcepts
    ClearConcepts, Jun 24, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carlo Filippini

    Kill win32 process

    Carlo Filippini, Jan 7, 2004, in forum: Perl
    Replies:
    0
    Views:
    1,072
    Carlo Filippini
    Jan 7, 2004
  2. Brian
    Replies:
    1
    Views:
    745
    Mothra
    May 25, 2004
  3. Donna

    Kill asp_wp process

    Donna, Dec 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    579
    Alvin Bruney
    Dec 10, 2003
  4. Michael Tkachev

    How can I kill an "Excel" process from a memory?

    Michael Tkachev, Oct 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,250
    =?Utf-8?B?RXRoZW0gQXp1bg==?=
    Oct 18, 2004
  5. charmis

    cannot kill excel process

    charmis, Jan 11, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    4,384
    Elton Wang
    Jan 11, 2005
Loading...

Share This Page