|
-
January 31st, 2012, 04:07 AM
#1
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 ?
-
January 31st, 2012, 05:39 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|