CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    440

    Question taskkill *32 process

    In Win 7 64bit (and other 64bit OSes also probably) , the process I'm trying to kill is listed as "AppToKill.exe *32".
    Following code works in 32bit XP but in Win7 64bit it doesn't kill it ...
    Code:
    Process P = new Process();
    P.StartInfo = new ProcessStartInfo("cmd.exe", "/c taskkill /f /im AppToKill.exe");
    P.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    P.Start();
    P.WaitForExit();
    P.Close();
    Tried adding *32 to the command but that didn't solve it.

    Any ideas ?

  2. #2
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    440

    Re: taskkill *32 process

    Apparently it has nothing to do with the *32 ! Tried it with taskkill from the command prompt
    and there noticed Access Denied. Ran the command prompt as administrator and then it works.

    No idea however how I could manage this from code

    Anyone ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured