TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
thiago costa
NA
319
0
How to kill process if processname contains sting.
Aug 29 2013 9:24 PM
This is my current code.
foreach (Process proc in Process.GetProcessesByName("ollydbg")){proc.Kill();}
How is it possible for me to kill all process that CONTAIN "olly" ...
So for example, contains "note" would kill notepad, notebook, notepad++, etc etc
Example 2, contains "olly" would kill, ollydbg, ollyplugin, etc etc.
In another words, I want to kill all processes IF what ever I specify, contains in process.name
Thanks guys.
Reply
Answers (
6
)
project in c#
Best C# practices