-
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 ?
-
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 :confused:
Anyone ?