hi,
I want c# source code for process killer as task manger
-> it forcefully kill the process which i want
<->it may be system process
onlinessp
-3
Junior Poster in Training
Recommended Answers
Jump to PostThis reeks of "virus". You'll now have to convince me otherwise, or this thread is closed.
Jump to PostHave a look at the below, the System.Diagnostics.Process class.
Process[] processes = Process.GetProcesses(); ... Process p = Process.GetProcessesByName("aname"); p.Kill();
Jump to PostYou mean like this:
foreach(Process p in Process.GetProcesses()) { ProcessModule pm = p.MainModule; if(pm.FileName == "aname") { p.Kill(); } }
All 11 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
onlinessp
-3
Junior Poster in Training
privatevoid
24
Junior Poster in Training
onlinessp
-3
Junior Poster in Training
privatevoid
24
Junior Poster in Training
privatevoid
24
Junior Poster in Training
onlinessp
-3
Junior Poster in Training
privatevoid
24
Junior Poster in Training
onlinessp
-3
Junior Poster in Training
onlinessp
-3
Junior Poster in Training
privatevoid
24
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.