vailixi Posted December 13, 2015 Posted December 13, 2015 (edited) I have a couple of processes running on Windows that just won't die. I figured out something kinda cool you can use the /t and /f switches and sometimes but not always it will kill child processes. So sometimes you can't kill a process directly but you can force kill the parent process and that will kill the child process even if the parent process comes back access denied. I thought this was pretty novel.So I want to kill two processes but they are both the parent and child process of each other. How do I kill them. If I can't do it from command line is there a .NET function that I can use with VB, C#, or VC++? Edited December 13, 2015 by vailixi Quote
cooper Posted December 14, 2015 Posted December 14, 2015 2 processes can't be eachother's parent. One spawned the other, period. Unless I see code my position is that you're misreading your data. Quote
digip Posted December 14, 2015 Posted December 14, 2015 Few things. Are they services? (check in services.msc). one process starting another, sounds more like dependencies in a service, which can restart themselves. AS cooper mentioned, only one process is the parent, but more than likely another process you don't see started it. Check out process explorer from the msft sysinternals stuff. It will show you all processes, and a tree like structure under them which are the child prcoesses. It also lets you close them like task manager, but often works better than task manager when you get hung programs that won't let you kill them. Just right click and run as administrator first. Some services won't let you kill them eaisly, but can be shutdown in services.msc,and for those that don't show there, from the command line(run as admin first) with "net stop servicename". you can also do "sc query" to see all running services. Quote
vailixi Posted December 17, 2015 Author Posted December 17, 2015 (edited) Few things. Are they services? (check in services.msc). one process starting another, sounds more like dependencies in a service, which can restart themselves. AS cooper mentioned, only one process is the parent, but more than likely another process you don't see started it. Check out process explorer from the msft sysinternals stuff. It will show you all processes, and a tree like structure under them which are the child prcoesses. It also lets you close them like task manager, but often works better than task manager when you get hung programs that won't let you kill them. Just right click and run as administrator first. Some services won't let you kill them eaisly, but can be shutdown in services.msc,and for those that don't show there, from the command line(run as admin first) with "net stop servicename". you can also do "sc query" to see all running services. Thanks. Yeah I was looking at processes and not services. I will try stopping services. Edited December 17, 2015 by vailixi Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.