标签云

微信群

扫码加入我们

WeChat QR Code


It might be off-topic, but I am really glad someone asked.

2018年09月26日02分22秒

Stray processes is a common enough problem in programming that I have to disagree; this is not an off-topic question.

2018年09月27日02分22秒

I deal with process management every day as a developer. This is totally ON topic for me!

2018年09月26日02分22秒

I strongly advise against deleting this question. +195 and it's a really early google hit for the question involved.

2018年09月27日02分22秒

"unless they directly involve tools used primarily for programming" I ran into this issue in regards to Visual Studio keeping a process running which made me unable to kill it. Closing Visual Studio helped kill the problematic process.

2018年09月27日02分22秒

While I hate that this is the correct answer, there's no doubt in my mind that it is more correct than taskkill below.... stupid buggy drivers!

2018年09月26日02分22秒

Slighly less annoying than a reboot is to log off/on again. Still lose work, but not quite so much time perhaps.

2018年09月26日02分22秒

that's caused by some other process making sure the initial process is always running. You killed your old instance and a new one has been started by the watchdog

2018年09月27日02分22秒

This answer is not correct at all. "End Process" is not the most ultimate way to kill processes, as it can't kill service processes (for example). taskkill /f is the most ultimate.

2018年09月27日02分22秒

TaskKill /f only calls the TerminateProcess API. It does exactly the same thing as the Task Manager (though, you're right on that, with elevated privileges).

2018年09月26日02分22秒

Just a note. This is particularly useful if you are writing scripts for server management. kill.exe (from the NT Res kit) will cause a program to exit, but if you have a crash handler installed (particularly windbg), it can cause issues as the OS will see the killed process as having crashed, and attempt to debug it. Taskkill will not result in this issue.

2018年09月27日02分22秒

lzprgmr - taskkill and "end task" probably both call the same underlying windows function "TerminateProcess" msdn.microsoft.com/en-us/library/windows/desktop/…

2018年09月27日02分22秒

THis is no more effective then "end process" from task manager.

2018年09月27日02分22秒

Using /T will also kill any processes started by that process (like using "end process tree" in task manager)

2018年09月27日02分22秒

I've been trying to forcefully kill SugarSync.exe without having to reboot (since restarting SugarSync twice before it really gets going makes it work again), but taskkill /T /F /IM SugarSync.exe doesn't work--even though it claims "SUCCESS"

1970年01月01日00分03秒

Can't find much in the way of corroboration, as searching for this just yields millions of FREE DOWNLOAD!!! links. But it does what it says it does, virus risks and all.

2018年09月26日02分22秒

Nuzzolilo: Sure! Right-click the process, go to Miscellaneous->Terminator.

2018年09月27日02分22秒

Does not work on all processes, I had one that survived all options.

2018年09月27日02分22秒

It bluescreened my computer. The process went away after the reboot. Good job... -.-'

2018年09月26日02分22秒

Unfortunately Terminator is removed in v2.39 :(

2018年09月27日02分22秒

That does provide more info (and some limited ability to search for lock handles) but I've not had any more success at killing tasks with it than with basic Task Manager. Certain processes (like anti-virus, and SugarSync.exe) simply refuse to die.

2018年09月27日02分22秒

Running as administrator, the error changes. It now says: ERROR: The process with PID 17888 (child process of PID 17880) could not be terminated. Reason: There is no instance of the task. and it is referring to the parent PID 17880. As it can't find the parent, it won't kill the orphaned child. :(

2018年09月27日02分22秒

"you must kill child process too if any spawned to kill successfully your process" try this stackoverflow.com/questions/12528963/…

2018年09月27日02分22秒

In my case, the zombie process I told it to kill was the only child and there was no parent, though the zombie still thought it had a parent. In my case, resolved by using the Windows 8.1 Settings Advanced Repair System path, but canceling from actually wiping any disk, and just doing a full forced reboot. The regular shutdown and reboot is really sleep/hibernation (to save time on startup). Non-trivial getting it to do a full shutdown.

2018年09月26日02分22秒

"Access is denied" means that the process is already in the process of being closed. For example if you had just attempted to close it earlier. You'll need to wait till it gets closed.

2018年09月27日02分22秒

taskkill results under admin rights: Access is denied.

2018年09月26日02分22秒

Thank you SO MUCH for this. Add "-c q" (w/o quotes) to autoquit, which makes it ideal process killer.

2018年09月27日02分22秒

When Visual Studio and an application being debugged both hang, attach and kill the old instance of VS. The killer can be a new instance of VS, which can then open the old project and allow you to continue working.

2018年09月27日02分22秒

I can't figure out how to download anything from that link other than winsdk_web.exe, which does nothing.

2018年09月27日02分22秒

I get the following warning when trying this, so it seems to no longer work: "Warning: Due to security enhancements, this task will run at the time expected but not interactively. Use schtasks.exe utility if interactive task is required ('schtasks /?' for details)."

2018年09月26日02分22秒